Hello,

I'm trying to install the mobile theme on DSpace 4.1, but it is not working
for me.

I've been looking in the mailing list, but it seems that there is not any
answer for the questions about this subject.

Any help on this point, please?

Thanks in advance,

Leire


On Thu, Apr 10, 2014 at 6:20 PM, badboy <[email protected]> wrote:

> I am trying to install mobile theme with Dspace4.1. according to the
> introduction of readme.txt as following:
>
> 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.
>
> yes, I get a new domain which starts 'mobile'.
>
> 1.  Copy the mobile theme folder into your XMLUI theme folder
>     e.g. ../dspace/webapps/xmlui/themes/
>
> in Dspace4.1, there is no need to copy. the files has already in the
> directory.
>
> 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:
>     <script type="text/javascript"
> src="/themes/mobile/lib/detectmobile.js">&#160;</script>
>     <script type="text/javascript"
> src="/themes/mobile/lib/cookies.js">&#160;</script>
>     * 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):
>     <a href="#" onclick="eraseCookie('viewfull');window.location='
> http://mobile.
> yoursite.edu';">
>     View mobile site</a>
>
> yes, i can edit the
> webapps/xmlui/themes/Mirage/lib/xsl/core/page-structure.xsl to add the js
> files.
>
> 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
>
> yes, i had edited detectmobile.js. but not edited 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
>
> in Dspace4.1, there is no need to replace the references? which is
> replaced by the var "$dspace-url".
>
> 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.'
>
> in this step, how to replace or edit the themes.xmap?
>
> 6.  Restart tomcat and now you should be able to see the mobile theme
>
>
> anyone can tell me how to do it? or show me a full example?
>
>
> many thanks!
>
> Chenhe
>
>
> --
> ¤╭⌒╮ ╭⌒╮ 相识也是缘份;
> ╱◥███◣ ╭⌒╮再见亦是朋友。
> ︱田︱田 田| ╰-------------
> ╬╬╬╬╬╬╬╬╬╬╬╬╬╬
>
>
> ------------------------------------------------------------------------------
> Put Bad Developers to Shame
> Dominate Development with Jenkins Continuous Integration
> Continuously Automate Build, Test & Deployment
> Start a new project now. Try Jenkins in the cloud.
> http://p.sf.net/sfu/13600_Cloudbees
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to