Bug 36632

Summary: OAI-PMH - Return subfields other than 5XX$a
Product: Koha Reporter: Pablo AB <pablo.bianchi>
Component: Web servicesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
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 Pablo AB 2024-04-17 22:10:34 UTC
We have some records with 505 (Formatted Contents Note), using fields $g $t and $r instead of just $a (which is more common). Using oai_dc we had a lot of rows with `<dc:description />`.

Around line 118 of /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2OAIDC.xsl we replaced

<xsl:value-of select="marc:subfield[@code='a']"/>

With 

<xsl:call-template name="subfieldSelect">
  <xsl:with-param name="codes">aegtr</xsl:with-param>
</xsl:call-template>

To see those (and others) note subfields.

Related bug 16307.