Line 0
Link Here
|
0 |
- |
1 |
<?xml version='1.0' encoding="UTF-8"?> |
|
|
2 |
<xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
3 |
<xsl:output omit-xml-declaration="yes"/> |
4 |
|
5 |
<xsl:template match="marc:record"> |
6 |
<xsl:variable name="authid" select="marc:controlfield[@tag='001']" /> |
7 |
<xsl:variable name="controlField008" select="marc:controlfield[@tag=008]"/> |
8 |
|
9 |
<xsl:element name="div"> |
10 |
<xsl:attribute name="class"> |
11 |
<xsl:text>authority-summary</xsl:text> |
12 |
</xsl:attribute> |
13 |
|
14 |
<!-- *********** Personal Name 100 ********* --> |
15 |
<xsl:if test="marc:datafield[@tag='100']"> |
16 |
<xsl:element name="span"> |
17 |
<xsl:attribute name="class"> |
18 |
<xsl:text>authorizedheading</xsl:text> |
19 |
</xsl:attribute> |
20 |
<a> |
21 |
<xsl:attribute name="data-authid"><xsl:value-of select="$authid"/></xsl:attribute> |
22 |
<xsl:attribute name="href">/cgi-bin/koha/authorities/detail.pl?authid=<xsl:value-of select="$authid"/></xsl:attribute> |
23 |
<xsl:value-of select="marc:datafield[@tag='100']/marc:subfield[@code='a']"/> |
24 |
</a> |
25 |
</xsl:element> |
26 |
<ul> |
27 |
<xsl:for-each select="marc:datafield[@tag=400]"> |
28 |
<li class="heading"> |
29 |
<xsl:if test="marc:subfield[@code='a']"> <xsl:value-of select="marc:subfield[@code='a']"/> </xsl:if> |
30 |
</li> |
31 |
</xsl:for-each> |
32 |
</ul> |
33 |
</xsl:if> |
34 |
<!-- *** End Personal Name **--> |
35 |
|
36 |
<!-- *********** Corporate Name 110 ********* --> |
37 |
<xsl:if test="marc:datafield[@tag='110']"> |
38 |
<xsl:element name="span"> |
39 |
<xsl:attribute name="class"> |
40 |
<xsl:text>authorizedheading</xsl:text> |
41 |
</xsl:attribute> |
42 |
<a> |
43 |
<xsl:attribute name="href">/cgi-bin/koha/authorities/detail.pl?authid=<xsl:value-of select="$authid"/></xsl:attribute> |
44 |
<xsl:value-of select="marc:datafield[@tag='110']/marc:subfield[@code='a']"/> |
45 |
</a> |
46 |
</xsl:element> |
47 |
|
48 |
<ul> |
49 |
<xsl:for-each select="marc:datafield[@tag=400]"> |
50 |
<li class="heading"> |
51 |
<xsl:if test="marc:subfield[@code='a']"> <xsl:value-of select="marc:subfield[@code='a']"/> </xsl:if> |
52 |
</li> |
53 |
</xsl:for-each> |
54 |
</ul> |
55 |
</xsl:if> |
56 |
<!-- *** End Corporate Name **--> |
57 |
|
58 |
<!-- *********** Meeting Name 111 ********* --> |
59 |
<xsl:if test="marc:datafield[@tag='111']"> |
60 |
<xsl:element name="span"> |
61 |
<xsl:attribute name="class"> |
62 |
<xsl:text>authorizedheading</xsl:text> |
63 |
</xsl:attribute> |
64 |
<a> |
65 |
<xsl:attribute name="href">/cgi-bin/koha/authorities/detail.pl?authid=<xsl:value-of select="$authid"/></xsl:attribute> |
66 |
<xsl:value-of select="marc:datafield[@tag='111']/marc:subfield[@code='a']"/> |
67 |
</a> |
68 |
</xsl:element> |
69 |
|
70 |
<ul> |
71 |
<xsl:for-each select="marc:datafield[@tag=400]"> |
72 |
<li class="heading"> |
73 |
<xsl:if test="marc:subfield[@code='a']"> <xsl:value-of select="marc:subfield[@code='a']"/> </xsl:if> |
74 |
</li> |
75 |
</xsl:for-each> |
76 |
</ul> |
77 |
</xsl:if> |
78 |
<!-- *** End Meeting Name **--> |
79 |
|
80 |
<!-- *********** Uniform Title 130 ********* --> |
81 |
<xsl:if test="marc:datafield[@tag='130']"> |
82 |
<xsl:element name="span"> |
83 |
<xsl:attribute name="class"> |
84 |
<xsl:text>authorizedheading</xsl:text> |
85 |
</xsl:attribute> |
86 |
<a> |
87 |
<xsl:attribute name="href">/cgi-bin/koha/authorities/detail.pl?authid=<xsl:value-of select="$authid"/></xsl:attribute> |
88 |
<xsl:value-of select="marc:datafield[@tag='130']/marc:subfield[@code='a']"/> |
89 |
</a> |
90 |
</xsl:element> |
91 |
<ul> |
92 |
<xsl:for-each select="marc:datafield[@tag=400]"> |
93 |
<li class="heading"> |
94 |
<xsl:if test="marc:subfield[@code='a']"> <xsl:value-of select="marc:subfield[@code='a']"/> </xsl:if> |
95 |
</li> |
96 |
</xsl:for-each> |
97 |
</ul> |
98 |
</xsl:if> |
99 |
<!-- *** End Uniform Title **--> |
100 |
|
101 |
<!-- *********** Topical Term 150 ********* --> |
102 |
<xsl:if test="marc:datafield[@tag='150']"> |
103 |
<xsl:element name="span"> |
104 |
<xsl:attribute name="class"> |
105 |
<xsl:text>authorizedheading</xsl:text> |
106 |
</xsl:attribute> |
107 |
<a> |
108 |
<xsl:attribute name="href">/cgi-bin/koha/authorities/detail.pl?authid=<xsl:value-of select="$authid"/></xsl:attribute> |
109 |
<xsl:value-of select="marc:datafield[@tag='150']/marc:subfield[@code='a']"/> |
110 |
</a> |
111 |
</xsl:element> |
112 |
<ul> |
113 |
<xsl:for-each select="marc:datafield[@tag=400]"> |
114 |
<li class="heading"> |
115 |
<xsl:if test="marc:subfield[@code='a']"> <xsl:value-of select="marc:subfield[@code='a']"/> </xsl:if> |
116 |
</li> |
117 |
</xsl:for-each> |
118 |
</ul> |
119 |
</xsl:if> |
120 |
<!-- *** End Topic Term **--> |
121 |
|
122 |
<!-- *********** Geographic Name 151 ********* --> |
123 |
<xsl:if test="marc:datafield[@tag='151']"> |
124 |
<xsl:element name="span"> |
125 |
<xsl:attribute name="class"> |
126 |
<xsl:text>authorizedheading</xsl:text> |
127 |
</xsl:attribute> |
128 |
<a> |
129 |
<xsl:attribute name="href">/cgi-bin/koha/authorities/detail.pl?authid=<xsl:value-of select="$authid"/></xsl:attribute> |
130 |
<xsl:value-of select="marc:datafield[@tag='151']/marc:subfield[@code='a']"/> |
131 |
</a> |
132 |
</xsl:element> |
133 |
<ul> |
134 |
<xsl:for-each select="marc:datafield[@tag=400]"> |
135 |
<li class="heading"> |
136 |
<xsl:if test="marc:subfield[@code='a']"> <xsl:value-of select="marc:subfield[@code='a']"/> </xsl:if> |
137 |
</li> |
138 |
</xsl:for-each> |
139 |
</ul> |
140 |
</xsl:if> |
141 |
<!-- *** End Geographic Name **--> |
142 |
|
143 |
</xsl:element> |
144 |
</xsl:template> |
145 |
</xsl:stylesheet> |