Browse Source

Copied from 1.1

pull/28/head
Ben Woodhead 13 years ago
parent
commit
2819abd5f8
  1. 515
      xsl/advanced_search_results.xsl
  2. 893
      xsl/browseIndexToResultPage.xslt
  3. 72
      xsl/convertQDC.xsl
  4. 298
      xsl/refworks.xsl
  5. 476
      xsl/results.xsl
  6. 101
      xsl/romeo.xsl
  7. 455
      xsl/sparql_to_html.xsl
  8. 177
      xsl/specdwc.xsl
  9. 416
      xsl/unfilteredresults.xsl

515
xsl/advanced_search_results.xsl

@ -1,48 +1,48 @@
<?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,':')"/>-->
<xsl:variable name="QUERY" select="@query"/> <xsl:variable name="QUERY" select="@query"/>
<xsl:variable name="HITPAGESTART" select="@hitPageStart"/> <xsl:variable name="HITPAGESTART" select="@hitPageStart"/>
<xsl:variable name="HITPAGESIZE" select="@hitPageSize"/> <xsl:variable name="HITPAGESIZE" select="@hitPageSize"/>
<xsl:variable name="HITTOTAL" select="@hitTotal"/> <xsl:variable name="HITTOTAL" select="@hitTotal"/>
<xsl:variable name="SEARCHURL"> <xsl:variable name="SEARCHURL">
<!--<xsl:value-of select="$searchUrl"/>--> <!--<xsl:value-of select="$searchUrl"/>-->
mnpl_advanced_search mnpl_advanced_search
</xsl:variable> </xsl:variable>
<xsl:variable name="TOKEN"> <xsl:variable name="TOKEN">
<xsl:value-of select="$searchToken"/> <xsl:value-of select="$searchToken"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="HITPAGEEND"> <xsl:variable name="HITPAGEEND">
<xsl:choose> <xsl:choose>
<xsl:when test="$HITPAGESTART + $HITPAGESIZE - 1 > $HITTOTAL"> <xsl:when test="$HITPAGESTART + $HITPAGESIZE - 1 > $HITTOTAL">
<xsl:value-of select="$HITTOTAL"/> <xsl:value-of select="$HITTOTAL"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$HITPAGESTART + $HITPAGESIZE - 1"/> <xsl:value-of select="$HITPAGESTART + $HITPAGESIZE - 1"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:variable> </xsl:variable>
<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,176 +53,143 @@
{ {
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"/>, <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.
</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.
<!-- Current page = <xsl:value-of select="@hitPageStart"/>--> <!-- Current page = <xsl:value-of select="@hitPageStart"/>-->
<br/> <br/>
<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:copy-of select="$OBJECTSPAGE"/>fedora/repository/mnpl_advanced_search/<xsl:value-of select="$QUERY"/>/<xsl:value-of select="$HITPAGESTARTT+$HITPAGESIZE"/></xsl:attribute>
<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>
Next > Next >
</a> </a>
</li> </li>
</xsl:if> </xsl:if>
</ul> </ul>
</div> </div>
</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:copy-of select="$OBJECTSPAGE"/>fedora/repository/mnpl_advanced_search/<xsl:value-of select="$QUERY"/>/<xsl:value-of select="$HITPAGESTARTT+$HITPAGESIZE"/></xsl:attribute>
<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>
Next > Next >
</a> </a>
</li> </li>
</xsl:if> </xsl:if>
</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: <em>"blue smurf"</em> will match less than <em>blue smurf</em>.</li>
<li>Remove quotes around phrases to match each word individually: <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> will match less than </ul></div>
<em>blue smurf</em>.
</li> </div>
<li>Consider loosening your query with
<em>OR</em>: </xsl:otherwise>
<em>blue smurf</em> will match less than </xsl:choose>
<em>blue OR smurf</em>. </xsl:template>
</li>
</ul> <xsl:template match="objects">
</div>
</div>
</xsl:otherwise> <table><div class="search-results">
</xsl:choose> <xsl:for-each select="object">
</xsl:template> <xsl:variable name="PIDVALUE">
<xsl:choose>
<xsl:template match="objects"> <xsl:when test="@PID">
<xsl:value-of select="@PID"/>
</xsl:when>
<xsl:when test="field[@name='PID' and @snippet='yes']">
<xsl:value-of select="field[@name='PID']/span/text()"/>
<table> </xsl:when>
<div class="search-results"> <xsl:otherwise>
<xsl:for-each select="object"> <xsl:value-of select="field[@name='PID']/text()"/>
<xsl:variable name="PIDVALUE"> </xsl:otherwise>
<xsl:choose> </xsl:choose>
<xsl:when test="@PID"> </xsl:variable>
<xsl:value-of select="@PID"/>
</xsl:when>
<xsl:when test="field[@name='PID' and @snippet='yes']"> <xsl:call-template name="splitBySpace">
<xsl:value-of select="field[@name='PID']/span/text()"/> <xsl:with-param name="PIDVALUE" select="$PIDVALUE"></xsl:with-param>
</xsl:when> <xsl:with-param name="str" select="$ALLOWEDNAMESPACES"/>
<xsl:otherwise> </xsl:call-template>
<xsl:value-of select="field[@name='PID']/text()"/>
</xsl:otherwise>
</xsl:choose> </xsl:for-each>
</xsl:variable> </div></table>
</xsl:template>
<xsl:call-template name="splitBySpace"> <xsl:template name="splitBySpace">
<xsl:with-param name="PIDVALUE" select="$PIDVALUE"></xsl:with-param> <xsl:param name="str"/>
<xsl:with-param name="str" select="$ALLOWEDNAMESPACES"/> <xsl:param name="PIDVALUE"/>
</xsl:call-template>
</xsl:for-each>
</div>
</table>
</xsl:template>
<xsl:template name="splitBySpace">
<xsl:param name="str"/>
<xsl:param name="PIDVALUE"/>
<xsl:choose> <xsl:choose>
<xsl:when test="contains($str,' ')"> <xsl:when test="contains($str,' ')">
<!--'DO SOMETHING WITH THE VALUE IN <!--'DO SOMETHING WITH THE VALUE IN
{substring-before($str,' ')}--> {substring-before($str,' ')}-->
<xsl:variable name="testString" select="substring-before($str,' ')"/> <xsl:variable name="testString" select="substring-before($str,' ')"/>
<xsl:if test="starts-with(php:function('strtolower',$PIDVALUE),php:function('strtolower',$testString))"> <xsl:if test="starts-with(php:function('strtolower',$PIDVALUE),php:function('strtolower',$testString))">
<xsl:call-template name="showResult"> <xsl:call-template name="showResult">
<xsl:with-param name="PIDVALUE" select="$PIDVALUE"/> <xsl:with-param name="PIDVALUE" select="$PIDVALUE"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
<!--<xsl:value-of select="substring-before($str,' ')"/>--> <!--<xsl:value-of select="substring-before($str,' ')"/>-->
<xsl:call-template name="splitBySpace"> <xsl:call-template name="splitBySpace">
<xsl:with-param name="str" <xsl:with-param name="str"
select="substring-after($str,' ')"/> select="substring-after($str,' ')"/>
<xsl:with-param name="PIDVALUE" <xsl:with-param name="PIDVALUE"
select="$PIDVALUE"/> select="$PIDVALUE"/>
</xsl:call-template> </xsl:call-template>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<!-- <xsl:if test="substring-before($str, ':') = substring-before($PIDVALUE, ':')"> <!-- <xsl:if test="substring-before($str, ':') = substring-before($PIDVALUE, ':')">
<xsl:call-template name="showResult"> <xsl:call-template name="showResult">
@ -230,27 +197,23 @@
</xsl:call-template> </xsl:call-template>
</xsl:if>--> </xsl:if>-->
</xsl:otherwise> </xsl:otherwise>
</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()"/>
</xsl:variable> </xsl:variable>
<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:copy-of select="$OBJECTSPAGE"/>fedora/repository/<xsl:copy-of select="$PIDVALUE"/>/-/<xsl:value-of select="$CLEANTITLE"/>
<xsl:attribute name="href"> </xsl:attribute>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/
<xsl:copy-of select="$PIDVALUE"/>/-/
<xsl:value-of select="$CLEANTITLE"/>
</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]]>
</xsl:attribute>--> </xsl:attribute>-->
@ -261,111 +224,99 @@
http://islandlives.ca:8080/adore-djatoka/resolver?url_ver=Z39.88-2004&amp;rft_id=http://islandlives.ca/fedora/repository/<xsl:copy-of select="$PIDVALUE"/>/JPG/jpg.jpg&amp;svc_id=info:lanl-repo/svc/getRegion&amp;svc_val_fmt=info:ofi/fmt:kev:mtx:jpeg&amp;svc.format=image/jpeg&amp;svc.level=0&amp;svc.rotate=0&amp;svc.region=0,0,100,100</xsl:attribute> http://islandlives.ca:8080/adore-djatoka/resolver?url_ver=Z39.88-2004&amp;rft_id=http://islandlives.ca/fedora/repository/<xsl:copy-of select="$PIDVALUE"/>/JPG/jpg.jpg&amp;svc_id=info:lanl-repo/svc/getRegion&amp;svc_val_fmt=info:ofi/fmt:kev:mtx:jpeg&amp;svc.format=image/jpeg&amp;svc.level=0&amp;svc.rotate=0&amp;svc.region=0,0,100,100</xsl:attribute>
</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:attribute>
<xsl:copy-of select="$PIDVALUE"/>/TN </img>
</xsl:attribute> </a>
</img>
</a>
</td > </td >
<td width="80%" valign="top"> <td width="80%" valign="top">
<table valign="top"> <table valign="top">
<tr valign="top"> <tr valign="top">
<td valign="top" class="search-results" colspan="2"> <td valign="top" class="search-results" colspan="2">
<xsl:value-of select="@no"/> <xsl:value-of select="@no"/>
<xsl:value-of select="'. '"/> <xsl:value-of select="'. '"/>
<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:attribute>
<xsl:value-of select="$CLEANTITLE"/>
<xsl:value-of select="$PIDVALUE"/><br />
</xsl:attribute> </a>
<span class="searchtitle">
<xsl:value-of select="$PIDVALUE"/> <span >
<br /> Score:(<xsl:value-of select="@score"/>)
</a> </span><br />
<span class="searchtitle"> <a>
<span >
Score:(
<xsl:value-of select="@score"/>)
</span>
<br />
<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"/>
</a> </a>
</span> </span>
</td> </td>
</tr> </tr>
<xsl:for-each select="field[@snippet='yes']"> <xsl:for-each select="field[@snippet='yes']">
<xsl:choose> <xsl:choose>
<xsl:when test="(@name='fgs.DS.first.text')"> <xsl:when test="(@name='fgs.DS.first.text')">
<tr> <tr>
<td valign="top"> <td valign="top">
<span class="searchtitle"> <span class="searchtitle">
Text Stream<!--<xsl:value-of select="@name"/>--> Text Stream<!--<xsl:value-of select="@name"/>-->
</span> </span>
</td> </td>
<td> <td>
<span class="text"> <span class="text">
<xsl:copy-of select="node()"/> <xsl:copy-of select="node()"/>
</span> </span>
</td> </td>
</tr> </tr>
</xsl:when> </xsl:when>
<xsl:when test="(@name='dc.title')"> <xsl:when test="(@name='dc.title')">
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<tr> <tr>
<td valign="top"> <td valign="top">
<span class="searchtitle"> <span class="searchtitle">
<xsl:value-of select="@name"/> <xsl:value-of select="@name"/>
</span> </span>
</td> </td>
<td> <td>
<span class="text"> <span class="text">
<xsl:copy-of select="node()"/> <xsl:copy-of select="node()"/>
</span> </span>
</td> </td>
</tr> </tr>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:for-each> </xsl:for-each>
</table> </table>
</td> </td></tr>
</tr> </xsl:template>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

