Ben Woodhead
13 years ago
10 changed files with 1379 additions and 2024 deletions
Binary file not shown.
@ -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> |
@ -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&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"/> |
||||||
</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&issn= |
</xsl:if> |
||||||
<xsl:value-of select="/reference/sn/text()"/>&date= |
</xsl:template> |
||||||
<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> |
</xsl:stylesheet> |
@ -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) < 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) < 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> |
Loading…
Reference in new issue