View | Details | Raw Unified | Return to bug 30430
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl (+2 lines)
Lines 140-145 Link Here
140
140
141
  <xsl:call-template name="tag_210" />
141
  <xsl:call-template name="tag_210" />
142
142
143
  <xsl:call-template name="tag_214" />
144
143
  <xsl:call-template name="tag_215" />
145
  <xsl:call-template name="tag_215" />
144
146
145
  <xsl:if test="marc:controlfield[@tag=009]">
147
  <xsl:if test="marc:controlfield[@tag=009]">
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl (+2 lines)
Lines 75-80 Link Here
75
75
76
  <xsl:call-template name="tag_210" />
76
  <xsl:call-template name="tag_210" />
77
77
78
  <xsl:call-template name="tag_214" />
79
78
  <xsl:call-template name="tag_215" />
80
  <xsl:call-template name="tag_215" />
79
81
80
</xsl:template>
82
</xsl:template>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl (-9 / +106 lines)
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&amp;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&amp;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">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl (+2 lines)
Lines 188-193 Link Here
188
188
189
  <xsl:call-template name="tag_210" />
189
  <xsl:call-template name="tag_210" />
190
190
191
  <xsl:call-template name="tag_214" />
192
191
  <xsl:call-template name="tag_215" />
193
  <xsl:call-template name="tag_215" />
192
194
193
  <!-- Build ISBN -->
195
  <!-- Build ISBN -->
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACResults.xsl (+2 lines)
Lines 153-158 Link Here
153
153
154
  <xsl:call-template name="tag_210" />
154
  <xsl:call-template name="tag_210" />
155
155
156
  <xsl:call-template name="tag_214" />
157
156
  <xsl:call-template name="tag_215" />
158
  <xsl:call-template name="tag_215" />
157
159
158
  <span class="results_summary availability">
160
  <span class="results_summary availability">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslimUtils.xsl (-13 / +106 lines)
Lines 193-222 Link Here
193
    <span class="results_summary publication">
193
    <span class="results_summary publication">
194
      <span class="label">Publication: </span>
194
      <span class="label">Publication: </span>
195
      <xsl:for-each select="marc:datafield[@tag=210]">
195
      <xsl:for-each select="marc:datafield[@tag=210]">
196
        <span>
196
	<xsl:if test="not (position() = 1)">
197
          <br/>
198
	</xsl:if>
199
	<span class="valeur">
197
          <xsl:call-template name="addClassRtl" />
200
          <xsl:call-template name="addClassRtl" />
198
          <xsl:for-each select="marc:subfield">
201
          <xsl:for-each select="marc:subfield">
199
            <xsl:choose>
202
            <xsl:choose>
203
              <xsl:when test="@code='a'">
204
		<xsl:value-of select="."/>
205
		<xsl:if test="position() != last()">
206
                  <xsl:text>: </xsl:text>
207
		</xsl:if>
208
              </xsl:when>
209
              <xsl:when test="@code='b'">
210
		<xsl:value-of select="."/>
211
		<xsl:if test="position() != last()">
212
                  <xsl:text>, </xsl:text>
213
		</xsl:if>
214
              </xsl:when>
200
              <xsl:when test="@code='c' or @code='g'">
215
              <xsl:when test="@code='c' or @code='g'">
201
                <xsl:if test="position()>1">
216
		<a>
202
                  <xsl:text> : </xsl:text>
217
                  <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?idx=pb&amp;q=<xsl:value-of select="."/>
218
                  </xsl:attribute>
219
                  <xsl:attribute name="title"> Search for publisher "<xsl:value-of select="."/>
220
                  <xsl:text>"</xsl:text>
221
                  </xsl:attribute>
222
                  <xsl:value-of select="."/>
223
		</a>
224
		<xsl:if test="position() != last()">
225
                  <xsl:text>, </xsl:text>
226
		</xsl:if>
227
              </xsl:when>
228
              <xsl:when test="@code='d'">
229
		<xsl:value-of select="."/>
230
		<xsl:if test="position() != last()">
231
                  <xsl:text>, </xsl:text>