893
xsl/browseIndexToResultPage.xslt

@ -16,7 +16,7 @@
<xsl:param name="RESULTPAGEXSLT" select="resultPageXslt"/> <xsl:param name="RESULTPAGEXSLT" select="resultPageXslt"/>
<xsl:param name="DATETIME" select="none"/> <xsl:param name="DATETIME" select="none"/>
<xsl:variable name="OBJECTSPAGE" select="$objectsPage"/> <xsl:variable name="OBJECTSPAGE" select="$objectsPage"/>
<xsl:variable name="DISPLAYNAME" select="$displayName"/> <xsl:variable name="DISPLAYNAME" select="$displayName"/>
<xsl:variable name="INDEXNAME" select="lucenebrowseindex/@indexName"/> <xsl:variable name="INDEXNAME" select="lucenebrowseindex/@indexName"/>
<xsl:variable name="FIELDNAME" select="lucenebrowseindex/@fieldName"/> <xsl:variable name="FIELDNAME" select="lucenebrowseindex/@fieldName"/>
@ -32,569 +32,352 @@
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/ </a>
<xsl:value-of select="$DISPLAYNAME"/> </li>
</xsl:attribute> <li class="pager-item">
<span class="letter"> A </span> <a> <xsl:attribute name="href">
</a> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/B/<xsl:value-of select="$DISPLAYNAME"/>
</li> </xsl:attribute> <span class="letter"> B </span>
<li class="pager-item"> </a>
<a> </li>
<xsl:attribute name="href"> <li class="pager-item">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ <a> <xsl:attribute name="href">
<xsl:value-of select='$FIELDNAME'/>/B/ <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/C/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:value-of select="$DISPLAYNAME"/> </xsl:attribute> <span class="letter"> C </span>
</xsl:attribute> </a>
<span class="letter"> B </span> </li>
</a> <li class="pager-item">
</li> <a> <xsl:attribute name="href">
<li class="pager-item"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/D/<xsl:value-of select="$DISPLAYNAME"/>
<a> </xsl:attribute> <span class="letter"> D </span>
<xsl:attribute name="href"> </a>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </li>
<xsl:value-of select='$FIELDNAME'/>/C/ <li class="pager-item">
<xsl:value-of select="$DISPLAYNAME"/> <a> <xsl:attribute name="href">
</xsl:attribute> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/E/<xsl:value-of select="$DISPLAYNAME"/>
<span class="letter"> C </span> </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'/>/D/ </a>
<xsl:value-of select="$DISPLAYNAME"/> </li>
</xsl:attribute> <li class="pager-item">
<span class="letter"> D </span> <a> <xsl:attribute name="href">
</a> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/G/<xsl:value-of select="$DISPLAYNAME"/>
</li> </xsl:attribute> <span class="letter"> G </span>
<li class="pager-item"> </a>
<a> </li>
<xsl:attribute name="href"> <li class="pager-item">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ <a> <xsl:attribute name="href">
<xsl:value-of select='$FIELDNAME'/>/E/ <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/H/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:value-of select="$DISPLAYNAME"/> </xsl:attribute> <span class="letter"> H </span>
</xsl:attribute> </a>
<span class="letter"> E </span> </li>
</a> <li class="pager-item">
</li> <a> <xsl:attribute name="href">
<li class="pager-item"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/I/<xsl:value-of select="$DISPLAYNAME"/>
<a> </xsl:attribute> <span class="letter"> I </span>
<xsl:attribute name="href"> </a>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </li>
<xsl:value-of select='$FIELDNAME'/>/F/ <li class="pager-item">
<xsl:value-of select="$DISPLAYNAME"/> <a> <xsl:attribute name="href">
</xsl:attribute> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/J/<xsl:value-of select="$DISPLAYNAME"/>
<span class="letter"> F </span> </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'/>/G/ </a>
<xsl:value-of select="$DISPLAYNAME"/> </li>
</xsl:attribute> <li class="pager-item">
<span class="letter"> G </span> <a> <xsl:attribute name="href">
</a> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/L/<xsl:value-of select="$DISPLAYNAME"/>
</li> </xsl:attribute> <span class="letter"> L </span>
<li class="pager-item"> </a>
<a> </li>
<xsl:attribute name="href"> <li class="pager-item">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ <a> <xsl:attribute name="href">
<xsl:value-of select='$FIELDNAME'/>/H/ <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/M/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:value-of select="$DISPLAYNAME"/> </xsl:attribute> <span class="letter"> M </span>
</xsl:attribute> </a>
<span class="letter"> H </span> </li>
</a> <li class="pager-item">
</li> <a> <xsl:attribute name="href">
<li class="pager-item"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/N/<xsl:value-of select="$DISPLAYNAME"/>
<a> </xsl:attribute> <span class="letter"> N </span>
<xsl:attribute name="href"> </a>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </li>
<xsl:value-of select='$FIELDNAME'/>/I/ <li class="pager-item">
<xsl:value-of select="$DISPLAYNAME"/> <a> <xsl:attribute name="href">
</xsl:attribute> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/O/<xsl:value-of select="$DISPLAYNAME"/>
<span class="letter"> I </span> </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'/>/J/ </a>
<xsl:value-of select="$DISPLAYNAME"/> </li>
</xsl:attribute> <li class="pager-item">
<span class="letter"> J </span> <a> <xsl:attribute name="href">
</a> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/Q/<xsl:value-of select="$DISPLAYNAME"/>
</li> </xsl:attribute> <span class="letter"> Q </span>
<li class="pager-item"> </a>
<a> </li>
<xsl:attribute name="href"> <li class="pager-item">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ <a> <xsl:attribute name="href">
<xsl:value-of select='$FIELDNAME'/>/K/ <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/R/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:value-of select="$DISPLAYNAME"/> </xsl:attribute> <span class="letter"> R </span>
</xsl:attribute> </a>
<span class="letter"> K </span> </li>
</a> <li class="pager-item">
</li> <a> <xsl:attribute name="href">
<li class="pager-item"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/S/<xsl:value-of select="$DISPLAYNAME"/>
<a> </xsl:attribute> <span class="letter"> S </span>
<xsl:attribute name="href"> </a>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </li>
<xsl:value-of select='$FIELDNAME'/>/L/ <li class="pager-item">
<xsl:value-of select="$DISPLAYNAME"/> <a> <xsl:attribute name="href">
</xsl:attribute> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/T/<xsl:value-of select="$DISPLAYNAME"/>
<span class="letter"> L </span> </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'/>/M/ </a>
<xsl:value-of select="$DISPLAYNAME"/> </li>
</xsl:attribute> <li class="pager-item">
<span class="letter"> M </span> <a> <xsl:attribute name="href">
</a> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/V/<xsl:value-of select="$DISPLAYNAME"/>
</li> </xsl:attribute> <span class="letter"> V </span>
<li class="pager-item"> </a>
<a> </li>
<xsl:attribute name="href"> <li class="pager-item">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ <a> <xsl:attribute name="href">
<xsl:value-of select='$FIELDNAME'/>/N/ <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/W/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:value-of select="$DISPLAYNAME"/> </xsl:attribute> <span class="letter"> W </span>
</xsl:attribute> </a>
<span class="letter"> N </span> </li>
</a> <li class="pager-item">
</li> <a> <xsl:attribute name="href">
<li class="pager-item"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/X/<xsl:value-of select="$DISPLAYNAME"/>
<a> </xsl:attribute> <span class="letter"> X </span>
<xsl:attribute name="href"> </a>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </li>
<xsl:value-of select='$FIELDNAME'/>/O/ <li class="pager-item">
<xsl:value-of select="$DISPLAYNAME"/> <a> <xsl:attribute name="href">
</xsl:attribute> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/Y/<xsl:value-of select="$DISPLAYNAME"/>
<span class="letter"> O </span> </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'/>/P/ </a>
<xsl:value-of select="$DISPLAYNAME"/> </li>
</xsl:attribute>
<span class="letter"> P </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> Q </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> R </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> S </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> T </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> U </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> V </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> W </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> X </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> Y </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> Z </span>
</a>
</li>
<!--End letters--> <!--End letters-->
<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:attribute> >>
<xsl:value-of select="$PAGELASTTERM"/>/ </a>
<xsl:value-of select="$DISPLAYNAME"/> </li>
</xsl:attribute> >> </ul>
</a>
</li>
</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/ </a>
<xsl:value-of select="$DISPLAYNAME"/> </li>
</xsl:attribute> <li class="pager-item">
<span class="letter"> A </span> <a> <xsl:attribute name="href">
</a> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/B/<xsl:value-of select="$DISPLAYNAME"/>
</li> </xsl:attribute> <span class="letter"> B </span>
<li class="pager-item"> </a>
<a> </li>
<xsl:attribute name="href"> <li class="pager-item">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ <a> <xsl:attribute name="href">
<xsl:value-of select='$FIELDNAME'/>/B/ <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/C/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:value-of select="$DISPLAYNAME"/> </xsl:attribute> <span class="letter"> C </span>
</xsl:attribute> </a>
<span class="letter"> B </span> </li>
</a> <li class="pager-item">
</li> <a> <xsl:attribute name="href">
<li class="pager-item"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/D/<xsl:value-of select="$DISPLAYNAME"/>
<a> </xsl:attribute> <span class="letter"> D </span>
<xsl:attribute name="href"> </a>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </li>
<xsl:value-of select='$FIELDNAME'/>/C/ <li class="pager-item">
<xsl:value-of select="$DISPLAYNAME"/> <a> <xsl:attribute name="href">
</xsl:attribute> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/E/<xsl:value-of select="$DISPLAYNAME"/>
<span class="letter"> C </span> </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'/>/D/ </a>
<xsl:value-of select="$DISPLAYNAME"/> </li>
</xsl:attribute> <li class="pager-item">
<span class="letter"> D </span> <a> <xsl:attribute name="href">
</a> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/G/<xsl:value-of select="$DISPLAYNAME"/>
</li> </xsl:attribute> <span class="letter"> G </span>
<li class="pager-item"> </a>
<a> </li>
<xsl:attribute name="href"> <li class="pager-item">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ <a> <xsl:attribute name="href">
<xsl:value-of select='$FIELDNAME'/>/E/ <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/I/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:value-of select="$DISPLAYNAME"/> </xsl:attribute> <span class="letter"> H </span>
</xsl:attribute> </a>
<span class="letter"> E </span> </li>
</a> <li class="pager-item">
</li> <a> <xsl:attribute name="href">
<li class="pager-item"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/I/<xsl:value-of select="$DISPLAYNAME"/>
<a> </xsl:attribute> <span class="letter"> I </span>
<xsl:attribute name="href"> </a>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </li>
<xsl:value-of select='$FIELDNAME'/>/F/ <li class="pager-item">
<xsl:value-of select="$DISPLAYNAME"/> <a> <xsl:attribute name="href">
</xsl:attribute> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/J/<xsl:value-of select="$DISPLAYNAME"/>
<span class="letter"> F </span> </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'/>/G/ </a>
<xsl:value-of select="$DISPLAYNAME"/> </li>
</xsl:attribute> <li class="pager-item">
<span class="letter"> G </span> <a> <xsl:attribute name="href">
</a> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/L/<xsl:value-of select="$DISPLAYNAME"/>
</li> </xsl:attribute> <span class="letter"> L </span>
<li class="pager-item"> </a>
<a> </li>
<xsl:attribute name="href"> <li class="pager-item">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ <a> <xsl:attribute name="href">
<xsl:value-of select='$FIELDNAME'/>/I/ <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/M/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:value-of select="$DISPLAYNAME"/> </xsl:attribute> <span class="letter"> M </span>
</xsl:attribute> </a>
<span class="letter"> H </span> </li>
</a> <li class="pager-item">
</li> <a> <xsl:attribute name="href">
<li class="pager-item"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/N/<xsl:value-of select="$DISPLAYNAME"/>
<a> </xsl:attribute> <span class="letter"> N </span>
<xsl:attribute name="href"> </a>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </li>
<xsl:value-of select='$FIELDNAME'/>/I/ <li class="pager-item">
<xsl:value-of select="$DISPLAYNAME"/> <a> <xsl:attribute name="href">
</xsl:attribute> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/O/<xsl:value-of select="$DISPLAYNAME"/>
<span class="letter"> I </span> </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'/>/J/ </a>
<xsl:value-of select="$DISPLAYNAME"/> </li>
</xsl:attribute> <li class="pager-item">
<span class="letter"> J </span> <a> <xsl:attribute name="href">
</a> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/Q/<xsl:value-of select="$DISPLAYNAME"/>
</li> </xsl:attribute> <span class="letter"> Q </span>
<li class="pager-item"> </a>
<a> </li>
<xsl:attribute name="href"> <li class="pager-item">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ <a> <xsl:attribute name="href">
<xsl:value-of select='$FIELDNAME'/>/K/ <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/R/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:value-of select="$DISPLAYNAME"/> </xsl:attribute> <span class="letter"> R </span>
</xsl:attribute> </a>
<span class="letter"> K </span> </li>
</a> <li class="pager-item">
</li> <a> <xsl:attribute name="href">
<li class="pager-item"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/S/<xsl:value-of select="$DISPLAYNAME"/>
<a> </xsl:attribute> <span class="letter"> S </span>
<xsl:attribute name="href"> </a>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </li>
<xsl:value-of select='$FIELDNAME'/>/L/ <li class="pager-item">
<xsl:value-of select="$DISPLAYNAME"/> <a> <xsl:attribute name="href">
</xsl:attribute> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/T/<xsl:value-of select="$DISPLAYNAME"/>
<span class="letter"> L </span> </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'/>/M/ </a>
<xsl:value-of select="$DISPLAYNAME"/> </li>
</xsl:attribute> <li class="pager-item">
<span class="letter"> M </span> <a> <xsl:attribute name="href">
</a> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/V/<xsl:value-of select="$DISPLAYNAME"/>
</li> </xsl:attribute> <span class="letter"> V </span>
<li class="pager-item"> </a>
<a> </li>
<xsl:attribute name="href"> <li class="pager-item">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ <a> <xsl:attribute name="href">
<xsl:value-of select='$FIELDNAME'/>/N/ <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/W/<xsl:value-of select="$DISPLAYNAME"/>
<xsl:value-of select="$DISPLAYNAME"/> </xsl:attribute> <span class="letter"> W </span>
</xsl:attribute> </a>
<span class="letter"> N </span> </li>
</a> <li class="pager-item">
</li> <a> <xsl:attribute name="href">
<li class="pager-item"> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/X/<xsl:value-of select="$DISPLAYNAME"/>
<a> </xsl:attribute> <span class="letter"> X </span>
<xsl:attribute name="href"> </a>
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/ </li>
<xsl:value-of select='$FIELDNAME'/>/O/ <li class="pager-item">
<xsl:value-of select="$DISPLAYNAME"/> <a> <xsl:attribute name="href">
</xsl:attribute> <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/list_terms/<xsl:value-of select='$FIELDNAME'/>/Y/<xsl:value-of select="$DISPLAYNAME"/>
<span class="letter"> O </span> </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'/>/P/ </a>
<xsl:value-of select="$DISPLAYNAME"/> </li>
</xsl:attribute>
<span class="letter"> P </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> Q </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> R </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> S </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> T </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> U </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> V </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> W </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> X </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> Y </span>
</a>
</li>
<li class="pager-item">
<a>
<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:attribute>
<span class="letter"> Z </span>
</a>
</li>
<!--End letters--> <!--End letters-->
<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:attribute> >>
<xsl:value-of select="$PAGELASTTERM"/>/ </a>
<xsl:value-of select="$DISPLAYNAME"/> </li>
</xsl:attribute> >> </ul>
</a>
</li>
</ul>
</div> </div>
<!--End pager Div--> <!--End pager Div-->
<!--<xsl:copy-of select="fields"/>--> <!--<xsl:copy-of select="fields"/>-->
@ -609,10 +392,8 @@
<xsl:attribute name="href"> <xsl:attribute name="href">
<!-- <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>

