Bug 36632 - OAI-PMH - Return subfields other than 5XX$a
Summary: OAI-PMH - Return subfields other than 5XX$a
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Web services (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-17 22:10 UTC by Pablo AB
Modified: 2024-04-17 22:10 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 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.