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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-2 / +14 lines)
Lines 299-305 Link Here
299
            </xsl:call-template>
299
            </xsl:call-template>
300
        </xsl:if>
300
        </xsl:if>
301
301
302
        <xsl:if test="marc:datafield[@tag=260]">
302
        <!-- Publisher info and RDA related info from tags 260, 264 -->
303
        <xsl:choose>
304
        <xsl:when test="marc:datafield[@tag=260]">
303
        <span class="results_summary publisher"><span class="label">Publisher: </span>
305
        <span class="results_summary publisher"><span class="label">Publisher: </span>
304
            <xsl:for-each select="marc:datafield[@tag=260]">
306
            <xsl:for-each select="marc:datafield[@tag=260]">
305
                <xsl:if test="marc:subfield[@code='a']">
307
                <xsl:if test="marc:subfield[@code='a']">
Lines 325-332 Link Here
325
               </xsl:call-template>
327
               </xsl:call-template>
326
                    <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
328
                    <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
327
            </xsl:for-each>
329
            </xsl:for-each>
330
            <xsl:if test="marc:datafield[@tag=264]">
331
                <xsl:text>; </xsl:text>
332
                <xsl:call-template name="showRDAtag264"/>
333
            </xsl:if>
328
        </span>
334
        </span>
329
        </xsl:if>
335
        </xsl:when>
336
        <xsl:when test="marc:datafield[@tag=264]">
337
            <span class="results_summary">
338
                <xsl:call-template name="showRDAtag264"/>
339
            </span>
340
        </xsl:when>
341
        </xsl:choose>
330
342
331
        <!-- Edition Statement: Alternate Graphic Representation (MARC 880) -->
343
        <!-- Edition Statement: Alternate Graphic Representation (MARC 880) -->
332
        <xsl:if test="$display880">
344
        <xsl:if test="$display880">
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl (-2 / +14 lines)
Lines 727-733 Link Here
727
      </xsl:call-template>
727
      </xsl:call-template>
728
    </xsl:if>
728
    </xsl:if>
729
729
730
    <xsl:if test="marc:datafield[@tag=260]">
730
    <!-- Publisher info and RDA related info from tags 260, 264 -->
731
    <xsl:choose>
732
    <xsl:when test="marc:datafield[@tag=260]">
731
        <span class="results_summary publisher"><span class="label">Publisher: </span>
733
        <span class="results_summary publisher"><span class="label">Publisher: </span>
732
            <xsl:for-each select="marc:datafield[@tag=260]">
734
            <xsl:for-each select="marc:datafield[@tag=260]">
733
                <xsl:if test="marc:subfield[@code='a']">
735
                <xsl:if test="marc:subfield[@code='a']">
Lines 751-758 Link Here
751
                </xsl:call-template>
753
                </xsl:call-template>
752
                <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
754
                <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
753
            </xsl:for-each>
755
            </xsl:for-each>
756
            <xsl:if test="marc:datafield[@tag=264]">
757
                <xsl:text>; </xsl:text>
758
                <xsl:call-template name="showRDAtag264"/>
759
            </xsl:if>
754
        </span>
760
        </span>
755
    </xsl:if>
761
    </xsl:when>
762
    <xsl:when test="marc:datafield[@tag=264]">
763
        <span class="results_summary">
764
            <xsl:call-template name="showRDAtag264"/>
765
        </span>
766
    </xsl:when>
767
    </xsl:choose>
756
768
757
    <!-- Dissertation note -->
769
    <!-- Dissertation note -->
758
    <xsl:if test="marc:datafield[@tag=502]">
770
    <xsl:if test="marc:datafield[@tag=502]">
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl (-1 / +62 lines)
Lines 187-193 Link Here
187
                </span>
187
                </span>
188
            </xsl:if>
188
            </xsl:if>
189
        </xsl:for-each>
189
        </xsl:for-each>
190
    </xsl:template>
191
192
    <xsl:template name="showRDAtag264">
193
    <!-- Function showRDAtag264 shows selected information from tag 264
194
         on the Publisher line (used by OPAC Detail and Results)
195
         Depending on how many tags you have, we will pick by preference
196
         Publisher-latest or Publisher or 'Other'-latest or 'Other'
197
         The preferred tag is saved in the fav variable and passed to a
198
         helper named-template -->
199
        <xsl:choose>
200
            <xsl:when test="marc:datafield[@tag=264 and @ind1=3 and @ind2=1]">
201
            <!-- ind1==3 means latest change -->
202
            <!-- ind2==1 means Publisher -->
203
              <xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind1=3 and @ind2=1][1]"/>
204
              <xsl:call-template name="showRDAtag264helper">
205
                <xsl:with-param name="field" select="$fav"/>
206
              </xsl:call-template>
207
            </xsl:when>
208
209
            <xsl:when test="marc:datafield[@tag=264 and @ind2=1]">
210
              <xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind2=1][last()]"/>
211
              <xsl:call-template name="showRDAtag264helper">
212
                <xsl:with-param name="field" select="$fav"/>
213
              </xsl:call-template>
214
            </xsl:when>
190
215
216
            <xsl:when test="marc:datafield[@tag=264 and @ind1=3]">
217
              <xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind1=3][1]"/>
218
              <xsl:call-template name="showRDAtag264helper">
219
                <xsl:with-param name="field" select="$fav"/>
220
              </xsl:call-template>
221
            </xsl:when>
222
223
            <xsl:otherwise>
224
              <xsl:variable name="fav" select="marc:datafield[@tag=264][last()]"/>
225
              <xsl:call-template name="showRDAtag264helper">
226
                <xsl:with-param name="field" select="$fav"/>
227
              </xsl:call-template>
228
            </xsl:otherwise>
229
        </xsl:choose>
230
    </xsl:template>
231
    <xsl:template name="showRDAtag264helper">
232
        <xsl:param name="field"/>
233
        <xsl:variable name="ind2" select="$field/@ind2"/>
234
        <xsl:choose>
235
            <xsl:when test="$ind2='0'">
236
                <span class="label">Producer: </span>
237
            </xsl:when>
238
            <xsl:when test="$ind2='1'">
239
                <span class="label">Publisher: </span>
240
            </xsl:when>
241
            <xsl:when test="$ind2='2'">
242
                <span class="label">Distributor: </span>
243
            </xsl:when>
244
            <xsl:when test="$ind2='3'">
245
                <span class="label">Manufacturer: </span>
246
            </xsl:when>
247
        </xsl:choose>
248
        <xsl:value-of select="$field/marc:subfield[@code='a']"/>
249
        <xsl:text> </xsl:text>
250
        <xsl:value-of select="$field/marc:subfield[@code='b']"/>
251
        <xsl:text> </xsl:text>
252
        <xsl:value-of select="$field/marc:subfield[@code='c']"/>
191
    </xsl:template>
253
    </xsl:template>
192
254
193
</xsl:stylesheet>
255
</xsl:stylesheet>
194
- 

Return to bug 12725