72
xsl/convertQDC.xsl

@ -1,55 +1,33 @@
<?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"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<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> <xsl:variable name="FULLFIELD" select="name()"/>
<th colspan="3"> <xsl:variable name="FIELD" select="substring-after(name(),':')"/>
<h3>MetaData</h3> <xsl:variable name="DATA" select="text()"/>
</th> <xsl:if test="$DATA != ' '">
</tr> <tr><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="*">
<xsl:variable name="FULLFIELD" select="name()"/> <div>
<xsl:variable name="FIELD" select="substring-after(name(),':')"/> <xsl:value-of select="substring-after(name(),':')"/> = <xsl:value-of select="text()"/>
<xsl:variable name="DATA" select="text()"/> </div>
<xsl:if test="$DATA != ' '"> </xsl:for-each>
<tr> </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> </xsl:if>
<strong> </xsl:for-each>
<xsl:value-of select="substring-after(name(),':')"/>
</strong>
</td>
<td>
<xsl:value-of select="text()"/>
<xsl:for-each select="*">
<div>
<xsl:value-of select="substring-after(name(),':')"/> =
<xsl:value-of select="text()"/>
</div>
</xsl:for-each>
</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>
</xsl:if>
</xsl:for-each>
</tbody> </tbody></table></div>
</table>
</div>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

