Bug 16307 - OAI-PMH duplicate tag 520 & 521 when export to OAI_DC
Summary: OAI-PMH duplicate tag 520 & 521 when export to OAI_DC
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Web services (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-20 12:34 UTC by Hugo Agud
Modified: 2016-04-20 12:34 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hugo Agud 2016-04-20 12:34:52 UTC
When harvest from koha using oai_dc it duplicates tags 520 and 521 we have checked in koha 3.14 and 3.22 and it can be fixed if modify some xsl

I guess it is a wrong code, but perhaps there is a reason I do not understand

sample record: 
http://oapn.orex.es/cgi-bin/koha/oai.pl?verb=GetRecord&metadataPrefix=oai_dc&identifier=OAPN:12410

It fixes if we add not 520 and 521

                <xsl:for-each select="marc:datafield[500&lt;@tag][@tag&lt;=599][not(@tag=506 or @tag=520 or @tag=521 or @tag=530 or @tag=540 or @tag=546)]">
                        <dc:description>
                                <xsl:value-of select="marc:subfield[@code='a']"/>
                        </dc:description>
                </xsl:for-each>