Changeset 37364
- Timestamp:
- 2023-02-28T12:01:31+13:00 (3 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/gslib.xsl
r37334 r37364 890 890 <span id="favouritesCountDisplay">...</span> 891 891 892 <div><a id="favouritesFullViewLink" style="display: block;"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'favourites.full')"/></a></div> 893 </div> 894 <gsf:script> 895 //set url and show full view link 896 var fullView = YAHOO.util.Dom.get('favouritesFullViewLink'); 897 //Find the collection in the cgi parameters 898 var url = window.location.href; 899 var colstart = url.indexOf("&c="); 900 var collectionName = ""; 901 if (colstart != -1) 902 { 903 var colend = url.indexOf("&", (colstart + 1)); 904 if (colend == -1) 905 { 906 colend = url.length - 1; 907 } 908 collectionName = url.substring(colstart + 3, colend); 909 } 910 911 fullView.setAttribute("href",gs.xsltParams.library_name + "?a=g&sa=fav&c=&s=DisplayList&rt=r&p.c=" + collectionName); 912 fullView.style.display='block'; 913 914 </gsf:script> 892 <div><a id="favouritesFullViewLink" style="display: block;"><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=g&sa=fav&c=&s=DisplayList&rt=r&p.c=<xsl:value-of select="$collName"/></xsl:attribute><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'favourites.full')"/></a></div> 893 </div> 915 894 </xsl:if> 916 895 </xsl:template>
Note:
See TracChangeset
for help on using the changeset viewer.