298
xsl/refworks.xsl

@ -1,216 +1,92 @@
<?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"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" omit-xml-declaration="yes"/> <xsl:output method="xml" omit-xml-declaration="yes"/>
<!-- refworks xslt --> <!-- refworks xslt -->
<xsl:template match="/"> <xsl:template match="/">
<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> </table>
</tr> </xsl:if>
<tr> <xsl:if test="/reference/t1">
<td> <h2>Titles</h2>
<strong>Volume:</strong> <ul>
</td> <xsl:for-each select="/reference/t1">
<td> <li><xsl:value-of select="."/></li>
<xsl:value-of select="/reference/vo"/> </xsl:for-each>
</td> </ul>
</tr> </xsl:if>
<tr> <xsl:if test="/reference/t2">
<td> <ul>
<strong>Issue:</strong> <h3>Secondary Titles</h3>
</td> <xsl:for-each select="/reference/t2">
<td> <li><xsl:value-of select="."/></li>
<xsl:value-of select="/reference/is"/> </xsl:for-each>
</td> </ul>
</tr> </xsl:if>
<tr> <xsl:if test="/reference/a1">
<td> <h2>Authors</h2>
<strong>Publisher:</strong> <ul>
</td> <xsl:for-each select="/reference/a1">
<td> <li><xsl:value-of select="."/></li>
<xsl:value-of select="/reference/pb"/> </xsl:for-each>
</td> </ul>
</tr> </xsl:if>
<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>
</xsl:if>
<xsl:if test="/reference/t1">
<h2>Titles</h2>
<ul>
<xsl:for-each select="/reference/t1">
<li>
<xsl:value-of select="."/>
</li>
</xsl:for-each>
</ul>
</xsl:if>
<xsl:if test="/reference/t2">
<ul>
<h3>Secondary Titles</h3>
<xsl:for-each select="/reference/t2">
<li>
<xsl:value-of select="."/>
</li>
</xsl:for-each>
</ul>
</xsl:if>
<xsl:if test="/reference/a1">
<h2>Authors</h2>
<ul>
<xsl:for-each select="/reference/a1">
<li>
<xsl:value-of select="."/>
</li>
</xsl:for-each>
</ul>
</xsl:if>
<xsl:if test="/reference/a2"> <xsl:if test="/reference/a2">
<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="."/> </xsl:for-each>
</li> </ul>
</xsl:for-each> </xsl:if>
</ul> <xsl:if test="/reference/k1">
</xsl:if> <h2>Keywords</h2>
<xsl:if test="/reference/k1"> <ul>
<h2>Keywords</h2> <xsl:for-each select="/reference/k1">
<ul> <li><xsl:value-of select="."/></li>
<xsl:for-each select="/reference/k1"> </xsl:for-each>
<li> </ul>
<xsl:value-of select="."/> </xsl:if>
</li> <xsl:if test="/reference/ab">
</xsl:for-each> <h2>Abstract</h2>
</ul> <xsl:for-each select="/reference/ab">
</xsl:if> <div><xsl:value-of select="."/> </div>
<xsl:if test="/reference/ab"> </xsl:for-each>
<h2>Abstract</h2> </xsl:if>
<xsl:for-each select="/reference/ab"> <xsl:if test="/reference/no">
<div> <h2>Notes</h2>
<xsl:value-of select="."/> <xsl:for-each select="/reference/no">
</div> <div><xsl:value-of select="."/> </div>
</xsl:for-each> </xsl:for-each>
</xsl:if> </xsl:if>
<xsl:if test="/reference/no"> <xsl:variable name="ISSN">
<h2>Notes</h2> <xsl:value-of select="/reference/sn"/>
<xsl:for-each select="/reference/no"> </xsl:variable>
<div> <xsl:variable name="BASEURL">
<xsl:value-of select="."/> 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"/>
</div> </xsl:variable>
</xsl:for-each> <br />
</xsl:if> <xsl:if test="/reference/sn">
<xsl:variable name="ISSN"> <div><a>
<xsl:value-of select="/reference/sn"/> <xsl:attribute name="href"><xsl:value-of select="$BASEURL"/></xsl:attribute>
</xsl:variable> <xsl:attribute name="target">_blank</xsl:attribute>
<xsl:variable name="BASEURL"> <img src="http://asin1.its.unb.ca:8000/muse/images/getit4.gif"/> </a></div>
http://articles.library.upei.ca:7888/godot/hold_tab.cgi?hold_tab_branch=PCU&amp;issn= </xsl:if>
<xsl:value-of select="/reference/sn/text()"/>&amp;date= </xsl:template>
<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>
<br />
<xsl:if test="/reference/sn">
<div>
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<img src="http://asin1.its.unb.ca:8000/muse/images/getit4.gif"/>
</a>
</div>
</xsl:if>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

