Ben Woodhead
13 years ago
9 changed files with 1379 additions and 2024 deletions
@ -1,55 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
||||
<xsl:variable name="BASEURL"> |
||||
<xsl:value-of select="$baseUrl"/> |
||||
</xsl:variable> |
||||
<xsl:variable name="PATH"> |
||||
<xsl:value-of select="$path"/> |
||||
</xsl:variable> |
||||
<xsl:template match="/"> |
||||
<xsl:variable name="BASEURL"> |
||||
<xsl:value-of select="$baseUrl"/> |
||||
</xsl:variable> |
||||
<xsl:variable name="PATH"> |
||||
<xsl:value-of select="$path"/> |
||||
</xsl:variable> |
||||
<xsl:template match="/"> |
||||
|
||||
<div> |
||||
<table cellspacing="3" cellpadding="3"> |
||||
<tbody> |
||||
<tr> |
||||
<th colspan="3"> |
||||
<h3>MetaData</h3> |
||||
</th> |
||||
</tr> |
||||
<xsl:for-each select="/*/*"> |
||||
<xsl:variable name="FULLFIELD" select="name()"/> |
||||
<xsl:variable name="FIELD" select="substring-after(name(),':')"/> |
||||
<xsl:variable name="DATA" select="text()"/> |
||||
<xsl:if test="$DATA != ' '"> |
||||
<tr> |
||||
<td> |
||||
<strong> |
||||
<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> |
||||
<div><table cellspacing="3" cellpadding="3"><tbody> |
||||
<tr><th colspan="3"><h3>MetaData</h3></th></tr> |
||||
<xsl:for-each select="/*/*"> |
||||
<xsl:variable name="FULLFIELD" select="name()"/> |
||||
<xsl:variable name="FIELD" select="substring-after(name(),':')"/> |
||||
<xsl:variable name="DATA" select="text()"/> |
||||
<xsl:if test="$DATA != ' '"> |
||||
<tr><td><strong><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> |
||||
</table> |
||||
</div> |
||||
</tbody></table></div> |
||||
|
||||
</xsl:template> |
||||
</xsl:template> |
||||
|
||||
|
||||
</xsl:stylesheet> |
@ -1,216 +1,92 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<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 --> |
||||
<xsl:template match="/"> |
||||
<xsl:if test="/reference/jf"> |
||||
<h2>General Information</h2> |
||||
<table cellpadding="2" cellspacing="2"> |
||||
<tr> |
||||
<td > |
||||
<strong>Periodical:</strong> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/reference/jf"/> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<strong>Abbreviation:</strong> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/reference/jo"/> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<strong>Volume:</strong> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/reference/vo"/> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<strong>Issue:</strong> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/reference/is"/> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<strong>Publisher:</strong> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/reference/pb"/> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<strong>Place of Publication:</strong> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/reference/pp"/> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<strong>Edition:</strong> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/reference/ed"/> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<strong>Year:</strong> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/reference/yr"/> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<strong>Date:</strong> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/reference/fd"/> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<strong>Start Page:</strong> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/reference/sp"/> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<strong>Other Pages:</strong> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/reference/op"/> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<strong>ISSN/ISBN:</strong> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/reference/sn"/> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<strong>Language:</strong> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/reference/la"/> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<strong>UL:</strong> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/reference/ul"/> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
</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:template match="/"> |
||||
<xsl:if test="/reference/jf"> |
||||
<h2>General Information</h2> |
||||
<table cellpadding="2" cellspacing="2"> |
||||
<tr><td ><strong>Periodical:</strong></td><td><xsl:value-of select="/reference/jf"/></td></tr> |
||||
<tr><td><strong>Abbreviation:</strong></td><td><xsl:value-of select="/reference/jo"/></td></tr> |
||||
<tr><td><strong>Volume:</strong></td><td><xsl:value-of select="/reference/vo"/></td></tr> |
||||
<tr><td><strong>Issue:</strong></td><td><xsl:value-of select="/reference/is"/></td></tr> |
||||
<tr><td><strong>Publisher:</strong></td><td><xsl:value-of select="/reference/pb"/></td></tr> |
||||
<tr><td><strong>Place of Publication:</strong></td><td><xsl:value-of select="/reference/pp"/></td></tr> |
||||
<tr><td><strong>Edition:</strong></td><td><xsl:value-of select="/reference/ed"/></td></tr> |
||||
<tr><td><strong>Year:</strong></td><td><xsl:value-of select="/reference/yr"/></td></tr> |
||||
<tr><td><strong>Date:</strong></td><td><xsl:value-of select="/reference/fd"/></td></tr> |
||||
<tr><td><strong>Start Page:</strong></td><td><xsl:value-of select="/reference/sp"/></td></tr> |
||||
<tr><td><strong>Other Pages:</strong></td><td><xsl:value-of select="/reference/op"/></td></tr> |
||||
<tr><td><strong>ISSN/ISBN:</strong></td><td><xsl:value-of select="/reference/sn"/></td></tr> |
||||
<tr><td><strong>Language:</strong></td><td><xsl:value-of select="/reference/la"/></td></tr> |
||||
<tr><td><strong>UL:</strong></td><td><xsl:value-of select="/reference/ul"/></td></tr> |
||||
</table> |
||||
</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"> |
||||
<ul> |
||||
<h3>Secondary Authors</h3> |
||||
<xsl:for-each select="/reference/a2"> |
||||
<li> |
||||
<xsl:value-of select="."/> |
||||
</li> |
||||
</xsl:for-each> |
||||
</ul> |
||||
</xsl:if> |
||||
<xsl:if test="/reference/k1"> |
||||
<h2>Keywords</h2> |
||||
<ul> |
||||
<xsl:for-each select="/reference/k1"> |
||||
<li> |
||||
<xsl:value-of select="."/> |
||||
</li> |
||||
</xsl:for-each> |
||||
</ul> |
||||
</xsl:if> |
||||
<xsl:if test="/reference/ab"> |
||||
<h2>Abstract</h2> |
||||
<xsl:for-each select="/reference/ab"> |
||||
<div> |
||||
<xsl:value-of select="."/> |
||||
</div> |
||||
</xsl:for-each> |
||||
</xsl:if> |
||||
<xsl:if test="/reference/no"> |
||||
<h2>Notes</h2> |
||||
<xsl:for-each select="/reference/no"> |
||||
<div> |
||||
<xsl:value-of select="."/> |
||||
</div> |
||||
</xsl:for-each> |
||||
</xsl:if> |
||||
<xsl:variable name="ISSN"> |
||||
<xsl:value-of select="/reference/sn"/> |
||||
</xsl:variable> |
||||
<xsl:variable name="BASEURL"> |
||||
http://articles.library.upei.ca:7888/godot/hold_tab.cgi?hold_tab_branch=PCU&issn= |
||||
<xsl:value-of select="/reference/sn/text()"/>&date= |
||||
<xsl:value-of select="/reference/yr/text()"/>&volume= |
||||
<xsl:value-of select="/reference/vo/text()"/>&issue= |
||||
<xsl:value-of select="/reference/is/text()"/>&spage= |
||||
<xsl:value-of select="/reference/sp/text()"/>&atitle= |
||||
<xsl:value-of select="/reference/t1"/>&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:if test="/reference/a2"> |
||||
<ul> |
||||
<h3>Secondary Authors</h3> |
||||
<xsl:for-each select="/reference/a2"> |
||||
<li><xsl:value-of select="."/></li> |
||||
</xsl:for-each> |
||||
</ul> |
||||
</xsl:if> |
||||
<xsl:if test="/reference/k1"> |
||||
<h2>Keywords</h2> |
||||
<ul> |
||||
<xsl:for-each select="/reference/k1"> |
||||
<li><xsl:value-of select="."/></li> |
||||
</xsl:for-each> |
||||
</ul> |
||||
</xsl:if> |
||||
<xsl:if test="/reference/ab"> |
||||
<h2>Abstract</h2> |
||||
<xsl:for-each select="/reference/ab"> |
||||
<div><xsl:value-of select="."/> </div> |
||||
</xsl:for-each> |
||||
</xsl:if> |
||||
<xsl:if test="/reference/no"> |
||||
<h2>Notes</h2> |
||||
<xsl:for-each select="/reference/no"> |
||||
<div><xsl:value-of select="."/> </div> |
||||
</xsl:for-each> |
||||
</xsl:if> |
||||
<xsl:variable name="ISSN"> |
||||
<xsl:value-of select="/reference/sn"/> |
||||
</xsl:variable> |
||||
<xsl:variable name="BASEURL"> |
||||
http://articles.library.upei.ca:7888/godot/hold_tab.cgi?hold_tab_branch=PCU&issn=<xsl:value-of select="/reference/sn/text()"/>&date=<xsl:value-of select="/reference/yr/text()"/>&volume=<xsl:value-of select="/reference/vo/text()"/>&issue=<xsl:value-of select="/reference/is/text()"/>&spage=<xsl:value-of select="/reference/sp/text()"/>&atitle=<xsl:value-of select="/reference/t1"/>&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> |
@ -1,82 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
||||
<!-- romeo XSLT --> |
||||
<xsl:template match="/"> |
||||
<table cellpadding="3" cellspacing="3"> |
||||
<tr> |
||||
<td> |
||||
<b>Journal: </b> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/romeoapi/journals/journal/jtitle"/> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<b>Published By: </b> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/romeoapi/journals/journal/zetocpub"/> |
||||
<br /> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<b>Publisher Url:</b> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/romeoapi/publishers/publisher/homeurl"/> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<b>Prearchiving:</b> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/romeoapi/publishers/publisher/preprints/prearchiving"/> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td> |
||||
<b>Postprints:</b> |
||||
</td> |
||||
<td> |
||||
<xsl:value-of select="/romeoapi/publishers/publisher/postprints/postarchiving"/> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
<h2>Conditions</h2> |
||||
<ul> |
||||
<xsl:for-each select="romeoapi/publishers/publisher/conditions/condition"> |
||||
<li> |
||||
<xsl:value-of select="."/> |
||||
</li> |
||||
</xsl:for-each> |
||||
</ul> |
||||
<xsl:template match="/"> |
||||
<table cellpadding="3" cellspacing="3"><tr><td> |
||||
<b>Journal: </b></td><td><xsl:value-of select="/romeoapi/journals/journal/jtitle"/></td></tr> |
||||
<tr><td><b>Published By: </b></td><td><xsl:value-of select="/romeoapi/journals/journal/zetocpub"/><br /></td></tr> |
||||
<tr><td><b>Publisher Url:</b></td><td><xsl:value-of select="/romeoapi/publishers/publisher/homeurl"/></td></tr> |
||||
<tr><td><b>Prearchiving:</b></td><td><xsl:value-of select="/romeoapi/publishers/publisher/preprints/prearchiving"/></td></tr> |
||||
<tr><td><b>Postprints:</b></td><td><xsl:value-of select="/romeoapi/publishers/publisher/postprints/postarchiving"/></td></tr> |
||||
</table> |
||||
<h2>Conditions</h2> |
||||
<ul> |
||||
<xsl:for-each select="romeoapi/publishers/publisher/conditions/condition"> |
||||
<li><xsl:value-of select="."/></li> |
||||
</xsl:for-each> |
||||
</ul> |
||||
|
||||
<span> |
||||
<b>Rights: </b> |
||||
<xsl:value-of select="/romeoapi/publishers/publisher/copyright/text()" disable-output-escaping="yes"/> |
||||
</span> |
||||
<br /> |
||||
<xsl:variable name="COLOR"> |
||||
<xsl:value-of select="/romeoapi/publishers/publisher/romeocolour"/> |
||||
</xsl:variable> |
||||
<span STYLE="background-color: light{$COLOR}"> |
||||
<b>Romeo Colour: </b> |
||||
<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) < 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> |
||||
<span><b>Rights: </b><xsl:value-of select="/romeoapi/publishers/publisher/copyright/text()" disable-output-escaping="yes"/></span><br /> |
||||
<xsl:variable name="COLOR"> |
||||
<xsl:value-of select="/romeoapi/publishers/publisher/romeocolour"/> |
||||
</xsl:variable> |
||||
<span STYLE="background-color: light{$COLOR}"><b>Romeo Colour: </b><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) < 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> |
Loading…
Reference in new issue