Browse Source

Merge pull request #28 from bwoodhead/6.x

XML formatting
pull/29/head
Ben Woodhead 13 years ago
parent
commit
1dcb27ad42
  1. BIN
      .CollectionClass.inc.swp
  2. 131
      xsl/advanced_search_results.xsl
  3. 545
      xsl/browseIndexToResultPage.xslt
  4. 40
      xsl/convertQDC.xsl
  5. 174
      xsl/refworks.xsl
  6. 12
      xsl/results.xsl
  7. 75
      xsl/romeo.xsl
  8. 153
      xsl/sparql_to_html.xsl
  9. 169
      xsl/specdwc.xsl

BIN
.CollectionClass.inc.swp

Binary file not shown.

131
xsl/advanced_search_results.xsl

@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:php="http://php.net/xsl" exclude-result-prefixes="php"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:php="http://php.net/xsl" exclude-result-prefixes="php">
<xsl:variable name="OBJECTSPAGE"> <xsl:variable name="OBJECTSPAGE">
<xsl:value-of select="$objectsPage"/> <xsl:value-of select="$objectsPage"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="ALLOWEDNAMESPACES" select="$allowedPidNameSpaces"/> <xsl:variable name="ALLOWEDNAMESPACES" select="$allowedPidNameSpaces"/>
<!--<xsl:variable name="PATHTOMAKEIMAGE"> <!--<xsl:variable name="PATHTOMAKEIMAGE">
<xsl:value-of select="$pathToMakeImage"/> <xsl:value-of select="$pathToMakeImage"/>
</xsl:variable>--> </xsl:variable>-->
<xsl:template match="gfindObjects"> <xsl:template match="gfindObjects">
<xsl:variable name="INDEXNAME" select="@indexName"/> <xsl:variable name="INDEXNAME" select="@indexName"/>
<xsl:variable name="PREQUERY" select="substring-before(@query,':')"/> <xsl:variable name="PREQUERY" select="substring-before(@query,':')"/>
<!--<xsl:variable name="QUERY" select="substring-after(@query,':')"/>--> <!--<xsl:variable name="QUERY" select="substring-after(@query,':')"/>-->
@ -40,8 +40,8 @@
<xsl:variable name="HITPAGENO" select="ceiling($HITPAGESTART div $HITPAGESIZE)"/> <xsl:variable name="HITPAGENO" select="ceiling($HITPAGESTART div $HITPAGESIZE)"/>
<xsl:variable name="HITPAGENOLAST" select="ceiling($HITTOTAL div $HITPAGESIZE)"/> <xsl:variable name="HITPAGENOLAST" select="ceiling($HITTOTAL div $HITPAGESIZE)"/>
<xsl:variable name="HITPAGESTARTT" select="(($HITPAGENO - 1) * $HITPAGESIZE + 1)"/> <xsl:variable name="HITPAGESTARTT" select="(($HITPAGENO - 1) * $HITPAGESIZE + 1)"/>
<xsl:choose> <xsl:choose>
<xsl:when test="$HITTOTAL > 0"> <xsl:when test="$HITTOTAL > 0">
<style type="text/css"> <style type="text/css">
span.highlight span.highlight
@ -53,14 +53,10 @@
{ {
font-weight: bold font-weight: bold
} }
</style> </style>
Total Hits = Total Hits = <strong><xsl:value-of select="@hitTotal"/>,</strong>
<strong> Number of Hits/page = <xsl:value-of select="$HITPAGESIZE"/>
<xsl:value-of select="@hitTotal"/>,
</strong>
Number of Hits/page =
<xsl:value-of select="$HITPAGESIZE"/>
<br />You may not have sufficient privileges to view any or all of the items found. The objects you have rights to view will be shown below. <br />You may not have sufficient privileges to view any or all of the items found. The objects you have rights to view will be shown below.
<!-- Current page = <xsl:value-of select="@hitPageStart"/>--> <!-- Current page = <xsl:value-of select="@hitPageStart"/>-->
<br/> <br/>
@ -70,24 +66,15 @@
<xsl:if test="$HITPAGENO > 1"> <xsl:if test="$HITPAGENO > 1">
<li class="pager-previous"> <li class="pager-previous">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/mnpl_advanced_search/<xsl:value-of select="$QUERY"/>/<xsl:value-of select="$HITPAGESTARTT - $HITPAGESIZE"/></xsl:attribute>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/mnpl_advanced_search/
<xsl:value-of select="$QUERY"/>/
<xsl:value-of select="$HITPAGESTARTT - $HITPAGESIZE"/>
</xsl:attribute>
&lt; Previous &lt; Previous
</a> </a>
</li> </li>
</xsl:if> </xsl:if><xsl:text> </xsl:text>
<xsl:text> </xsl:text>
<xsl:if test="$HITPAGENO &lt; $HITPAGENOLAST"> <xsl:if test="$HITPAGENO &lt; $HITPAGENOLAST">
<li class="pager-next"> <li class="pager-next">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/mnpl_advanced_search/<xsl:value-of select="$QUERY"/>/<xsl:value-of select="$HITPAGESTARTT+$HITPAGESIZE"/></xsl:attribute>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/mnpl_advanced_search/
<xsl:value-of select="$QUERY"/>/
<xsl:value-of select="$HITPAGESTARTT+$HITPAGESIZE"/>
</xsl:attribute>
Next > Next >
</a> </a>
</li> </li>
@ -97,31 +84,22 @@
</xsl:if> </xsl:if>
<!--<form action="/drupal-5.1/?q=search/fedora_collections" method="post" id="search-form" class="search-form">--> <!--<form action="/drupal-5.1/?q=search/fedora_collections" method="post" id="search-form" class="search-form">-->
<xsl:apply-templates select="objects"/> <xsl:apply-templates select="objects"/>
<xsl:if test="$HITTOTAL > $HITPAGESIZE"> <xsl:if test="$HITTOTAL > $HITPAGESIZE">
<div class="item-list"> <div class="item-list">
<ul class="pager"> <ul class="pager">
<xsl:if test="$HITPAGENO > 1"> <xsl:if test="$HITPAGENO > 1">
<li class="pager-previous"> <li class="pager-previous">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/mnpl_advanced_search/<xsl:value-of select="$QUERY"/>/<xsl:value-of select="$HITPAGESTARTT - $HITPAGESIZE"/></xsl:attribute>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/mnpl_advanced_search/
<xsl:value-of select="$QUERY"/>/
<xsl:value-of select="$HITPAGESTARTT - $HITPAGESIZE"/>
</xsl:attribute>
&lt; Previous &lt; Previous
</a> </a>
</li> </li>
</xsl:if> </xsl:if><xsl:text> </xsl:text>
<xsl:text> </xsl:text>
<xsl:if test="$HITPAGENO &lt; $HITPAGENOLAST"> <xsl:if test="$HITPAGENO &lt; $HITPAGENOLAST">
<li class="pager-next"> <li class="pager-next">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/mnpl_advanced_search/<xsl:value-of select="$QUERY"/>/<xsl:value-of select="$HITPAGESTARTT+$HITPAGESIZE"/></xsl:attribute>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/mnpl_advanced_search/
<xsl:value-of select="$QUERY"/>/
<xsl:value-of select="$HITPAGESTARTT+$HITPAGESIZE"/>
</xsl:attribute>
Next > Next >
</a> </a>
</li> </li>
@ -129,41 +107,31 @@
</ul> </ul>
</div> </div>
</xsl:if> </xsl:if>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<div class="box"> <div class="box">
<h2>Your search yielded no results</h2> <h2>Your search yielded no results</h2>
<div class="content"> <div class="content"><ul>
<ul> <li>Check if your spelling is correct.</li>
<li>Check if your spelling is correct.</li>
<li>Remove quotes around phrases to match each word individually: <li>Remove quotes around phrases to match each word individually: <em>"blue smurf"</em> will match less than <em>blue smurf</em>.</li>
<em>"blue smurf"</em> will match less than <li>Consider loosening your query with <em>OR</em>: <em>blue smurf</em> will match less than <em>blue OR smurf</em>.</li>
<em>blue smurf</em>. </ul></div>
</li>
<li>Consider loosening your query with
<em>OR</em>:
<em>blue smurf</em> will match less than
<em>blue OR smurf</em>.
</li>
</ul>
</div>
</div> </div>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
<xsl:template match="objects"> <xsl:template match="objects">
<table> <table><div class="search-results">
<div class="search-results">
<xsl:for-each select="object"> <xsl:for-each select="object">
<xsl:variable name="PIDVALUE"> <xsl:variable name="PIDVALUE">
<xsl:choose> <xsl:choose>
@ -187,10 +155,9 @@
</xsl:for-each> </xsl:for-each>
</div> </div></table>
</table>
</xsl:template> </xsl:template>
<xsl:template name="splitBySpace"> <xsl:template name="splitBySpace">
<xsl:param name="str"/> <xsl:param name="str"/>
<xsl:param name="PIDVALUE"/> <xsl:param name="PIDVALUE"/>
@ -234,7 +201,7 @@
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
<xsl:template name="showResult"> <xsl:template name="showResult">
<xsl:param name="PIDVALUE"/> <xsl:param name="PIDVALUE"/>
<xsl:variable name="DCTITLE"> <xsl:variable name="DCTITLE">
<xsl:value-of select="field[@name='dc.title']/node()"/> <xsl:value-of select="field[@name='dc.title']/node()"/>
@ -243,13 +210,9 @@
<xsl:variable name="CLEANTITLE"> <xsl:variable name="CLEANTITLE">
<xsl:value-of select="php:functionString('fedora_repository_urlencode_string', $DCTITLE)"/> <xsl:value-of select="php:functionString('fedora_repository_urlencode_string', $DCTITLE)"/>
</xsl:variable> </xsl:variable>
<tr> <tr><td valign="top">
<td valign="top">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/<xsl:copy-of select="$PIDVALUE"/>/-/<xsl:value-of select="$CLEANTITLE"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/
<xsl:copy-of select="$PIDVALUE"/>/-/
<xsl:value-of select="$CLEANTITLE"/>
</xsl:attribute> </xsl:attribute>
<!--<xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/><![CDATA[&pid=]]><xsl:value-of select="$PIDVALUE"/><![CDATA[&collection=object]]> <!--<xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/><![CDATA[&pid=]]><xsl:value-of select="$PIDVALUE"/><![CDATA[&collection=object]]>
@ -262,9 +225,7 @@
</img>--> </img>-->
<img> <img>
<xsl:attribute name="src"> <xsl:attribute name="src"><xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/<xsl:copy-of select="$PIDVALUE"/>/TN
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/
<xsl:copy-of select="$PIDVALUE"/>/TN
</xsl:attribute> </xsl:attribute>
</img> </img>
</a> </a>
@ -288,29 +249,20 @@
<a> <a>
<!--<xsl:attribute name="href"><![CDATA[http://localhost/drupal-5.1/?q=node/7&pid=]]><xsl:value-of select="$PIDVALUE"/><![CDATA[&collection=object]]>--> <!--<xsl:attribute name="href"><![CDATA[http://localhost/drupal-5.1/?q=node/7&pid=]]><xsl:value-of select="$PIDVALUE"/><![CDATA[&collection=object]]>-->
<!--<xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/><![CDATA[&pid=]]><xsl:value-of select="$PIDVALUE"/><![CDATA[&collection=object]]>--> <!--<xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/><![CDATA[&pid=]]><xsl:value-of select="$PIDVALUE"/><![CDATA[&collection=object]]>-->
<xsl:attribute name="href"> <xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/<xsl:value-of select="$PIDVALUE"/>/-/<xsl:value-of select="$CLEANTITLE"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/
<xsl:value-of select="$PIDVALUE"/>/-/
<xsl:value-of select="$CLEANTITLE"/>
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$PIDVALUE"/> <xsl:value-of select="$PIDVALUE"/><br />
<br />
</a> </a>
<span class="searchtitle"> <span class="searchtitle">
<span > <span >
Score:( Score:(<xsl:value-of select="@score"/>)
<xsl:value-of select="@score"/>) </span><br />
</span>
<br />
<a> <a>
<!--<xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/><![CDATA[&pid=]]><xsl:value-of select="$PIDVALUE"/><![CDATA[&collection=object]]>--> <!--<xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/><![CDATA[&pid=]]><xsl:value-of select="$PIDVALUE"/><![CDATA[&collection=object]]>-->
<xsl:attribute name="href"> <xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/<xsl:value-of select="$PIDVALUE"/>/-/<xsl:value-of select="$CLEANTITLE"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/
<xsl:value-of select="$PIDVALUE"/>/-/
<xsl:value-of select="$CLEANTITLE"/>
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="field[@name='dc.title']/node()" disable-output-escaping="yes"/> <xsl:value-of select="field[@name='dc.title']/node()" disable-output-escaping="yes"/>
@ -364,8 +316,7 @@
</table> </table>
</td> </td></tr>
</tr> </xsl:template>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

545
xsl/browseIndexToResultPage.xslt

@ -32,271 +32,165 @@
termPageSize="{$TERMPAGESIZE}" termPageSize="{$TERMPAGESIZE}"
resultPageXslt="{$RESULTPAGEXSLT}" resultPageXslt="{$RESULTPAGEXSLT}"
termTotal="{$TERMTOTAL}"> termTotal="{$TERMTOTAL}">
<h3> <h3><xsl:value-of select="$DISPLAYNAME"/></h3>
<xsl:value-of select="$DISPLAYNAME"/>
</h3>
<!--start pager Div--> <!--start pager Div-->
<!--Start letters --> <!--Start letters -->
<div class="item-list"> <div class="item-list">
<ul class="pager"> <ul class="pager">
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/A/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> A </span>
<xsl:value-of select='$FIELDNAME'/>/A/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> A </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/B/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> B </span>
<xsl:value-of select='$FIELDNAME'/>/B/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> B </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/C/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> C </span>
<xsl:value-of select='$FIELDNAME'/>/C/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> C </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/D/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> D </span>
<xsl:value-of select='$FIELDNAME'/>/D/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> D </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/E/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> E </span>
<xsl:value-of select='$FIELDNAME'/>/E/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> E </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/F/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> F </span>
<xsl:value-of select='$FIELDNAME'/>/F/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> F </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/G/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> G </span>
<xsl:value-of select='$FIELDNAME'/>/G/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> G </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/H/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> H </span>
<xsl:value-of select='$FIELDNAME'/>/H/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> H </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/I/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> I </span>
<xsl:value-of select='$FIELDNAME'/>/I/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> I </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/J/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> J </span>
<xsl:value-of select='$FIELDNAME'/>/J/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> J </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/K/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> K </span>
<xsl:value-of select='$FIELDNAME'/>/K/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> K </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/L/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> L </span>
<xsl:value-of select='$FIELDNAME'/>/L/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> L </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/M/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> M </span>
<xsl:value-of select='$FIELDNAME'/>/M/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> M </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/N/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> N </span>
<xsl:value-of select='$FIELDNAME'/>/N/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> N </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/O/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> O </span>
<xsl:value-of select='$FIELDNAME'/>/O/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> O </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/P/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> P </span>
<xsl:value-of select='$FIELDNAME'/>/P/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> P </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/Q/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> Q </span>
<xsl:value-of select='$FIELDNAME'/>/Q/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> Q </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/R/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> R </span>
<xsl:value-of select='$FIELDNAME'/>/R/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> R </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/S/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> S </span>
<xsl:value-of select='$FIELDNAME'/>/S/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> S </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/T/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> T </span>
<xsl:value-of select='$FIELDNAME'/>/T/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> T </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/U/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> U </span>
<xsl:value-of select='$FIELDNAME'/>/U/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> U </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/V/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> V </span>
<xsl:value-of select='$FIELDNAME'/>/V/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> V </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/W/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> W </span>
<xsl:value-of select='$FIELDNAME'/>/W/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> W </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/X/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> X </span>
<xsl:value-of select='$FIELDNAME'/>/X/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> X </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/Y/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> Y </span>
<xsl:value-of select='$FIELDNAME'/>/Y/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> Y </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/Z/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> Z </span>
<xsl:value-of select='$FIELDNAME'/>/Z/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> Z </span>
</a> </a>
</li> </li>
<!--End letters--> <!--End letters-->
@ -304,282 +198,174 @@
<li class="pager-next"> <li class="pager-next">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/<xsl:value-of select="$PAGELASTTERM"/>/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:value-of select='$FIELDNAME'/>/
<xsl:value-of select="$PAGELASTTERM"/>/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute> >> </xsl:attribute> >>
</a> </a>
</li> </li>
</ul> </ul>
</div> </div>
<!--End pager Div--> <!--End pager Div-->
<br /> <br /><br />
<br />
<xsl:apply-templates select="terms"/> <xsl:apply-templates select="terms"/>
<br /> <br />
<!--start pager Div--> <!--start pager Div-->
<!--Start letters --> <!--Start letters -->
<div class="item-list"> <div class="item-list">
<ul class="pager"> <ul class="pager">
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/A/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> A </span>
<xsl:value-of select='$FIELDNAME'/>/A/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> A </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/B/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> B </span>
<xsl:value-of select='$FIELDNAME'/>/B/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> B </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/C/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> C </span>
<xsl:value-of select='$FIELDNAME'/>/C/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> C </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/D/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> D </span>
<xsl:value-of select='$FIELDNAME'/>/D/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> D </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/E/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> E </span>
<xsl:value-of select='$FIELDNAME'/>/E/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> E </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/F/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> F </span>
<xsl:value-of select='$FIELDNAME'/>/F/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> F </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/G/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> G </span>
<xsl:value-of select='$FIELDNAME'/>/G/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> G </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/I/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> H </span>
<xsl:value-of select='$FIELDNAME'/>/I/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> H </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/I/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> I </span>
<xsl:value-of select='$FIELDNAME'/>/I/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> I </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/J/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> J </span>
<xsl:value-of select='$FIELDNAME'/>/J/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> J </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/K/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> K </span>
<xsl:value-of select='$FIELDNAME'/>/K/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> K </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/L/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> L </span>
<xsl:value-of select='$FIELDNAME'/>/L/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> L </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/M/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> M </span>
<xsl:value-of select='$FIELDNAME'/>/M/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> M </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/N/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> N </span>
<xsl:value-of select='$FIELDNAME'/>/N/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> N </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/O/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> O </span>
<xsl:value-of select='$FIELDNAME'/>/O/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> O </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/P/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> P </span>
<xsl:value-of select='$FIELDNAME'/>/P/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> P </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/Q/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> Q </span>
<xsl:value-of select='$FIELDNAME'/>/Q/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> Q </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/R/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> R </span>
<xsl:value-of select='$FIELDNAME'/>/R/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> R </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/S/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> S </span>
<xsl:value-of select='$FIELDNAME'/>/S/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> S </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/T/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> T </span>
<xsl:value-of select='$FIELDNAME'/>/T/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> T </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/U/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> U </span>
<xsl:value-of select='$FIELDNAME'/>/U/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> U </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/V/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> V </span>
<xsl:value-of select='$FIELDNAME'/>/V/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> V </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/W/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> W </span>
<xsl:value-of select='$FIELDNAME'/>/W/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> W </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/X/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> X </span>
<xsl:value-of select='$FIELDNAME'/>/X/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> X </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/Y/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> Y </span>
<xsl:value-of select='$FIELDNAME'/>/Y/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> Y </span>
</a> </a>
</li> </li>
<li class="pager-item"> <li class="pager-item">
<a> <a> <xsl:attribute name="href">
<xsl:attribute name="href"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/Z/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </xsl:attribute> <span class="letter"> Z </span>
<xsl:value-of select='$FIELDNAME'/>/Z/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute>
<span class="letter"> Z </span>
</a> </a>
</li> </li>
<!--End letters--> <!--End letters-->
@ -587,10 +373,7 @@
<li class="pager-next"> <li class="pager-next">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/<xsl:value-of select="$PAGELASTTERM"/>/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:value-of select='$FIELDNAME'/>/
<xsl:value-of select="$PAGELASTTERM"/>/
<xsl:value-of select="$DISPLAYNAME"/>
</xsl:attribute> >> </xsl:attribute> >>
</a> </a>
</li> </li>
@ -610,9 +393,7 @@
<!-- <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/mnpl_advanced_search/<xsl:value-of select='$FIELDNAME'/>:"<xsl:value-of select="."/>" AND dc.type:collection <!-- <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/mnpl_advanced_search/<xsl:value-of select='$FIELDNAME'/>:"<xsl:value-of select="."/>" AND dc.type:collection
the commented out url is for general use the one below is for islandlives book view--> the commented out url is for general use the one below is for islandlives book view-->
<xsl:variable name="SHORTFIELDNAME" select="substring-before($FIELDNAME,'TERM')"/> <xsl:variable name="SHORTFIELDNAME" select="substring-before($FIELDNAME,'TERM')"/>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/ilives_book_search/ <xsl:copy-of select="$OBJECTSPAGE"/>fedora/ilives_book_search/<xsl:value-of select='$SHORTFIELDNAME'/>:"<xsl:value-of select="."/>" AND dc.type:collection
<xsl:value-of select='$SHORTFIELDNAME'/>:"
<xsl:value-of select="."/>" AND dc.type:collection
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="."/> <xsl:value-of select="."/>
</a> </a>

40
xsl/convertQDC.xsl

@ -6,50 +6,28 @@
<xsl:variable name="PATH"> <xsl:variable name="PATH">
<xsl:value-of select="$path"/> <xsl:value-of select="$path"/>
</xsl:variable> </xsl:variable>
<xsl:template match="/"> <xsl:template match="/">
<div> <div><table cellspacing="3" cellpadding="3"><tbody>
<table cellspacing="3" cellpadding="3"> <tr><th colspan="3"><h3>MetaData</h3></th></tr>
<tbody> <xsl:for-each select="/*/*">
<tr>
<th colspan="3">
<h3>MetaData</h3>
</th>
</tr>
<xsl:for-each select="/*/*">
<xsl:variable name="FULLFIELD" select="name()"/> <xsl:variable name="FULLFIELD" select="name()"/>
<xsl:variable name="FIELD" select="substring-after(name(),':')"/> <xsl:variable name="FIELD" select="substring-after(name(),':')"/>
<xsl:variable name="DATA" select="text()"/> <xsl:variable name="DATA" select="text()"/>
<xsl:if test="$DATA != ' '"> <xsl:if test="$DATA != ' '">
<tr> <tr><td><strong><xsl:value-of select="substring-after(name(),':')"/></strong></td><td><xsl:value-of select="text()"/>
<td>
<strong>
<xsl:value-of select="substring-after(name(),':')"/>
</strong>
</td>
<td>
<xsl:value-of select="text()"/>
<xsl:for-each select="*"> <xsl:for-each select="*">
<div> <div>
<xsl:value-of select="substring-after(name(),':')"/> = <xsl:value-of select="substring-after(name(),':')"/> = <xsl:value-of select="text()"/>
<xsl:value-of select="text()"/>
</div> </div>
</xsl:for-each> </xsl:for-each>
</td> </td><td><a href="{$baseUrl}/search/fedora_repository/dc.{$FIELD}:{$DATA}"><img title="Find Similar by {$FIELD}" src="{$PATH}/images/view.gif" alt="Find Similar by {$FIELD}" /></a></td></tr>
<td>
<a href="{$baseUrl}/search/fedora_repository/dc.{$FIELD}:{$DATA}">
<img title="Find Similar by {$FIELD}" src="{$PATH}/images/view.gif" alt="Find Similar by {$FIELD}" />
</a>
</td>
</tr>
</xsl:if> </xsl:if>
</xsl:for-each> </xsl:for-each>
</tbody> </tbody></table></div>
</table>
</div>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

174
xsl/refworks.xsl

@ -6,127 +6,27 @@
<xsl:if test="/reference/jf"> <xsl:if test="/reference/jf">
<h2>General Information</h2> <h2>General Information</h2>
<table cellpadding="2" cellspacing="2"> <table cellpadding="2" cellspacing="2">
<tr> <tr><td ><strong>Periodical:</strong></td><td><xsl:value-of select="/reference/jf"/></td></tr>
<td > <tr><td><strong>Abbreviation:</strong></td><td><xsl:value-of select="/reference/jo"/></td></tr>
<strong>Periodical:</strong> <tr><td><strong>Volume:</strong></td><td><xsl:value-of select="/reference/vo"/></td></tr>
</td> <tr><td><strong>Issue:</strong></td><td><xsl:value-of select="/reference/is"/></td></tr>
<td> <tr><td><strong>Publisher:</strong></td><td><xsl:value-of select="/reference/pb"/></td></tr>
<xsl:value-of select="/reference/jf"/> <tr><td><strong>Place of Publication:</strong></td><td><xsl:value-of select="/reference/pp"/></td></tr>
</td> <tr><td><strong>Edition:</strong></td><td><xsl:value-of select="/reference/ed"/></td></tr>
</tr> <tr><td><strong>Year:</strong></td><td><xsl:value-of select="/reference/yr"/></td></tr>
<tr> <tr><td><strong>Date:</strong></td><td><xsl:value-of select="/reference/fd"/></td></tr>
<td> <tr><td><strong>Start Page:</strong></td><td><xsl:value-of select="/reference/sp"/></td></tr>
<strong>Abbreviation:</strong> <tr><td><strong>Other Pages:</strong></td><td><xsl:value-of select="/reference/op"/></td></tr>
</td> <tr><td><strong>ISSN/ISBN:</strong></td><td><xsl:value-of select="/reference/sn"/></td></tr>
<td> <tr><td><strong>Language:</strong></td><td><xsl:value-of select="/reference/la"/></td></tr>
<xsl:value-of select="/reference/jo"/> <tr><td><strong>UL:</strong></td><td><xsl:value-of select="/reference/ul"/></td></tr>
</td>
</tr>
<tr>
<td>
<strong>Volume:</strong>
</td>
<td>
<xsl:value-of select="/reference/vo"/>
</td>
</tr>
<tr>
<td>
<strong>Issue:</strong>
</td>
<td>
<xsl:value-of select="/reference/is"/>
</td>
</tr>
<tr>
<td>
<strong>Publisher:</strong>
</td>
<td>
<xsl:value-of select="/reference/pb"/>
</td>
</tr>
<tr>
<td>
<strong>Place of Publication:</strong>
</td>
<td>
<xsl:value-of select="/reference/pp"/>
</td>
</tr>
<tr>
<td>
<strong>Edition:</strong>
</td>
<td>
<xsl:value-of select="/reference/ed"/>
</td>
</tr>
<tr>
<td>
<strong>Year:</strong>
</td>
<td>
<xsl:value-of select="/reference/yr"/>
</td>
</tr>
<tr>
<td>
<strong>Date:</strong>
</td>
<td>
<xsl:value-of select="/reference/fd"/>
</td>
</tr>
<tr>
<td>
<strong>Start Page:</strong>
</td>
<td>
<xsl:value-of select="/reference/sp"/>
</td>
</tr>
<tr>
<td>
<strong>Other Pages:</strong>
</td>
<td>
<xsl:value-of select="/reference/op"/>
</td>
</tr>
<tr>
<td>
<strong>ISSN/ISBN:</strong>
</td>
<td>
<xsl:value-of select="/reference/sn"/>
</td>
</tr>
<tr>
<td>
<strong>Language:</strong>
</td>
<td>
<xsl:value-of select="/reference/la"/>
</td>
</tr>
<tr>
<td>
<strong>UL:</strong>
</td>
<td>
<xsl:value-of select="/reference/ul"/>
</td>
</tr>
</table> </table>
</xsl:if> </xsl:if>
<xsl:if test="/reference/t1"> <xsl:if test="/reference/t1">
<h2>Titles</h2> <h2>Titles</h2>
<ul> <ul>
<xsl:for-each select="/reference/t1"> <xsl:for-each select="/reference/t1">
<li> <li><xsl:value-of select="."/></li>
<xsl:value-of select="."/>
</li>
</xsl:for-each> </xsl:for-each>
</ul> </ul>
</xsl:if> </xsl:if>
@ -134,9 +34,7 @@
<ul> <ul>
<h3>Secondary Titles</h3> <h3>Secondary Titles</h3>
<xsl:for-each select="/reference/t2"> <xsl:for-each select="/reference/t2">
<li> <li><xsl:value-of select="."/></li>
<xsl:value-of select="."/>
</li>
</xsl:for-each> </xsl:for-each>
</ul> </ul>
</xsl:if> </xsl:if>
@ -144,9 +42,7 @@
<h2>Authors</h2> <h2>Authors</h2>
<ul> <ul>
<xsl:for-each select="/reference/a1"> <xsl:for-each select="/reference/a1">
<li> <li><xsl:value-of select="."/></li>
<xsl:value-of select="."/>
</li>
</xsl:for-each> </xsl:for-each>
</ul> </ul>
</xsl:if> </xsl:if>
@ -155,9 +51,7 @@
<ul> <ul>
<h3>Secondary Authors</h3> <h3>Secondary Authors</h3>
<xsl:for-each select="/reference/a2"> <xsl:for-each select="/reference/a2">
<li> <li><xsl:value-of select="."/></li>
<xsl:value-of select="."/>
</li>
</xsl:for-each> </xsl:for-each>
</ul> </ul>
</xsl:if> </xsl:if>
@ -165,52 +59,34 @@
<h2>Keywords</h2> <h2>Keywords</h2>
<ul> <ul>
<xsl:for-each select="/reference/k1"> <xsl:for-each select="/reference/k1">
<li> <li><xsl:value-of select="."/></li>
<xsl:value-of select="."/>
</li>
</xsl:for-each> </xsl:for-each>
</ul> </ul>
</xsl:if> </xsl:if>
<xsl:if test="/reference/ab"> <xsl:if test="/reference/ab">
<h2>Abstract</h2> <h2>Abstract</h2>
<xsl:for-each select="/reference/ab"> <xsl:for-each select="/reference/ab">
<div> <div><xsl:value-of select="."/> </div>
<xsl:value-of select="."/>
</div>
</xsl:for-each> </xsl:for-each>
</xsl:if> </xsl:if>
<xsl:if test="/reference/no"> <xsl:if test="/reference/no">
<h2>Notes</h2> <h2>Notes</h2>
<xsl:for-each select="/reference/no"> <xsl:for-each select="/reference/no">
<div> <div><xsl:value-of select="."/> </div>
<xsl:value-of select="."/>
</div>
</xsl:for-each> </xsl:for-each>
</xsl:if> </xsl:if>
<xsl:variable name="ISSN"> <xsl:variable name="ISSN">
<xsl:value-of select="/reference/sn"/> <xsl:value-of select="/reference/sn"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
http://articles.library.upei.ca:7888/godot/hold_tab.cgi?hold_tab_branch=PCU&amp;issn= http://articles.library.upei.ca:7888/godot/hold_tab.cgi?hold_tab_branch=PCU&amp;issn=<xsl:value-of select="/reference/sn/text()"/>&amp;date=<xsl:value-of select="/reference/yr/text()"/>&amp;volume=<xsl:value-of select="/reference/vo/text()"/>&amp;issue=<xsl:value-of select="/reference/is/text()"/>&amp;spage=<xsl:value-of select="/reference/sp/text()"/>&amp;atitle=<xsl:value-of select="/reference/t1"/>&amp;stitle=<xsl:value-of select="/reference/jf"/>
<xsl:value-of select="/reference/sn/text()"/>&amp;date=
<xsl:value-of select="/reference/yr/text()"/>&amp;volume=
<xsl:value-of select="/reference/vo/text()"/>&amp;issue=
<xsl:value-of select="/reference/is/text()"/>&amp;spage=
<xsl:value-of select="/reference/sp/text()"/>&amp;atitle=
<xsl:value-of select="/reference/t1"/>&amp;stitle=
<xsl:value-of select="/reference/jf"/>
</xsl:variable> </xsl:variable>
<br /> <br />
<xsl:if test="/reference/sn"> <xsl:if test="/reference/sn">
<div> <div><a>
<a> <xsl:attribute name="href"><xsl:value-of select="$BASEURL"/></xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute> <xsl:attribute name="target">_blank</xsl:attribute>
<img src="http://asin1.its.unb.ca:8000/muse/images/getit4.gif"/> <img src="http://asin1.its.unb.ca:8000/muse/images/getit4.gif"/> </a></div>
</a>
</div>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

12
xsl/results.xsl

@ -199,7 +199,9 @@
<td valign="top"> <td valign="top">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/<xsl:copy-of select="$PIDVALUE"/>/-/<xsl:value-of select="$CLEANTITLE"/> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/
<xsl:copy-of select="$PIDVALUE"/>/-/
<xsl:value-of select="$CLEANTITLE"/>
</xsl:attribute> </xsl:attribute>
<!--<xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/><![CDATA[&pid=]]><xsl:value-of select="$PIDVALUE"/><![CDATA[&collection=object]]> <!--<xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/><![CDATA[&pid=]]><xsl:value-of select="$PIDVALUE"/><![CDATA[&collection=object]]>
@ -232,7 +234,9 @@
<!--<xsl:attribute name="href"><![CDATA[http://localhost/drupal-5.1/?q=node/7&pid=]]><xsl:value-of select="$PIDVALUE"/><![CDATA[&collection=object]]>--> <!--<xsl:attribute name="href"><![CDATA[http://localhost/drupal-5.1/?q=node/7&pid=]]><xsl:value-of select="$PIDVALUE"/><![CDATA[&collection=object]]>-->
<!--<xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/><![CDATA[&pid=]]><xsl:value-of select="$PIDVALUE"/><![CDATA[&collection=object]]>--> <!--<xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/><![CDATA[&pid=]]><xsl:value-of select="$PIDVALUE"/><![CDATA[&collection=object]]>-->
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/<xsl:value-of select="$PIDVALUE"/>/-/<xsl:value-of select="$CLEANTITLE"/> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/
<xsl:value-of select="$PIDVALUE"/>/-/
<xsl:value-of select="$CLEANTITLE"/>
</xsl:attribute> </xsl:attribute>
@ -249,7 +253,9 @@
<!--<xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/><![CDATA[&pid=]]><xsl:value-of select="$PIDVALUE"/><![CDATA[&collection=object]]>--> <!--<xsl:attribute name="href"><xsl:copy-of select="$OBJECTSPAGE"/><![CDATA[&pid=]]><xsl:value-of select="$PIDVALUE"/><![CDATA[&collection=object]]>-->
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/<xsl:value-of select="$PIDVALUE"/>/-/<xsl:value-of select="$CLEANTITLE"/> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/
<xsl:value-of select="$PIDVALUE"/>/-/
<xsl:value-of select="$CLEANTITLE"/>
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="field[@name='dc.title']/node()" disable-output-escaping="yes"/> <xsl:value-of select="field[@name='dc.title']/node()" disable-output-escaping="yes"/>

75
xsl/romeo.xsl

@ -2,81 +2,28 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- romeo XSLT --> <!-- romeo XSLT -->
<xsl:template match="/"> <xsl:template match="/">
<table cellpadding="3" cellspacing="3"> <table cellpadding="3" cellspacing="3"><tr><td>
<tr> <b>Journal: </b></td><td><xsl:value-of select="/romeoapi/journals/journal/jtitle"/></td></tr>
<td> <tr><td><b>Published By: </b></td><td><xsl:value-of select="/romeoapi/journals/journal/zetocpub"/><br /></td></tr>
<b>Journal: </b> <tr><td><b>Publisher Url:</b></td><td><xsl:value-of select="/romeoapi/publishers/publisher/homeurl"/></td></tr>
</td> <tr><td><b>Prearchiving:</b></td><td><xsl:value-of select="/romeoapi/publishers/publisher/preprints/prearchiving"/></td></tr>
<td> <tr><td><b>Postprints:</b></td><td><xsl:value-of select="/romeoapi/publishers/publisher/postprints/postarchiving"/></td></tr>
<xsl:value-of select="/romeoapi/journals/journal/jtitle"/>
</td>
</tr>
<tr>
<td>
<b>Published By: </b>
</td>
<td>
<xsl:value-of select="/romeoapi/journals/journal/zetocpub"/>
<br />
</td>
</tr>
<tr>
<td>
<b>Publisher Url:</b>
</td>
<td>
<xsl:value-of select="/romeoapi/publishers/publisher/homeurl"/>
</td>
</tr>
<tr>
<td>
<b>Prearchiving:</b>
</td>
<td>
<xsl:value-of select="/romeoapi/publishers/publisher/preprints/prearchiving"/>
</td>
</tr>
<tr>
<td>
<b>Postprints:</b>
</td>
<td>
<xsl:value-of select="/romeoapi/publishers/publisher/postprints/postarchiving"/>
</td>
</tr>
</table> </table>
<h2>Conditions</h2> <h2>Conditions</h2>
<ul> <ul>
<xsl:for-each select="romeoapi/publishers/publisher/conditions/condition"> <xsl:for-each select="romeoapi/publishers/publisher/conditions/condition">
<li> <li><xsl:value-of select="."/></li>
<xsl:value-of select="."/>
</li>
</xsl:for-each> </xsl:for-each>
</ul> </ul>
<span> <span><b>Rights: </b><xsl:value-of select="/romeoapi/publishers/publisher/copyright/text()" disable-output-escaping="yes"/></span><br />
<b>Rights: </b>
<xsl:value-of select="/romeoapi/publishers/publisher/copyright/text()" disable-output-escaping="yes"/>
</span>
<br />
<xsl:variable name="COLOR"> <xsl:variable name="COLOR">
<xsl:value-of select="/romeoapi/publishers/publisher/romeocolour"/> <xsl:value-of select="/romeoapi/publishers/publisher/romeocolour"/>
</xsl:variable> </xsl:variable>
<span STYLE="background-color: light{$COLOR}"> <span STYLE="background-color: light{$COLOR}"><b>Romeo Colour: </b><xsl:value-of select="/romeoapi/publishers/publisher/romeocolour"/></span><br />
<b>Romeo Colour: </b> <div align="right"><a href="http://www.sherpa.ac.uk/romeo.php"><img src="http://www.sherpa.ac.uk/images/romeotiny.gif"/></a></div>
<xsl:value-of select="/romeoapi/publishers/publisher/romeocolour"/>
</span>
<br />
<div align="right">
<a href="http://www.sherpa.ac.uk/romeo.php">
<img src="http://www.sherpa.ac.uk/images/romeotiny.gif"/>
</a>
</div>
<xsl:if test = "count(/romeoapi/publishers/publisher/homeurl) &lt; 1"> <xsl:if test = "count(/romeoapi/publishers/publisher/homeurl) &lt; 1">
<div>If there are no results from <div>If there are no results from <strong>ROMEO</strong> shown above you can try searching manually by clicking <a href="http://www.sherpa.ac.uk/romeo.php" target="_blank">here</a>.</div>
<strong>ROMEO</strong> shown above you can try searching manually by clicking
<a href="http://www.sherpa.ac.uk/romeo.php" target="_blank">here</a>.
</div>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

153
xsl/sparql_to_html.xsl

@ -15,90 +15,62 @@
<xsl:variable name="end" select="($start - 1) + number($size)"/> <xsl:variable name="end" select="($start - 1) + number($size)"/>
<xsl:variable name="cellsPerRow" select="4"/> <xsl:variable name="cellsPerRow" select="4"/>
<xsl:variable name="count" select="count(s:sparql/s:results/s:result)"/> <xsl:variable name="count" select="count(s:sparql/s:results/s:result)"/>
<xsl:template match="/"> <xsl:template match="/">
<xsl:if test="$count>0"> <xsl:if test="$count>0">
<table cellpadding="3" cellspacing="3" width="90%"> <table cellpadding="3" cellspacing="3" width="90%">
<tr> <tr><td colspan="{$cellsPerRow}">
<td colspan="{$cellsPerRow}">
<!-- <div STYLE="text-align: center;">--> <!-- <div STYLE="text-align: center;">-->
<!-- start previous next --> <!-- start previous next -->
<div class="item-list"> <div class="item-list">
<ul class="pager"> <ul class="pager">
<xsl:choose> <xsl:choose>
<xsl:when test="$end >= $count and $start = 1"> <xsl:when test="$end >= $count and $start = 1">
<xsl:value-of select="$start"/>- <xsl:value-of select="$start"/>-<xsl:value-of select="$count"/>
<xsl:value-of select="$count"/> of <xsl:value-of select="$count"/>&#160;<br />
of
<xsl:value-of select="$count"/>&#160;
<br />
</xsl:when> </xsl:when>
<xsl:when test="$end >= $count"> <xsl:when test="$end >= $count">
<xsl:value-of select="$start"/>- <xsl:value-of select="$start"/>-<xsl:value-of select="$count"/>
<xsl:value-of select="$count"/> of <xsl:value-of select="$count"/>&#160;<br />
of
<xsl:value-of select="$count"/>&#160;
<br />
<li class="pager-previous"> <li class="pager-previous">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/>
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/>
</xsl:attribute> </xsl:attribute>
&lt;Prev &lt;Prev
</a> </a></li>
</li>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>- <xsl:value-of select="$start"/>-<xsl:value-of select="$end"/>
<xsl:value-of select="$end"/> of <xsl:value-of select="$count"/>&#160;<br />
of
<xsl:value-of select="$count"/>&#160;
<br />
<li class="pager-next"> <li class="pager-next">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/>
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/>
</xsl:attribute> </xsl:attribute>
Next> Next>
</a> </a></li>
</li>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>- <xsl:value-of select="$start"/>-<xsl:value-of select="$end"/>
<xsl:value-of select="$end"/> of <xsl:value-of select="$count"/>&#160;<br />
of
<xsl:value-of select="$count"/>&#160;
<br />
<li class="pager-previous"> <li class="pager-previous">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/>
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute> </xsl:attribute>
&lt;Prev &lt;Prev
</a>&#160; </a>&#160;</li>
</li>
<li class="pager-next"> <li class="pager-next">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/>
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute> </xsl:attribute>
Next> Next>
</a> </a></li>
</li>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</ul> </ul>
</div> </div>
<!-- end previous next--> <!-- end previous next-->
<br clear="all" /> <br clear="all" />
</td> </td></tr>
</tr>
<!--<xsl:for-each select="/sparql/results/result[position()>=$start and position() &lt;=$end]"> <!--<xsl:for-each select="/sparql/results/result[position()>=$start and position() &lt;=$end]">
<xsl:variable name='OBJECTURI' select="object/@uri"/> <xsl:variable name='OBJECTURI' select="object/@uri"/>
@ -119,91 +91,58 @@
</xsl:for-each>- </xsl:for-each>-
--> -->
<xsl:apply-templates select="s:sparql/s:results"/> <xsl:apply-templates select="s:sparql/s:results"/>
</table> </table><br clear="all" />
<br clear="all" />
<!-- start previous next --> <!-- start previous next -->
<div class="item-list"> <div class="item-list">
<ul class="pager"> <ul class="pager">
<xsl:choose> <xsl:choose>
<xsl:when test="$end >= $count and $start = 1"> <xsl:when test="$end >= $count and $start = 1">
<xsl:value-of select="$start"/>- <xsl:value-of select="$start"/>-<xsl:value-of select="$count"/>
<xsl:value-of select="$count"/> of <xsl:value-of select="$count"/>&#160;<br />
of
<xsl:value-of select="$count"/>&#160;
<br />
</xsl:when> </xsl:when>
<xsl:when test="$end >= $count"> <xsl:when test="$end >= $count">
<xsl:value-of select="$start"/>- <xsl:value-of select="$start"/>-<xsl:value-of select="$count"/>
<xsl:value-of select="$count"/> of <xsl:value-of select="$count"/>&#160;<br />
of
<xsl:value-of select="$count"/>&#160;
<br />
<li class="pager-previous"> <li class="pager-previous">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/>
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute> </xsl:attribute>
&lt;Prev &lt;Prev
</a> </a></li>
</li>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>- <xsl:value-of select="$start"/>-<xsl:value-of select="$end"/>
<xsl:value-of select="$end"/> of <xsl:value-of select="$count"/>&#160;<br />
of
<xsl:value-of select="$count"/>&#160;
<br />
<li class="pager-next"> <li class="pager-next">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/>
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute> </xsl:attribute>
Next> Next>
</a> </a></li>
</li>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>- <xsl:value-of select="$start"/>-<xsl:value-of select="$end"/>
<xsl:value-of select="$end"/> of <xsl:value-of select="$count"/>&#160;<br />
of
<xsl:value-of select="$count"/>&#160;
<br />
<li class="pager-previous"> <li class="pager-previous">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/>
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute> </xsl:attribute>
&lt;Prev &lt;Prev
</a>&#160; </a>&#160;</li>
</li>
<li class="pager-next"> <li class="pager-next">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/>
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute> </xsl:attribute>
Next> Next>
</a> </a></li>
</li>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</ul> </ul>
</div> </div>
<!-- end previous next--> <!-- end previous next-->
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template match="s:sparql/s:results"> <xsl:template match="s:sparql/s:results">
<xsl:for-each select="s:result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]"> <xsl:for-each select="s:result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]">
<tr> <tr>
@ -241,22 +180,16 @@
</xsl:variable> </xsl:variable>
<td valign="top" width="25%"> <td valign="top" width="25%">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href"><xsl:value-of select="$linkUrl"/>
<xsl:value-of select="$linkUrl"/>
</xsl:attribute> </xsl:attribute>
<img> <img>
<xsl:attribute name="src"> <xsl:attribute name="src"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$PID"/>/TN
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$PID"/>/TN
</xsl:attribute> </xsl:attribute>
<xsl:attribute name="alt"> <xsl:attribute name="alt"><xsl:value-of select="$newTitle" disable-output-escaping="yes"/>
<xsl:value-of select="$newTitle" disable-output-escaping="yes"/>
</xsl:attribute> </xsl:attribute>
</img> </img> </a> <br clear="all" />
</a>
<br clear="all" />
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href"><xsl:value-of select="$linkUrl"/>
<xsl:value-of select="$linkUrl"/>
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$newTitle" disable-output-escaping="yes" /> <xsl:value-of select="$newTitle" disable-output-escaping="yes" />
</a> </a>

169
xsl/specdwc.xsl

@ -11,150 +11,33 @@
<xsl:template match="/"> <xsl:template match="/">
<table> <table>
<tr cellpadding="10"> <tr cellpadding="10"><th><b>Specimen</b></th></tr>
<th> <tr class="odd"><td width="200">Scientific Name</td><td><xsl:value-of select="//dwc:scientificName"/></td></tr>
<b>Specimen</b> <tr class="even"><td width="200">Family</td><td><xsl:value-of select="//dwc:family"/></td></tr>
</th> <tr class="odd"><td width="200">Genus</td><td><xsl:value-of select="//dwc:genus"/></td></tr>
</tr> <tr class="even"><td width="200">Common Name</td><td><xsl:value-of select="//dwc:vernacularName"/></td></tr>
<tr class="odd">
<td width="200">Scientific Name</td>
<td>
<xsl:value-of select="//dwc:scientificName"/>
</td>
</tr>
<tr class="even">
<td width="200">Family</td>
<td>
<xsl:value-of select="//dwc:family"/>
</td>
</tr>
<tr class="odd">
<td width="200">Genus</td>
<td>
<xsl:value-of select="//dwc:genus"/>
</td>
</tr>
<tr class="even">
<td width="200">Common Name</td>
<td>
<xsl:value-of select="//dwc:vernacularName"/>
</td>
</tr>
<tr cellpadding="10"> <tr cellpadding="10"><th><b>Location</b></th></tr>
<th> <tr class="odd"><td width="200">Continent</td><td><xsl:value-of select="//dwc:continent"/></td></tr>
<b>Location</b> <tr class="even"><td width="200">Country</td><td><xsl:value-of select="//dwc:country"/></td></tr>
</th> <tr class="odd"><td width="200">Country Code</td><td><xsl:value-of select="//dwc:countryCode"/></td></tr>
</tr> <tr class="even"><td width="200">State/Province</td><td><xsl:value-of select="//dwc:stateProvince"/></td></tr>
<tr class="odd"> <tr class="odd"><td width="200">County</td><td><xsl:value-of select="//dwc:county"/></td></tr>
<td width="200">Continent</td> <tr class="even"><td width="200">Locality</td><td><xsl:value-of select="//dwc:locality"/></td></tr>
<td> <tr class="odd"><td width="200">Habitat</td><td><xsl:value-of select="//dwc:habitat"/></td></tr>
<xsl:value-of select="//dwc:continent"/>
</td>
</tr>
<tr class="even">
<td width="200">Country</td>
<td>
<xsl:value-of select="//dwc:country"/>
</td>
</tr>
<tr class="odd">
<td width="200">Country Code</td>
<td>
<xsl:value-of select="//dwc:countryCode"/>
</td>
</tr>
<tr class="even">
<td width="200">State/Province</td>
<td>
<xsl:value-of select="//dwc:stateProvince"/>
</td>
</tr>
<tr class="odd">
<td width="200">County</td>
<td>
<xsl:value-of select="//dwc:county"/>
</td>
</tr>
<tr class="even">
<td width="200">Locality</td>
<td>
<xsl:value-of select="//dwc:locality"/>
</td>
</tr>
<tr class="odd">
<td width="200">Habitat</td>
<td>
<xsl:value-of select="//dwc:habitat"/>
</td>
</tr>
<tr cellpadding="10"> <tr cellpadding="10"><th><b>Record</b></th></tr>
<th> <tr class="odd"><td width="200">Record Type</td><td><xsl:value-of select="//dc:type"/></td></tr>
<b>Record</b> <tr class="even"><td width="200">Language- </td><td><xsl:value-of select="//dc:language"/></td></tr>
</th> <tr class="odd"><td width="100">Record Basis</td><td><xsl:value-of select="//dwc:basisOfRecord"/></td></tr>
</tr> <tr class="even"><td width="200">Occurence Remarks</td><td><xsl:value-of select="//dwc:occurenceRemarks"/></td></tr>
<tr class="odd"> <tr class="odd"><td width="200">Occurence ID</td><td><xsl:value-of select="//dwc:occurenceID"/></td></tr>
<td width="200">Record Type</td> <tr class="even"><td width="200">Institution Code</td><td><xsl:value-of select="//dwc:institutionCode"/></td></tr>
<td> <tr class="odd"><td width="200">Collection Code</td><td><xsl:value-of select="//dwc:collectionCode"/></td></tr>
<xsl:value-of select="//dc:type"/> <tr class="even"><td width="200">Catalog Number</td><td><xsl:value-of select="//dwc:catalogNumber"/></td></tr>
</td> <tr class="odd"><td width="200">Recorded By</td><td><xsl:value-of select="//dwc:recordedBy"/></td></tr>
</tr> <tr class="even"><td width="200">Event Date200</td><td><xsl:value-of select="//dwc:eventDate"/></td></tr>
<tr class="even"> </table>
<td width="200">Language- </td>
<td>
<xsl:value-of select="//dc:language"/>
</td>
</tr>
<tr class="odd">
<td width="100">Record Basis</td>
<td>
<xsl:value-of select="//dwc:basisOfRecord"/>
</td>
</tr>
<tr class="even">
<td width="200">Occurence Remarks</td>
<td>
<xsl:value-of select="//dwc:occurenceRemarks"/>
</td>
</tr>
<tr class="odd">
<td width="200">Occurence ID</td>
<td>
<xsl:value-of select="//dwc:occurenceID"/>
</td>
</tr>
<tr class="even">
<td width="200">Institution Code</td>
<td>
<xsl:value-of select="//dwc:institutionCode"/>
</td>
</tr>
<tr class="odd">
<td width="200">Collection Code</td>
<td>
<xsl:value-of select="//dwc:collectionCode"/>
</td>
</tr>
<tr class="even">
<td width="200">Catalog Number</td>
<td>
<xsl:value-of select="//dwc:catalogNumber"/>
</td>
</tr>
<tr class="odd">
<td width="200">Recorded By</td>
<td>
<xsl:value-of select="//dwc:recordedBy"/>
</td>
</tr>
<tr class="even">
<td width="200">Event Date200</td>
<td>
<xsl:value-of select="//dwc:eventDate"/>
</td>
</tr>
</table>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

Loading…
Cancel
Save