476
xsl/results.xsl

@ -1,74 +1,74 @@
<?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,':')"/>
<xsl:variable name="HITPAGESTART" select="@hitPageStart"/> <xsl:variable name="HITPAGESTART" select="@hitPageStart"/>
<xsl:variable name="HITPAGESIZE" select="@hitPageSize"/> <xsl:variable name="HITPAGESIZE" select="@hitPageSize"/>
<xsl:variable name="HITTOTAL" select="@hitTotal"/> <xsl:variable name="HITTOTAL" select="@hitTotal"/>
<xsl:variable name="SEARCHURL"> <xsl:variable name="SEARCHURL">
<xsl:value-of select="$searchUrl"/> <xsl:value-of select="$searchUrl"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="TOKEN"> <xsl:variable name="TOKEN">
<xsl:value-of select="$searchToken"/> <xsl:value-of select="$searchToken"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="HITPAGEEND"> <xsl:variable name="HITPAGEEND">
<xsl:choose> <xsl:choose>
<xsl:when test="$HITPAGESTART + $HITPAGESIZE - 1 > $HITTOTAL"> <xsl:when test="$HITPAGESTART + $HITPAGESIZE - 1 > $HITTOTAL">
<xsl:value-of select="$HITTOTAL"/> <xsl:value-of select="$HITTOTAL"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$HITPAGESTART + $HITPAGESIZE - 1"/> <xsl:value-of select="$HITPAGESTART + $HITPAGESIZE - 1"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:variable> </xsl:variable>
<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">
Total Hits = Total Hits =
<strong> <strong>
<xsl:value-of select="@hitTotal"/>, <xsl:value-of select="@hitTotal"/>,
</strong> </strong>
Number of Hits/page = Number of Hits/page =
<xsl:value-of select="@hitPageSize"/> <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/>
<!--<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">-->
<form action="{$SEARCHURL}" method="post" id="search-form" class="search-form"> <form action="{$SEARCHURL}" method="post" id="search-form" class="search-form">
<input type="hidden" maxlength="255" name="keys" id="edit-keys" size="40" value="{$HITPAGESTARTT+$HITPAGESIZE}:{$QUERY}" class="form-text" /> <input type="hidden" maxlength="255" name="keys" id="edit-keys" size="40" value="{$HITPAGESTARTT+$HITPAGESIZE}:{$QUERY}" class="form-text" />
<!--<xsl:if test="$PREQUERY = fgs.DS.first.text" >--> <!--<xsl:if test="$PREQUERY = fgs.DS.first.text" >-->
<input type="hidden" name="type" id="edit-type" value="{$PREQUERY}" /> <input type="hidden" name="type" id="edit-type" value="{$PREQUERY}" />
<!--</xsl:if>--> <!--</xsl:if>-->
<xsl:if test="$HITPAGENO > 1"> <xsl:if test="$HITPAGENO > 1">
<input type="button" name="back" onClick="javascript:history.go(-1)" id="back-button" value="Previous" class="form-submit" /> <input type="button" name="back" onClick="javascript:history.go(-1)" id="back-button" value="Previous" class="form-submit" />
</xsl:if> </xsl:if>
<xsl:if test="$HITPAGENO &lt; $HITPAGENOLAST"> <xsl:if test="$HITPAGENO &lt; $HITPAGENOLAST">
<input type="submit" name="op" id="edit-submit" value="Next" class="form-submit" /> <input type="submit" name="op" id="edit-submit" value="Next" class="form-submit" />
</xsl:if> </xsl:if>
<input type="hidden" name="form_token" id="edit-search-form-form-token" value="{$TOKEN}" /> <input type="hidden" name="form_token" id="edit-search-form-form-token" value="{$TOKEN}" />
<input type="hidden" name="form_id" id="edit-search-form" value="search_form" /> <input type="hidden" name="form_id" id="edit-search-form" value="search_form" />
</form> </form>
<style type="text/css"> <style type="text/css">
span.highlight span.highlight
{ {
@ -79,232 +79,238 @@
{ {
font-weight: bold font-weight: bold
} }
</style> </style>
<xsl:apply-templates select="objects"/> <xsl:apply-templates select="objects"/>
</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> will match less than
<em>blue smurf</em>. <em>blue smurf</em>.
</li> </li>
<li>Consider loosening your query with <li>Consider loosening your query with
<em>OR</em>: <em>OR</em>:
<em>blue smurf</em> will match less than <em>blue smurf</em> will match less than
<em>blue OR smurf</em>. <em>blue OR smurf</em>.
</li> </li>
</ul> </ul>
</div> </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>
<xsl:when test="@PID"> <xsl:when test="@PID">
<xsl:value-of select="@PID"/> <xsl:value-of select="@PID"/>
</xsl:when> </xsl:when>
<xsl:when test="field[@name='PID' and @snippet='yes']"> <xsl:when test="field[@name='PID' and @snippet='yes']">
<xsl:value-of select="field[@name='PID']/span/text()"/> <xsl:value-of select="field[@name='PID']/span/text()"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="field[@name='PID']/text()"/> <xsl:value-of select="field[@name='PID']/text()"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:variable> </xsl:variable>
<xsl:call-template name="splitBySpace"> <xsl:call-template name="splitBySpace">
<xsl:with-param name="PIDVALUE" select="$PIDVALUE"></xsl:with-param> <xsl:with-param name="PIDVALUE" select="$PIDVALUE"></xsl:with-param>
<xsl:with-param name="str" select="$ALLOWEDNAMESPACES"/> <xsl:with-param name="str" select="$ALLOWEDNAMESPACES"/>
</xsl:call-template> </xsl:call-template>
</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"/>
<xsl:choose> <xsl:choose>
<xsl:when test="contains($str,' ')"> <xsl:when test="contains($str,' ')">
<!--'DO SOMETHING WITH THE VALUE IN <!--'DO SOMETHING WITH THE VALUE IN
{substring-before($str,' ')}--> {substring-before($str,' ')}-->
<xsl:variable name="testString" select="substring-before($str,' ')"/> <xsl:variable name="testString" select="substring-before($str,' ')"/>
<xsl:if test="starts-with($PIDVALUE,$testString)"> <xsl:if test="starts-with($PIDVALUE,$testString)">
<xsl:call-template name="showResult"> <xsl:call-template name="showResult">
<xsl:with-param name="PIDVALUE" select="$PIDVALUE"/> <xsl:with-param name="PIDVALUE" select="$PIDVALUE"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
<!--<xsl:value-of select="substring-before($str,' ')"/>--> <!--<xsl:value-of select="substring-before($str,' ')"/>-->
<xsl:call-template name="splitBySpace"> <xsl:call-template name="splitBySpace">
<xsl:with-param name="str" <xsl:with-param name="str"
select="substring-after($str,' ')"/> select="substring-after($str,' ')"/>
<xsl:with-param name="PIDVALUE" <xsl:with-param name="PIDVALUE"
select="$PIDVALUE"/> select="$PIDVALUE"/>
</xsl:call-template> </xsl:call-template>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:if test="substring-before($str, ':') = substring-before($PIDVALUE, ':')"> <xsl:if test="substring-before($str, ':') = substring-before($PIDVALUE, ':')">
<xsl:call-template name="showResult"> <xsl:call-template name="showResult">
<xsl:with-param name="PIDVALUE" select="$PIDVALUE"/> <xsl:with-param name="PIDVALUE" select="$PIDVALUE"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:otherwise> </xsl:otherwise>
</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()"/>
</xsl:variable> </xsl:variable>
<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:attribute> <xsl:copy-of select="$PIDVALUE"/>/-/
<xsl:value-of select="$CLEANTITLE"/>
</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]]>
</xsl:attribute>--> </xsl:attribute>-->
<img> <img>
<xsl:attribute name="src"> <xsl:attribute name="src">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/ <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/
<xsl:copy-of select="$PIDVALUE"/>/TN <xsl:copy-of select="$PIDVALUE"/>/TN
</xsl:attribute> </xsl:attribute>
</img> </img>
</a> </a>
</td > </td >
<td width="80%" valign="top"> <td width="80%" valign="top">
<table valign="top"> <table valign="top">
<tr valign="top"> <tr valign="top">
<td valign="top" class="search-results" colspan="2"> <td valign="top" class="search-results" colspan="2">
<xsl:value-of select="@no"/> <xsl:value-of select="@no"/>
<xsl:value-of select="'. '"/> <xsl:value-of select="'. '"/>
<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:attribute> <xsl:value-of select="$CLEANTITLE"/>
<xsl:value-of select="$PIDVALUE"/> </xsl:attribute>
<br />
</a> <xsl:value-of select="$PIDVALUE"/>
<span class="searchtitle"> <br />
<span > </a>
<span class="searchtitle">
<span >
Score:( Score:(
<xsl:value-of select="@score"/>) <xsl:value-of select="@score"/>)
</span> </span>
<br /> <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"/>
</a> </a>
</span> </span>
</td> </td>
</tr> </tr>
<xsl:for-each select="field[@snippet='yes']"> <xsl:for-each select="field[@snippet='yes']">
<xsl:choose> <xsl:choose>
<xsl:when test="(@name='fgs.DS.first.text')"> <xsl:when test="(@name='fgs.DS.first.text')">
<tr> <tr>
<td valign="top"> <td valign="top">
<span class="searchtitle"> <span class="searchtitle">
Text Stream<!--<xsl:value-of select="@name"/>--> Text Stream<!--<xsl:value-of select="@name"/>-->
</span> </span>
</td> </td>
<td> <td>
<span class="text"> <span class="text">
<xsl:copy-of select="node()"/> <xsl:copy-of select="node()"/>
</span> </span>
</td> </td>
</tr> </tr>
</xsl:when> </xsl:when>
<xsl:when test="(@name='dc.title')"> <xsl:when test="(@name='dc.title')">
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<tr> <tr>
<td valign="top"> <td valign="top">
<span class="searchtitle"> <span class="searchtitle">
<xsl:value-of select="@name"/> <xsl:value-of select="@name"/>
</span> </span>
</td> </td>
<td> <td>
<span class="text"> <span class="text">
<xsl:copy-of select="node()"/> <xsl:copy-of select="node()"/>
</span> </span>
</td> </td>
</tr> </tr>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:for-each> </xsl:for-each>
</table>
</td> </table>
</tr>
</xsl:template> </td>
</tr>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

