Lines 1036-1041
Link Here
|
1036 |
</xsl:if> |
1036 |
</xsl:if> |
1037 |
|
1037 |
|
1038 |
|
1038 |
|
|
|
1039 |
<!-- Add links based on persistent identifiers Bug 38425 --> |
1040 |
<xsl:if test="marc:datafield[@tag=024]"> |
1041 |
<span class="results_summary pid_links"> |
1042 |
<span class="label">External resource(s): </span> |
1043 |
<ul class="resource_list"> |
1044 |
<xsl:for-each select="marc:datafield[@tag=024]/marc:subfield[@code='2']"> |
1045 |
<xsl:choose> |
1046 |
<xsl:when test=". = 'doi'"> |
1047 |
<li> |
1048 |
<span class="label">doi:</span> |
1049 |
<xsl:for-each select="../marc:subfield[@code='a']"> |
1050 |
<a> |
1051 |
<xsl:attribute name="href">https://doi.org/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute> |
1052 |
<xsl:value-of select="current()" /> |
1053 |
</a> |
1054 |
</xsl:for-each> |
1055 |
</li> |
1056 |
</xsl:when> |
1057 |
<xsl:when test=". = 'pmid'"> |
1058 |
<li> |
1059 |
<span class="label">PMID: </span> |
1060 |
<xsl:for-each select="../marc:subfield[@code='a']"> |
1061 |
<a> |
1062 |
<xsl:attribute name="href">https://pubmed.ncbi.nlm.nih.gov/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute> |
1063 |
<xsl:value-of select="current()" /> |
1064 |
</a> |
1065 |
</xsl:for-each> |
1066 |
</li> |
1067 |
</xsl:when> |
1068 |
<xsl:when test=". = 'pmc'"> |
1069 |
<li> |
1070 |
<span class="label">PMCID: </span> |
1071 |
<xsl:for-each select="../marc:subfield[@code='a']"> |
1072 |
<a> |
1073 |
<xsl:attribute name="href">https://pmc.ncbi.nlm.nih.gov/articles/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute> |
1074 |
<xsl:value-of select="current()" /> |
1075 |
</a> |
1076 |
</xsl:for-each> |
1077 |
</li> |
1078 |
</xsl:when> |
1079 |
<xsl:when test=". = 'arxiv'"> |
1080 |
<li> |
1081 |
<!-- arXiv-ids are `arxiv:1234.5678` is redundant |
1082 |
<span class="label">arXiv:</span> |
1083 |
--> |
1084 |
<xsl:for-each select="../marc:subfield[@code='a']"> |
1085 |
<a> |
1086 |
<xsl:attribute name="href">https://arxiv.org/abs/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute> |
1087 |
<xsl:value-of select="current()" /> |
1088 |
</a> |
1089 |
</xsl:for-each> |
1090 |
</li> |
1091 |
</xsl:when> |
1092 |
<xsl:when test=". = 'inspire'"> |
1093 |
<li> |
1094 |
<span class="label">inspire: </span> |
1095 |
<xsl:for-each select="../marc:subfield[@code='a']"> |
1096 |
<a> |
1097 |
<xsl:attribute name="href">https://inspirehep.net/literature/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute> |
1098 |
<xsl:value-of select="current()" /> |
1099 |
</a> |
1100 |
</xsl:for-each> |
1101 |
</li> |
1102 |
</xsl:when> |
1103 |
<xsl:when test=". = 'openlibrary'"> |
1104 |
<li> |
1105 |
<span class="label">OpenLibrary: </span> |
1106 |
<xsl:for-each select="../marc:subfield[@code='a']"> |
1107 |
<a> |
1108 |
<xsl:attribute name="href">https://openlibrary.org/works/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute> |
1109 |
<xsl:value-of select="current()" /> |
1110 |
</a> |
1111 |
</xsl:for-each> |
1112 |
</li> |
1113 |
</xsl:when> |
1114 |
</xsl:choose> |
1115 |
</xsl:for-each> |
1116 |
</ul> |
1117 |
</span> |
1118 |
</xsl:if> |
1119 |
|
1039 |
<!-- Image processing code added here, takes precedence over text links including y3z text --> |
1120 |
<!-- Image processing code added here, takes precedence over text links including y3z text --> |
1040 |
<xsl:if test="marc:datafield[@tag=856]"> |
1121 |
<xsl:if test="marc:datafield[@tag=856]"> |
1041 |
<xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']"> |
1122 |
<xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']"> |
1042 |
- |
|
|