Bugzilla – Attachment 44726 Details for
Bug 15170
Add 264 field to MARC21*DC.xsl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13642 - Add 264 field to MARC21*DC.xsl
Bug-13642---Add-264-field-to-MARC21DCxsl.patch (text/plain), 5.62 KB, created by
Frédéric Demians
on 2015-11-11 09:14:39 UTC
(
hide
)
Description:
Bug 13642 - Add 264 field to MARC21*DC.xsl
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2015-11-11 09:14:39 UTC
Size:
5.62 KB
patch
obsolete
>From a7e306a2c692a65e2af494eaf581179cdc63f485 Mon Sep 17 00:00:00 2001 >From: Hector Castro <hector.hecaxmmx@gmail.com> >Date: Mon, 9 Nov 2015 11:05:39 -0600 >Subject: [PATCH] Bug 13642 - 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 datail for the record, export or save to Dublin Core (the three options) >-Open the xml generated, notice that <dc:publisher> and <dc:date> are not present >-Apply this patch >-Reload and export again >-Open the xml, you will see the tags publisher and date taken from 264 > >http://bugs.koha-community.org/show_bug.cgi?id=15170 >--- > koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl | 14 ++++++++++++++ > koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2OAIDC.xsl | 12 ++++++++++++ > koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl | 14 ++++++++++++++ > koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2SRWDC.xsl | 12 ++++++++++++ > 4 files changed, 52 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl >index a9fa440..ade69de 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl >@@ -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> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2OAIDC.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2OAIDC.xsl >index 291ab06..36ba41f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2OAIDC.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2OAIDC.xsl >@@ -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> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl >index 32b71d5..922605b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl >@@ -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> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2SRWDC.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2SRWDC.xsl >index e01e38c..009d8b1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2SRWDC.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2SRWDC.xsl >@@ -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)"/> >-- >2.6.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15170
:
44726
|
44773
|
44774
|
45130
|
45629
|
46063