[Dspace-tech] How to edit themes.xmap file for mobile theme?

2014-04-10 Thread badboy
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:
 
 
* 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):
http://mobile.
yoursite.edu';">
View mobile site

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


-- 
¤�q⌒�r �q⌒�r 相识也是缘份;
�u�� �q⌒�r再见亦是朋友。
�蛱铴蛱� 田| �t-
�p�p�p�p�p�p�p�p�p�p�p�p�p�p
--
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] How to edit themes.xmap file for mobile theme?

2014-04-11 Thread badboy
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 at 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:
 
 
* 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):
http://mobile.
yoursite.edu';">
View mobile site

yes, i can edit the
webapps/xmlui/themes/Mirage/lib/xsl/core/page-structure.xsl to get

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.


-- 
¤�q⌒�r �q⌒�r 相识也是缘份;
�u�� �q⌒�r再见亦是朋友。
�蛱铴蛱� 田| �t-
�p�p�p�p�p�p�p�p�p�p�p�p�p�p
--
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] How to edit themes.xmap file for mobile theme?

2014-04-29 Thread Leire Urzelai
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  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:
>  src="/themes/mobile/lib/detectmobile.js"> 
>  src="/themes/mobile/lib/cookies.js"> 
> * 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):
> http://mobile.
> yoursite.edu';">
> View mobile site
>
> 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
> DSpace-tech@lists.sourceforge.net
> 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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette