Bug 15170 - Add 264 field to MARC21*DC.xsl

Modify MARC21*DC.xsl to add RDA 264 field

To test:
- Copy from LOC z39.50 the Maxwell's handbook for RDA (ISBN
  9780838911723)
- Look the field 264 in framework, save record
- Open this URL in OPAC

  /cgi-bin/koha/unapi?id=koha:biblionumber:41201&format=marcxml

  And play with id (the number of new record for Maxwell book) &
  format parameters
  Test format=rdfdc, format=srw_dc and format=oai_dc
- Notice that <dc:publisher> and <dc:date> are not present
- Apply this patch
- Reload the URL for the three formats
- You will see the tags publisher and date are taken from 264

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 7d16555427)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
Hector Castro 2015-11-09 11:05:39 -06:00 committed by Julian Maurice
parent f299790bd9
commit 65e8776f01
4 changed files with 52 additions and 0 deletions

View File

@ -77,6 +77,20 @@
</dc:date>
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag=264]">
<dc:publisher>
<xsl:call-template name="subfieldSelect">
<xsl:with-param name="codes">ab</xsl:with-param>
</xsl:call-template>
</dc:publisher>
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag=264]/marc:subfield[@code='c']">
<dc:date>
<xsl:value-of select="."/>
</dc:date>
</xsl:for-each>
<dc:language>
<xsl:value-of select="substring($controlField008,36,3)"/>
</dc:language>

View File

@ -85,6 +85,18 @@
<xsl:value-of select="."/>
</dc:date>
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag=264]">
<dc:publisher>
<xsl:call-template name="subfieldSelect">
<xsl:with-param name="codes">ab</xsl:with-param>
</xsl:call-template>
</dc:publisher>
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag=264]/marc:subfield[@code='c']">
<dc:date>
<xsl:value-of select="."/>
</dc:date>
</xsl:for-each>
<dc:language>
<xsl:value-of select="substring($controlField008,36,3)"/>
</dc:language>

View File

@ -72,6 +72,20 @@
</dc:date>
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag=264]">
<dc:publisher>
<xsl:call-template name="subfieldSelect">
<xsl:with-param name="codes">ab</xsl:with-param>
</xsl:call-template>
</dc:publisher>
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag=264]/marc:subfield[@code='c']">
<dc:date>
<xsl:value-of select="."/>
</dc:date>
</xsl:for-each>
<dc:language>
<xsl:value-of select="substring($controlField008,36,3)"/>
</dc:language>

View File

@ -89,6 +89,18 @@
<xsl:value-of select="."/>
</date>
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag=264]">
<publisher>
<xsl:call-template name="subfieldSelect">
<xsl:with-param name="codes">ab</xsl:with-param>
</xsl:call-template>
</publisher>
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag=264]/marc:subfield[@code='c']">
<date>
<xsl:value-of select="."/>
</date>
</xsl:for-each>
<xsl:if test="substring($controlField008,36,3)">
<language>
<xsl:value-of select="substring($controlField008,36,3)"/>