232
		</xsl:if>
233
              </xsl:when>
234
            </xsl:choose>
235
          </xsl:for-each>
236
	</span>
237
      </xsl:for-each>
238
    </span>
239
  </xsl:template>
240
241
  <xsl:template name="tag_214">
242
    <xsl:for-each select="marc:datafield[@tag=214]">
243
      <xsl:sort select="@ind2" data-type="number" />
244
      <span class="results_summary publication">
245
        <span class="label">
246
          <xsl:choose>
247
            <xsl:when test="@ind2=1">Production:
248
	    </xsl:when>
249
            <xsl:when test="@ind2=2">Distribution:
250
	    </xsl:when>
251
            <xsl:when test="@ind2=3">Manufacture:
252
	    </xsl:when>
253
            <xsl:when test="@ind2=4">
254
              <xsl:choose>
255
                <xsl:when test="substring(marc:subfield[@code='d'],1,1)='C'">Copyright date:
256
		</xsl:when>
257
                <xsl:when test="substring(marc:subfield[@code='d'],1,1)='P'">Protection date:
258
		</xsl:when>
259
                <xsl:otherwise>Copyright date / protection date:
260
		</xsl:otherwise>
261
              </xsl:choose>
262
            </xsl:when>
263
            <xsl:otherwise>Publication:
264
	    </xsl:otherwise>
265
          </xsl:choose>
266
        </span>
267
        <span>
268
          <xsl:call-template name="addClassRtl" />
269
          <xsl:for-each select="marc:subfield">
270
            <xsl:choose>
271
              <xsl:when test="@code='a'">
272
                <xsl:value-of select="."/>
273
                <xsl:if test="position() != last()">
274
                  <xsl:text>: </xsl:text>
203
                </xsl:if>
275
                </xsl:if>
276
              </xsl:when>
277
              <xsl:when test="@code='b'">
204
                <xsl:value-of select="."/>
278
                <xsl:value-of select="."/>
279
                <xsl:if test="not(position()=1)">
280
                  <xsl:text>, </xsl:text>
281
                </xsl:if>
205
              </xsl:when>
282
              </xsl:when>
206
              <xsl:otherwise>
283
              <xsl:when test="@code='c'">
207
                <xsl:if test="position()>1">
284
                <a>
285
                  <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?idx=pb&amp;q=<xsl:value-of select="."/>
286
                  </xsl:attribute>
287
                  <xsl:attribute name="title"> Search for publisher "<xsl:value-of select="."/>
288
                  <xsl:text>"</xsl:text>
289
                  </xsl:attribute>
290
                  <xsl:value-of select="."/>
291
                </a>
292
              </xsl:when>
293
              <xsl:when test="@code='d'">
294
                <xsl:if test="not(position()=1)">
208
                  <xsl:text>, </xsl:text>
295
                  <xsl:text>, </xsl:text>
209
                </xsl:if>
296
                </xsl:if>
210
                <xsl:value-of select="."/>
297
                <xsl:choose>
211
              </xsl:otherwise>
298
                  <xsl:when test="substring(.,1,1)='C'">
299
                    <xsl:value-of select="substring(.,2)"/>
300
                  </xsl:when>
301
                  <xsl:when test="substring(.,1,1)='P'">
302
                    <xsl:value-of select="substring(.,2)"/>
303
                  </xsl:when>
304
                  <xsl:otherwise>
305
                    <xsl:value-of select="."/>
306
                  </xsl:otherwise>
307
                </xsl:choose>
308
              </xsl:when>
212
            </xsl:choose>
309
            </xsl:choose>
213
          </xsl:for-each>
310
          </xsl:for-each>
214
          <xsl:if test="not (position() = last())">
215
            <xsl:text> • </xsl:text>
216
          </xsl:if>
217
        </span>
311
        </span>
218
      </xsl:for-each>
312
      </span>
219
    </span>
313
    </xsl:for-each>
220
  </xsl:template>
314
  </xsl:template>
221
315
222
  <xsl:template name="tag_215">
316
  <xsl:template name="tag_215">
223
- 

Return to bug 30430