101
xsl/romeo.xsl

@ -1,82 +1,29 @@
<?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"> <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"/> </table>
</td> <h2>Conditions</h2>
</tr> <ul>
<tr> <xsl:for-each select="romeoapi/publishers/publisher/conditions/condition">
<td> <li><xsl:value-of select="."/></li>
<b>Published By: </b> </xsl:for-each>
</td> </ul>
<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>
<h2>Conditions</h2>
<ul>
<xsl:for-each select="romeoapi/publishers/publisher/conditions/condition">
<li>
<xsl:value-of select="."/>
</li>
</xsl:for-each>
</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:variable name="COLOR">
<xsl:value-of select="/romeoapi/publishers/publisher/copyright/text()" disable-output-escaping="yes"/> <xsl:value-of select="/romeoapi/publishers/publisher/romeocolour"/>
</span> </xsl:variable>
<br /> <span STYLE="background-color: light{$COLOR}"><b>Romeo Colour: </b><xsl:value-of select="/romeoapi/publishers/publisher/romeocolour"/></span><br />
<xsl:variable name="COLOR"> <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"/> <xsl:if test = "count(/romeoapi/publishers/publisher/homeurl) &lt; 1">
</xsl:variable> <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>
<span STYLE="background-color: light{$COLOR}"> </xsl:if>
<b>Romeo Colour: </b> </xsl:template>
<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">
<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>
</xsl:if>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

455
xsl/sparql_to_html.xsl

@ -1,104 +1,76 @@
<?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" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" version="1.0" xmlns:php="http://php.net/xsl" exclude-result-prefixes="php"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" version="1.0" xmlns:php="http://php.net/xsl" exclude-result-prefixes="php">
<!-- Red and White XSLT --> <!-- Red and White XSLT -->
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="PATH"> <xsl:variable name="PATH">
<xsl:value-of select="$path"/> <xsl:value-of select="$path"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="thisPid" select="$collectionPid"/> <xsl:variable name="thisPid" select="$collectionPid"/>
<xsl:variable name="thisTitle" select="$collectionTitle"/> <xsl:variable name="thisTitle" select="$collectionTitle"/>
<xsl:variable name="size" select="20"/> <xsl:variable name="size" select="20"/>
<xsl:variable name="page" select="$hitPage"/> <xsl:variable name="page" select="$hitPage"/>
<xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/> <xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/>
<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:when>
<xsl:value-of select="$count"/>&#160; <xsl:when test="$end >= $count">
<br />
</xsl:when>
<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 <li class="pager-previous">
<xsl:value-of select="$count"/>&#160; <a>
<br /> <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"/>
<li class="pager-previous"> </xsl:attribute>
<a>
<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: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="$end"/>
<xsl:value-of select="$start"/>- of <xsl:value-of select="$count"/>&#160;<br />
<xsl:value-of select="$end"/> <li class="pager-next">
of <a>
<xsl:value-of select="$count"/>&#160; <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"/>
<br /> </xsl:attribute>
<li class="pager-next">
<a>
<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:attribute>
Next> Next>
</a> </a></li>
</li> </xsl:when>
</xsl:when> <xsl:otherwise>
<xsl:otherwise> <xsl:value-of select="$start"/>-<xsl:value-of select="$end"/>
<xsl:value-of select="$start"/>- of <xsl:value-of select="$count"/>&#160;<br />
<xsl:value-of select="$end"/> <li class="pager-previous">
of <a>
<xsl:value-of select="$count"/>&#160; <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"/>
<br /> </xsl:attribute>
<li class="pager-previous">
<a>
<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: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:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/>
<xsl:attribute name="href"> </xsl:attribute>
<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>
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"/>
@ -118,148 +90,109 @@
</tr> </tr>
</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:when>
<xsl:value-of select="$count"/>&#160; <xsl:when test="$end >= $count">
<br />
</xsl:when>
<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 <li class="pager-previous">
<xsl:value-of select="$count"/>&#160; <a>
<br /> <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"/>
<li class="pager-previous"> </xsl:attribute>
<a>
<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: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="$end"/>
<xsl:value-of select="$start"/>- of <xsl:value-of select="$count"/>&#160;<br />
<xsl:value-of select="$end"/> <li class="pager-next">
of <a>
<xsl:value-of select="$count"/>&#160; <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"/>
<br /> </xsl:attribute>
<li class="pager-next">
<a>
<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:attribute>
Next> Next>
</a> </a></li>
</li> </xsl:when>
</xsl:when> <xsl:otherwise>
<xsl:otherwise> <xsl:value-of select="$start"/>-<xsl:value-of select="$end"/>
<xsl:value-of select="$start"/>- of <xsl:value-of select="$count"/>&#160;<br />
<xsl:value-of select="$end"/> <li class="pager-previous">
of <a>
<xsl:value-of select="$count"/>&#160; <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"/>
<br /> </xsl:attribute>
<li class="pager-previous">
<a>
<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: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:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/>
<xsl:attribute name="href"> </xsl:attribute>
<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>
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>
<xsl:apply-templates select=". | following-sibling::s:result[position() &lt; $cellsPerRow]"/> <xsl:apply-templates select=". | following-sibling::s:result[position() &lt; $cellsPerRow]"/>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
<xsl:template match="s:result"> <xsl:template match="s:result">
<xsl:variable name='OBJECTURI' select="s:object/@uri"/> <xsl:variable name='OBJECTURI' select="s:object/@uri"/>
<xsl:variable name='CONTENTURI' select="s:content/@uri"/> <xsl:variable name='CONTENTURI' select="s:content/@uri"/>
<xsl:variable name='CONTENTMODEL' select="substring-after($CONTENTURI,'/')"/> <xsl:variable name='CONTENTMODEL' select="substring-after($CONTENTURI,'/')"/>
<xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/> <xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/>
<xsl:variable name="newTitle" > <xsl:variable name="newTitle" >
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="s:title"/> <xsl:with-param name="text" select="s:title"/>
<xsl:with-param name="from" select="'_'"/> <xsl:with-param name="from" select="'_'"/>
<xsl:with-param name="to" select="' '"/> <xsl:with-param name="to" select="' '"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="cleanTitle"> <xsl:variable name="cleanTitle">
<xsl:value-of select="php:functionString('fedora_repository_urlencode_string', $newTitle)"/> <xsl:value-of select="php:functionString('fedora_repository_urlencode_string', $newTitle)"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="linkUrl"> <xsl:variable name="linkUrl">
<xsl:choose> <xsl:choose>
<xsl:when test="($CONTENTMODEL='islandora:collectionCModel')"> <xsl:when test="($CONTENTMODEL='islandora:collectionCModel')">
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="$cleanTitle"/> <xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="$cleanTitle"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<!--the below is an example of going straight to a datastream instead of the details page. <!--the below is an example of going straight to a datastream instead of the details page.
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/OBJ/<xsl:value-of select="s:title"/>--> <xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/OBJ/<xsl:value-of select="s:title"/>-->
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="$cleanTitle"/> <xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="$cleanTitle"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<xsl:value-of select="s:content"/> <xsl:value-of select="s:content"/>
</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:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$PID"/>/TN
<xsl:attribute name="src"> </xsl:attribute>
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$PID"/>/TN <xsl:attribute name="alt"><xsl:value-of select="$newTitle" disable-output-escaping="yes"/>
</xsl:attribute> </xsl:attribute>
<xsl:attribute name="alt"> </img> </a> <br clear="all" />
<xsl:value-of select="$newTitle" disable-output-escaping="yes"/> <a>
</xsl:attribute> <xsl:attribute name="href"><xsl:value-of select="$linkUrl"/>
</img> </xsl:attribute>
</a> <xsl:value-of select="$newTitle" disable-output-escaping="yes" />
<br clear="all" /> </a>
<a>
<xsl:attribute name="href">
<xsl:value-of select="$linkUrl"/>
</xsl:attribute>
<xsl:value-of select="$newTitle" disable-output-escaping="yes" />
</a>
<!-- example of a url that would drill down to the details page if the url above went directly to a datastream <!-- example of a url that would drill down to the details page if the url above went directly to a datastream
<xsl:if test="($CONTENTMODEL!='islandora:collectionCModel')"> <xsl:if test="($CONTENTMODEL!='islandora:collectionCModel')">
<br />[[ <a> <br />[[ <a>
@ -270,45 +203,45 @@
</a> ]] </a> ]]
</xsl:if>--> </xsl:if>-->
</td> </td>
<xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)"> <xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellsPerRow - position()"/> <xsl:with-param name="cellCount" select="$cellsPerRow - position()"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="FillerCells"> <xsl:template name="FillerCells">
<xsl:param name="cellCount"/> <xsl:param name="cellCount"/>
<td>&#160;</td> <td>&#160;</td>
<xsl:if test="$cellCount > 1"> <xsl:if test="$cellCount > 1">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellCount - 1"/> <xsl:with-param name="cellCount" select="$cellCount - 1"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="replace-string"> <xsl:template name="replace-string">
<xsl:param name="text"/> <xsl:param name="text"/>
<xsl:param name="from"/> <xsl:param name="from"/>
<xsl:param name="to"/> <xsl:param name="to"/>
<xsl:choose> <xsl:choose>
<xsl:when test="contains($text, $from)"> <xsl:when test="contains($text, $from)">
<xsl:variable name="before" select="substring-before($text, $from)"/> <xsl:variable name="before" select="substring-before($text, $from)"/>
<xsl:variable name="after" select="substring-after($text, $from)"/> <xsl:variable name="after" select="substring-after($text, $from)"/>
<xsl:variable name="prefix" select="concat($before, $to)"/> <xsl:variable name="prefix" select="concat($before, $to)"/>
<xsl:value-of select="$before"/> <xsl:value-of select="$before"/>
<xsl:value-of select="$to"/> <xsl:value-of select="$to"/>
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="$after"/> <xsl:with-param name="text" select="$after"/>
<xsl:with-param name="from" select="$from"/> <xsl:with-param name="from" select="$from"/>
<xsl:with-param name="to" select="$to"/> <xsl:with-param name="to" select="$to"/>
</xsl:call-template> </xsl:call-template>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$text"/> <xsl:value-of select="$text"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

