[ 
https://jira.duraspace.org/browse/DS-1353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=26734#comment-26734
 ] 

Elias Tzoc commented on DS-1353:
--------------------------------

Ok, for this fix, I need some help in "modifying" the URL for the page in the 
full website.  Here is what I have so far.


* This will go after line 173 in the mobile.xsl file
https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/themes/mobile/mobile.xsl

<!-- link back to non-mobile view of the current page -->
<a>
  <xsl:attribute name="href">
  <xsl:variable name="non-mobile-page" 
select="mets:FLocat[@LOCTYPE='URL']/@xlink:href"/>

  <!-- HELP to transform something like 
       http://mobile.sc.lib.muohio.edu/handle/2374.MIA/4419 to something like 
                   http://sc.lib.muohio.edu/handle/2374.MIA/4419 
   -->
   <xsl:value-of select="$non-mobile-page"/>
   </xsl:attribute>
   <!-- created new icon and reference in CSS -->
   <xsl:attribute name="data-icon">
   <xsl:text>non-mobile</xsl:text>
   </xsl:attribute>
   <xsl:attribute name="data-iconpos">
   <xsl:text>notext</xsl:text>
   </xsl:attribute>
   <xsl:attribute name="data-direction">
   <xsl:text>reverse</xsl:text>
   </xsl:attribute>
   <xsl:text>View page in full website</xsl:text>
</a>

Any thoughts on how to modify the URL to get rid of the 'mobile.' string?
I tried <xsl:variable name="non-mobile-page" 
select="translate($non-mobile-page, 'mobile.', '')"/> … but it didn't work :-)

                
> switch to non-mobile theme is available only on homepage
> --------------------------------------------------------
>
>                 Key: DS-1353
>                 URL: https://jira.duraspace.org/browse/DS-1353
>             Project: DSpace
>          Issue Type: Bug
>          Components: XMLUI
>    Affects Versions: 3.0
>            Reporter: Ivan Masár
>              Labels: mobile-theme
>
> The mobile theme contains a link to switch back to the non-mobile theme, but 
> only on the homepage. There is no way from another page to switch to its 
> non-mobile equivalent.
> I suggest to add a button to the header, similiar to the Home button, but 
> aligned to the right, which would appear on every page and would switch theme 
> but remain on the same page. The icon could be a crossed over phone.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to