Bug 16307

Summary: OAI-PMH duplicate tag 520 & 521 when export to OAI_DC
Product: Koha Reporter: Hugo Agud <hagud>
Component: Web servicesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

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>