177
xsl/specdwc.xsl

@ -4,157 +4,40 @@
xmlns:dc="http://purl.org/dc/terms/" xmlns:dc="http://purl.org/dc/terms/"
xmlns:dwr="http://rs.tdwg.org/dwc/xsd/simpledarwincore/" xmlns:dwr="http://rs.tdwg.org/dwc/xsd/simpledarwincore/"
xmlns:dwc="http://rs.tdwg.org/dwc/terms/"> xmlns:dwc="http://rs.tdwg.org/dwc/terms/">
<xs:import namespace="http://rs.tdwg.org/dwc/terms/" schemaLocation="tdwg_dwcterms.xsd"/> <xs:import namespace="http://rs.tdwg.org/dwc/terms/" schemaLocation="tdwg_dwcterms.xsd"/>
<xs:import namespace="http://purl.org/dc/terms/" schemaLocation="dublin_core.xsd"/> <xs:import namespace="http://purl.org/dc/terms/" schemaLocation="dublin_core.xsd"/>
<xsl:output method="xml" omit-xml-declaration="yes"/> <xsl:output method="xml" omit-xml-declaration="yes"/>
<!-- SPECIMEN XSLT --> <!-- SPECIMEN XSLT -->
<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> </xsl:template>
<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:stylesheet> </xsl:stylesheet>

416
xsl/unfilteredresults.xsl

