|
Lines 32-63
Link Here
|
| 32 |
<span class="results_summary publication"> |
32 |
<span class="results_summary publication"> |
| 33 |
<span class="label">Publication: </span> |
33 |
<span class="label">Publication: </span> |
| 34 |
<xsl:for-each select="marc:datafield[@tag=210]"> |
34 |
<xsl:for-each select="marc:datafield[@tag=210]"> |
| 35 |
<span> |
35 |
<xsl:if test="not (position() = 1)"> |
|
|
36 |
<br/> |
| 37 |
</xsl:if> |
| 38 |
<span class="valeur"> |
| 36 |
<xsl:call-template name="addClassRtl" /> |
39 |
<xsl:call-template name="addClassRtl" /> |
| 37 |
<xsl:for-each select="marc:subfield"> |
40 |
<xsl:for-each select="marc:subfield"> |
| 38 |
<xsl:choose> |
41 |
<xsl:choose> |
| 39 |
<xsl:when test="@code='c' or @code='g'"> |
42 |
<xsl:when test="@code='a'"> |
| 40 |
<xsl:if test="position()>1"> |
43 |
<xsl:value-of select="."/> |
| 41 |
<xsl:text> : </xsl:text> |
44 |
<xsl:if test="position() != last()"> |
|
|
45 |
<xsl:text>: </xsl:text> |
| 42 |
</xsl:if> |
46 |
</xsl:if> |
|
|
47 |
</xsl:when> |
| 48 |
<xsl:when test="@code='b'"> |
| 43 |
<xsl:value-of select="."/> |
49 |
<xsl:value-of select="."/> |
|
|
50 |
<xsl:if test="position() != last()"> |
| 51 |
<xsl:text>, </xsl:text> |
| 52 |
</xsl:if> |
| 44 |
</xsl:when> |
53 |
</xsl:when> |
| 45 |
<xsl:otherwise> |
54 |
<xsl:when test="@code='c' or @code='g'"> |
| 46 |
<xsl:if test="position()>1"> |
55 |
<xsl:if test="position()>1"> |
|
|
56 |
<xsl:text> : </xsl:text> |
| 57 |
</xsl:if> |
| 58 |
<a> |
| 59 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?idx=pb&q=<xsl:value-of select="."/> |
| 60 |
</xsl:attribute> |
| 61 |
<xsl:attribute name="title"> Search for publisher "<xsl:value-of select="."/> |
| 62 |
<xsl:text>"</xsl:text> |
| 63 |
</xsl:attribute> |
| 64 |
<xsl:value-of select="."/> |
| 65 |
</a> |
| 66 |
<xsl:if test="position() != last()"> |
| 47 |
<xsl:text>, </xsl:text> |
67 |
<xsl:text>, </xsl:text> |
| 48 |
</xsl:if> |
68 |
</xsl:if> |
|
|
69 |
</xsl:when> |
| 70 |
<xsl:when test="@code='d'"> |
| 49 |
<xsl:value-of select="."/> |
71 |
<xsl:value-of select="."/> |
| 50 |
</xsl:otherwise> |
72 |
<xsl:if test="position() != last()"> |
|
|
73 |
<xsl:text>, </xsl:text> |
| 74 |
</xsl:if> |
| 75 |
</xsl:when> |
| 51 |
</xsl:choose> |
76 |
</xsl:choose> |
| 52 |
</xsl:for-each> |
77 |
</xsl:for-each> |
| 53 |
<xsl:if test="not (position() = last())"> |
|
|
| 54 |
<xsl:text> • </xsl:text> |
| 55 |
</xsl:if> |
| 56 |
</span> |
78 |
</span> |
| 57 |
</xsl:for-each> |
79 |
</xsl:for-each> |
| 58 |
</span> |
80 |
</span> |
| 59 |
</xsl:template> |
81 |
</xsl:template> |
| 60 |
|
82 |
|
|
|
83 |
<xsl:template name="tag_214"> |
| 84 |
<xsl:for-each select="marc:datafield[@tag=214]"> |
| 85 |
<xsl:sort select="@ind2" data-type="number" /> |
| 86 |
<span class="results_summary publication"> |
| 87 |
<span class="label"> |
| 88 |
<xsl:choose> |
| 89 |
<xsl:when test="@ind2=1">Production: |
| 90 |
</xsl:when> |
| 91 |
<xsl:when test="@ind2=2">Distribution: |
| 92 |
</xsl:when> |
| 93 |
<xsl:when test="@ind2=3">Manufacture: |
| 94 |
</xsl:when> |
| 95 |
<xsl:when test="@ind2=4"> |
| 96 |
<xsl:choose> |
| 97 |
<xsl:when test="substring(marc:subfield[@code='d'],1,1)='C'">Copyright date: |
| 98 |
</xsl:when> |
| 99 |
<xsl:when test="substring(marc:subfield[@code='d'],1,1)='P'">Protection date: |
| 100 |
</xsl:when> |
| 101 |
<xsl:otherwise>Copyright date / protection date: |
| 102 |
</xsl:otherwise> |
| 103 |
</xsl:choose> |
| 104 |
</xsl:when> |
| 105 |
<xsl:otherwise>Publication: |
| 106 |
</xsl:otherwise> |
| 107 |
</xsl:choose> |
| 108 |
</span> |
| 109 |
<span> |
| 110 |
<xsl:call-template name="addClassRtl" /> |
| 111 |
<xsl:for-each select="marc:subfield"> |
| 112 |
<xsl:choose> |
| 113 |
<xsl:when test="@code='a'"> |
| 114 |
<xsl:value-of select="."/> |
| 115 |
<xsl:if test="position() != last()"> |
| 116 |
<xsl:text>: </xsl:text> |
| 117 |
</xsl:if> |
| 118 |
</xsl:when> |
| 119 |
<xsl:when test="@code='b'"> |
| 120 |
<xsl:value-of select="."/> |
| 121 |
<xsl:if test="not(position()=1)"> |
| 122 |
<xsl:text>, </xsl:text> |
| 123 |
</xsl:if> |
| 124 |
</xsl:when> |
| 125 |
<xsl:when test="@code='c'"> |
| 126 |
<a> |
| 127 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?idx=pb&q=<xsl:value-of select="."/> |
| 128 |
</xsl:attribute> |
| 129 |
<xsl:attribute name="title"> Search for publisher "<xsl:value-of select="."/> |
| 130 |
<xsl:text>"</xsl:text> |
| 131 |
</xsl:attribute> |
| 132 |
<xsl:value-of select="."/> |
| 133 |
</a> |
| 134 |
</xsl:when> |
| 135 |
<xsl:when test="@code='d'"> |
| 136 |
<xsl:if test="not(position()=1)"> |
| 137 |
<xsl:text>, </xsl:text> |
| 138 |
</xsl:if> |
| 139 |
<xsl:choose> |
| 140 |
<xsl:when test="substring(.,1,1)='C'"> |
| 141 |
<xsl:value-of select="substring(.,2)"/> |
| 142 |
</xsl:when> |
| 143 |
<xsl:when test="substring(.,1,1)='P'"> |
| 144 |
<xsl:value-of select="substring(.,2)"/> |
| 145 |
</xsl:when> |
| 146 |
<xsl:otherwise> |
| 147 |
<xsl:value-of select="."/> |
| 148 |
</xsl:otherwise> |
| 149 |
</xsl:choose> |
| 150 |
</xsl:when> |
| 151 |
</xsl:choose> |
| 152 |
</xsl:for-each> |
| 153 |
</span> |
| 154 |
</span> |
| 155 |
</xsl:for-each> |
| 156 |
</xsl:template> |
| 157 |
|
| 61 |
<xsl:template name="tag_215"> |
158 |
<xsl:template name="tag_215"> |
| 62 |
<xsl:for-each select="marc:datafield[@tag=215]"> |
159 |
<xsl:for-each select="marc:datafield[@tag=215]"> |
| 63 |
<span class="results_summary description"> |
160 |
<span class="results_summary description"> |