+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/mobile/readme.txt b/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/mobile/readme.txt
new file mode 100644
index 000000000000..925a8601d33c
--- /dev/null
+++ b/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/mobile/readme.txt
@@ -0,0 +1,83 @@
+ The contents of this file are subject to the license and copyright
+ detailed in the LICENSE and NOTICE files at the root of the source
+ tree and available online at
+
+ http://www.dspace.org/license/
+
+Mobile theme for DSpace 1.6
+Created by Elias Tzoc and
+ James Russell
+ September 14, 2012
+
+===================================================================================
+The mobile theme file structure
+
++-- mobile
+| +-- lib
+| | +-- cookies.js
+| | +-- detectmobile.js
+| | +-- images
+| | | +-- ajax-loader.gif
+| | | +-- default-thumbnail.png
+| | | +-- icons-18-black.png
+| | | +-- icons-18-white.png
+| | | +-- icons-36-black.png
+| | | +-- icons-36-white.png
+| | +-- m-tweaks.css
+| | +-- sc-mobile.css
+| | +-- sc-mobile.min.css
+| | +-- mobile.xsl
+| | +-- sitemap.xmap
+| | +-- themes.xmap
+| +-- readme.txt
+
+
+Installation:
+
+0. Get a new domain name that is an alias of the existing domain name
+ for your DSpace installation.
+ e.g. if your current domain is yoursite.edu your new domain name
+ might be mobile.yoursite.edu
+ These instructions assume that the new domain name starts with 'mobile.'
+ If it is something else, you will need to make a change in Step 5.
+
+1. Copy the mobile theme folder into your XMLUI theme folder
+ e.g. ../dspace/webapps/xmlui/themes/
+
+2. Add a call for the detectmobile.js and cookies.js file in the header
+ of your current main theme.xsl file.
+ It should look like:
+
+
+ * In this file, we also add a "View mobile site" link in the footer
+ section, which allows users to view the full site on their
+ mobile devices. The cookies.js file saves this preference
+ but it's erased when the session is closed.
+ If you want such a link, the code for this should look like the following
+ (with the appropriate URL for your mobile site):
+
+ View mobile site
+
+3. Open the detectmobile.js file and enter your new mobile domain
+ at the end of the function call e.g. mobile.yoursite.edu
+ * if you choose a different domain name or theme name other than
+ "mobile" make sure to update the settings in the sitemap.xmap
+
+4. In mobile.xsl, find the link "View full website" and replace the
+ references to yoursite.edu with the domain name for your main site.
+ * lines 255-257
+
+5. Replace or edit the themes.xmap file located in your default theme
+ folder e.g. ../dspace/webapps/xmlui/themes/
+ * The code for setting up the properties for the domain is in
+ lines 32-37. This will need to be changed if the domain name
+ for your mobile site starts with something other than 'mobile.'
+
+6. Restart tomcat and now you should be able to see the mobile theme
+ in action; to change the look-and-feel, you can go to
+ http://jquerymobile.com/themeroller/ and either create your own
+ files or import/upgrade the uncompressed sc-mobile.css file.
+
+NOTE: Pages with more complex structure such as "Advanced Search" were
+ excluded in this first mobile theme.
+
diff --git a/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/mobile/sitemap.xmap b/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/mobile/sitemap.xmap
new file mode 100644
index 000000000000..4bf7d03d07e9
--- /dev/null
+++ b/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/mobile/sitemap.xmap
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+ mobile
+ Mobile theme for DSpace from Miami University
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/mobile/themes.xmap b/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/mobile/themes.xmap
new file mode 100644
index 000000000000..34aafba5b2f5
--- /dev/null
+++ b/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/mobile/themes.xmap
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dspace/config/dspace.cfg b/dspace/config/dspace.cfg
index c931bcfc5464..3ef7fae54468 100644
--- a/dspace/config/dspace.cfg
+++ b/dspace/config/dspace.cfg
@@ -38,6 +38,10 @@ dspace.baseUrl = ${dspace.baseUrl}
# the servlet engine.
dspace.url = ${dspace.baseUrl}/xmlui
+# Optional: DSpace URL for mobile access
+# This
+#dspace.mobileUrl = http://mobile.example.com
+
# Name of the site
dspace.name = ${dspace.name}