@ -1,70 +1,70 @@
<?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: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="QUERY" select="substring-after(@query,':')"/>
<xsl:variable name="HITPAGESTART" select="@hitPageStart"/>
<xsl:variable name="HITPAGESIZE" select="@hitPageSize"/>
<xsl:variable name="HITTOTAL" select="@hitTotal"/>
<xsl:variable name="SEARCHURL">
<xsl:value-of select="$searchUrl"/>
</xsl:variable>
<xsl:variable name="TOKEN">
<xsl:value-of select="$searchToken"/>
</xsl:variable>
<xsl:variable name="HITPAGEEND">
<xsl:choose>
<xsl:when test="$HITPAGESTART + $HITPAGESIZE - 1 > $HITTOTAL">
<xsl:value-of select="$HITTOTAL"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$HITPAGESTART + $HITPAGESIZE - 1"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="HITPAGENO" select="ceiling($HITPAGESTART div $HITPAGESIZE)"/> <xsl:variable name="PREQUERY" select="substring-before(@query,':')"/>
<xsl:variable name="HITPAGENOLAST" select="ceiling($HITTOTAL div $HITPAGESIZE)"/> <xsl:variable name="QUERY" select="substring-after(@query,':')"/>
<xsl:variable name="HITPAGESTARTT" select="(($HITPAGENO - 1) * $HITPAGESIZE + 1)"/> <xsl:variable name="HITPAGESTART" select="@hitPageStart"/>
<xsl:choose> <xsl:variable name="HITPAGESIZE" select="@hitPageSize"/>
<xsl:when test="$HITTOTAL > 0"> <xsl:variable name="HITTOTAL" select="@hitTotal"/>
<xsl:variable name="SEARCHURL">
<xsl:value-of select="$searchUrl"/>
</xsl:variable>
<xsl:variable name="TOKEN">
<xsl:value-of select="$searchToken"/>
</xsl:variable>
<xsl:variable name="HITPAGEEND">
<xsl:choose>
<xsl:when test="$HITPAGESTART + $HITPAGESIZE - 1 > $HITTOTAL">
<xsl:value-of select="$HITTOTAL"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$HITPAGESTART + $HITPAGESIZE - 1"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="HITPAGENO" select="ceiling($HITPAGESTART div $HITPAGESIZE)"/>
<xsl:variable name="HITPAGENOLAST" select="ceiling($HITTOTAL div $HITPAGESIZE)"/>
<xsl:variable name="HITPAGESTARTT" select="(($HITPAGENO - 1) * $HITPAGESIZE + 1)"/>
<xsl:choose>
<xsl:when test="$HITTOTAL > 0">
Total Hits = Total Hits =
<strong> <strong>
<xsl:value-of select="@hitTotal"/>, <xsl:value-of select="@hitTotal"/>,
</strong> </strong>
Number of Hits/page = Number of Hits/page =
<xsl:value-of select="@hitPageSize"/> <xsl:value-of select="@hitPageSize"/>
<!-- Current page = <xsl:value-of select="@hitPageStart"/>--> <!-- Current page = <xsl:value-of select="@hitPageStart"/>-->
<br/> <br/>
<!--<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">-->
<form action="{$SEARCHURL}" method="post" id="search-form" class="search-form"> <form action="{$SEARCHURL}" method="post" id="search-form" class="search-form">
<input type="hidden" maxlength="255" name="keys" id="edit-keys" size="40" value="{$HITPAGESTARTT+$HITPAGESIZE}:{$QUERY}" class="form-text" /> <input type="hidden" maxlength="255" name="keys" id="edit-keys" size="40" value="{$HITPAGESTARTT+$HITPAGESIZE}:{$QUERY}" class="form-text" />
<!--<xsl:if test="$PREQUERY = fgs.DS.first.text" >--> <!--<xsl:if test="$PREQUERY = fgs.DS.first.text" >-->
<input type="hidden" name="type" id="edit-type" value="{$PREQUERY}" /> <input type="hidden" name="type" id="edit-type" value="{$PREQUERY}" />
<!--</xsl:if>--> <!--</xsl:if>-->
<xsl:if test="$HITPAGENO > 1"> <xsl:if test="$HITPAGENO > 1">
<input type="button" name="back" onClick="javascript:history.go(-1)" id="back-button" value="Previous" class="form-submit" /> <input type="button" name="back" onClick="javascript:history.go(-1)" id="back-button" value="Previous" class="form-submit" />
</xsl:if> </xsl:if>
<xsl:if test="$HITPAGENO &lt; $HITPAGENOLAST"> <xsl:if test="$HITPAGENO &lt; $HITPAGENOLAST">
<input type="submit" name="op" id="edit-submit" value="Next" class="form-submit" /> <input type="submit" name="op" id="edit-submit" value="Next" class="form-submit" />
</xsl:if> </xsl:if>
<input type="hidden" name="form_token" id="edit-search-form-form-token" value="{$TOKEN}" /> <input type="hidden" name="form_token" id="edit-search-form-form-token" value="{$TOKEN}" />
<input type="hidden" name="form_id" id="edit-search-form" value="search_form" /> <input type="hidden" name="form_id" id="edit-search-form" value="search_form" />
</form> </form>
<style type="text/css"> <style type="text/css">
span.highlight span.highlight
{ {
@ -75,195 +75,195 @@
{ {
font-weight: bold font-weight: bold
} }
</style> </style>
<xsl:apply-templates select="objects"/> <xsl:apply-templates select="objects"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<div class="box"> <div class="box">
<h2>Your search yielded no results</h2>
<div class="content">
<ul>
<li>Check if your spelling is correct.</li>
<li>Remove quotes around phrases to match each word individually:
<em>"blue smurf"</em> will match less than
<em>blue smurf</em>.
</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>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="objects">
<table>
<div class="search-results">
<xsl:for-each select="object">
<xsl:variable name="PIDVALUE">
<xsl:choose>
<xsl:when test="@PID">
<xsl:value-of select="@PID"/>
</xsl:when>
<xsl:when test="field[@name='PID' and @snippet='yes']">
<xsl:value-of select="field[@name='PID']/span/text()"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="field[@name='PID']/text()"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:call-template name="showResult">
<xsl:with-param name="PIDVALUE" select="$PIDVALUE"/>
</xsl:call-template>
</xsl:for-each>
</div>
</table>
</xsl:template> <h2>Your search yielded no results</h2>
<div class="content">
<ul>
<li>Check if your spelling is correct.</li>
<xsl:template name="showResult"> <li>Remove quotes around phrases to match each word individually:
<xsl:param name="PIDVALUE"/> <em>"blue smurf"</em> will match less than
<xsl:variable name="DCTITLE"> <em>blue smurf</em>.
<xsl:value-of select="field[@name='dc.title']/node()"/> </li>
</xsl:variable> <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>
<xsl:variable name="CLEANTITLE"> </div>
<xsl:value-of select="php:functionString('fedora_repository_urlencode_string', $DCTITLE)"/>
</xsl:variable> </xsl:otherwise>
<tr> </xsl:choose>
<td valign="top"> </xsl:template>
<a>
<xsl:attribute name="href"> <xsl:template match="objects">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/
<xsl:copy-of select="$PIDVALUE"/>/-/
<xsl:value-of select="$CLEANTITLE"/>
</xsl:attribute>
<table>
<div class="search-results">
<xsl:for-each select="object">
<xsl:variable name="PIDVALUE">
<xsl:choose>
<xsl:when test="@PID">
<xsl:value-of select="@PID"/>
</xsl:when>
<xsl:when test="field[@name='PID' and @snippet='yes']">
<xsl:value-of select="field[@name='PID']/span/text()"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="field[@name='PID']/text()"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:call-template name="showResult">
<xsl:with-param name="PIDVALUE" select="$PIDVALUE"/>
</xsl:call-template>
</xsl:for-each>
</div>
</table>
</xsl:template>
<xsl:template name="showResult">
<xsl:param name="PIDVALUE"/>
<xsl:variable name="DCTITLE">
<xsl:value-of select="field[@name='dc.title']/node()"/>
</xsl:variable>
<xsl:variable name="CLEANTITLE">
<xsl:value-of select="php:functionString('fedora_repository_urlencode_string', $DCTITLE)"/>
</xsl:variable>
<tr>
<td valign="top">
<a>
<xsl:attribute name="href">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/
<xsl:copy-of select="$PIDVALUE"/>/-/
<xsl:value-of select="$CLEANTITLE"/>
</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]]>
</xsl:attribute>--> </xsl:attribute>-->
<img> <img>
<xsl:attribute name="src"> <xsl:attribute name="src">
<xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/ <xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/
<xsl:copy-of select="$PIDVALUE"/>/TN <xsl:copy-of select="$PIDVALUE"/>/TN
</xsl:attribute> </xsl:attribute>
</img> </img>
</a> </a>
</td > </td >
<td width="80%" valign="top"> <td width="80%" valign="top">
<table valign="top"> <table valign="top">
<tr valign="top"> <tr valign="top">
<td valign="top" class="search-results" colspan="2"> <td valign="top" class="search-results" colspan="2">
<xsl:value-of select="@no"/> <xsl:value-of select="@no"/>
<xsl:value-of select="'. '"/> <xsl:value-of select="'. '"/>
<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:copy-of select="$OBJECTSPAGE"/>fedora/repository/
<xsl:value-of select="$PIDVALUE"/>/-/ <xsl:value-of select="$PIDVALUE"/>/-/
<xsl:value-of select="$CLEANTITLE"/> <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> </span>
<br /> <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:copy-of select="$OBJECTSPAGE"/>fedora/repository/
<xsl:value-of select="$PIDVALUE"/>/-/ <xsl:value-of select="$PIDVALUE"/>/-/
<xsl:value-of select="$CLEANTITLE"/> <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"/>
</a> </a>
</span> </span>
</td> </td>
</tr> </tr>
<xsl:for-each select="field[@snippet='yes']"> <xsl:for-each select="field[@snippet='yes']">
<xsl:choose> <xsl:choose>
<xsl:when test="(@name='fgs.DS.first.text')"> <xsl:when test="(@name='fgs.DS.first.text')">
<tr> <tr>
<td valign="top"> <td valign="top">
<span class="searchtitle"> <span class="searchtitle">
Text Stream<!--<xsl:value-of select="@name"/>--> Text Stream<!--<xsl:value-of select="@name"/>-->
</span> </span>
</td> </td>
<td> <td>
<span class="text"> <span class="text">
<xsl:copy-of select="node()"/> <xsl:copy-of select="node()"/>
</span> </span>
</td> </td>
</tr> </tr>
</xsl:when> </xsl:when>
<xsl:when test="(@name='dc.title')"> <xsl:when test="(@name='dc.title')">
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<tr> <tr>
<td valign="top"> <td valign="top">
<span class="searchtitle"> <span class="searchtitle">
<xsl:value-of select="@name"/> <xsl:value-of select="@name"/>
</span> </span>
</td> </td>
<td> <td>
<span class="text"> <span class="text">
<xsl:copy-of select="node()"/> <xsl:copy-of select="node()"/>
</span> </span>
</td> </td>
</tr> </tr>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:for-each> </xsl:for-each>
</table>
</td> </table>
</tr>
</xsl:template> </td>
</tr>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

Loading…
Cancel
Save