Changeset 26409
- Timestamp:
- 2012-10-30T15:05:04+13:00 (11 years ago)
- Location:
- main/trunk/model-cols/niupepa
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-cols/niupepa/resources/niupepa.properties
r26388 r26409 17 17 18 18 simple.query=Search {0-subcolllist} for {1-some/all} of the words {2-query box} 19 20 about.languageswap=<div style="text-align:right;"><small><a id="replaceLink" title="View the collection in Māori">Māori</a></small></div>\ 21 <script type="text/javascript">\ 22 <xsl:text disable-output-escaping="yes">\ 23 $(window).ready(function()\ 24 {\ 25 var url = document.URL;\ 26 if(url.indexOf("?") != -1)\ 27 {\ 28 if(url.search(/[&?]?l=[^&\b]*/g) != -1)\ 29 {\ 30 url = url.replace(/([&?]?)l=[^&\b]*/g, "$1l=mi");\ 31 $("#replaceLink").attr("href", url);\ 32 }\ 33 else\ 34 {\ 35 $("#replaceLink").attr("href", url + "&l=mi");\ 36 }\ 37 }\ 38 else\ 39 {\ 40 $("#replaceLink").attr("href", url + "?l=mi");\ 41 }\ 42 });\ 43 </xsl:text>\ 44 </script> 45 19 about.changelangtofrommaori=View the collection in Māori 46 20 about.textxwelcome=<h2>Welcome to the Māori Niupepa Collection</h2> 47 21 about.textxwelcome2=<p>Here we have a collection of historic newspapers published primarily for a Māori audience between 1842 and 1932. The newspapers can be <gsf:link type="query"><b>searched</b></gsf:link> (full text), <gsf:link type="classifier" nodeID="CL1"><b>browsed</b></gsf:link> (by series) or accessed by <gsf:link type="classifier" nodeID="CL2"><b>date</b></gsf:link>. This collection has been made available by the <a href="http://www.nzdl.org">New Zealand Digital Library Project</a>, at the <a href="http://www.cs.waikato.ac.nz/cs/">Department of Computer Science</a>, <a href="http://www.waikato.ac.nz">University of Waikato</a>.</p> -
main/trunk/model-cols/niupepa/resources/niupepa_mi.properties
r26365 r26409 16 16 17 17 simple.query=Tirohia ki {0-subcolllist} mÅ {1-some/all} o ngÄ kupu {2-query box} 18 19 about.languageswap=<div style="text-align:right;"><small><a id="replaceLink" title="View the collection in English">English</a></small></div>\ 20 <script type="text/javascript">\ 21 <xsl:text disable-output-escaping="yes">\ 22 $(window).ready(function()\ 23 {\ 24 var url = document.URL;\ 25 if(url.indexOf("?") != -1)\ 26 {\ 27 if(url.search(/[&?]?l=[^&\b]*/g) != -1)\ 28 {\ 29 url = url.replace(/([&?]?)l=[^&\b]*/g, "$1l=en");\ 30 $("#replaceLink").attr("href", url);\ 31 }\ 32 else\ 33 {\ 34 $("#replaceLink").attr("href", url + "&l=en");\ 35 }\ 36 }\ 37 else\ 38 {\ 39 $("#replaceLink").attr("href", url + "?l=en");\ 40 }\ 41 });\ 42 </xsl:text>\ 43 </script> 44 18 about.changelangtofrommaori=View the collection in English 45 19 about.textxwelcome=<h2>Nau mai ki te Kohikohinga Niupepa MÄori</h2> 46 20 about.textxwelcome2=<p>Kua whakaemitia mai ki konei he kohikohinga niupepa i tÄngia mÅ ngÄ kaipÄnui MÄori o ngÄ tau 1842-1932. E taea te pÄnui niupepa mÄ te <gsf:link type="query">rapu kupu</gsf:link>, i te <gsf:link type="classifier" nodeID="CL1">rÄrangi taitara</gsf:link>, me te rÄrangi <gsf:link type="classifier" nodeID="CL2">wÄtaka</gsf:link> hoki. He mea i whakatÅ«ria e te kaupapa <a href="http://www.nzdl.org">New Zealand Digital Library</a>, i te <a href="http://www.cs.waikato.ac.nz/cs/">Tari Rorohiko</a>, o te <a href="http://www.waikato.ac.nz">Whare WÄnanga o Waikato</a>.</p> -
main/trunk/model-cols/niupepa/transform/pages/about.xsl
r26348 r26409 20 20 <!-- the page content --> 21 21 <xsl:template match="/page"> 22 < gsf:collectionText name="about.languageswap"/>22 <xsl:call-template name="languageswap"/> 23 23 <gsf:collectionText name="about.textxwelcome"/> 24 24 <gsf:collectionText name="about.textxwelcome2"/> … … 38 38 <gsf:collectionText name="about.textxsupporgs2"/> 39 39 </xsl:template> 40 41 <xsl:template name="languageswap"> 42 <xsl:variable name="swaplangname"><xsl:choose><xsl:when test="/page/@lang = 'mi'">English</xsl:when><xsl:otherwise>MÄori</xsl:otherwise></xsl:choose></xsl:variable> 43 <div style="text-align:right;"><small><a id="replaceLink"><xsl:attribute name="title"><gsf:collectionText name="about.changelangtofrommaori"/></xsl:attribute><xsl:value-of select="$swaplangname"/></a></small></div> 44 <xsl:variable name="langcgiarg"><xsl:choose><xsl:when test="/page/@lang = 'mi'">l=en</xsl:when><xsl:otherwise>l=mi</xsl:otherwise></xsl:choose></xsl:variable> 45 <script type="text/javascript"> 46 <xsl:text disable-output-escaping="yes"> 47 $(window).ready(function() 48 { 49 var url = document.URL; 50 if(url.indexOf("?") != -1) 51 { 52 if(url.search(/[&?]?l=[^&\b]*/g) != -1) 53 { 54 url = url.replace(/([&?]?)l=[^&\b]*/g, "$1</xsl:text><xsl:value-of select="$langcgiarg"/><xsl:text disable-output-escaping="yes">"); 55 $("#replaceLink").attr("href", url); 56 } 57 else 58 { 59 $("#replaceLink").attr("href", url + "&</xsl:text><xsl:value-of select="$langcgiarg"/><xsl:text disable-output-escaping="yes">"); 60 } 61 } 62 else 63 { 64 $("#replaceLink").attr("href", url + "?</xsl:text><xsl:value-of select="$langcgiarg"/><xsl:text disable-output-escaping="yes">"); 65 } 66 }); 67 </xsl:text> 68 </script> 69 70 </xsl:template> 40 71 </xsl:stylesheet> 41 72
Note:
See TracChangeset
for help on using the changeset viewer.