Bug 19606

Summary: 773$g is not showing if 773$0 - MARC21slim2OPACDetail.xsl
Product: Koha Reporter: Hugo Agud <hagud>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: katrin.fischer
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:

Description Hugo Agud 2017-11-10 09:29:20 UTC
we have seen a possible bug in MARC21slim2OPACDetail.xsl

We have identified for those bibliographic records that have 773$t and 773$g and 773$0, Koha only show 773$t, because 773$g is not declare when 773$0, it is declared in all other cases.


It is-->
<xsl:when test="marc:subfield[@code='0']">
 <a><xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="marc:subfield[@code='0']"/></xsl:attribute>
 <xsl:value-of select="$f773"/>
 </a>

It is -->
 <xsl:when test="marc:subfield[@code='0']">
 <a><xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="marc:subfield[@code='0']"/></xsl:attribute>
 <xsl:value-of select="$f773"/>
 </a>

<xsl:if test="marc:subfield[@code='g']"><xsl:text>; </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
 </xsl:when>

do you agree?
Comment 1 Katrin Fischer 2018-03-31 09:31:06 UTC
I can confirm this behaviour. When 773$0 is added, the $g information disappears. As $0 is not MARC standard and only used for EasyAnalytics in Koha, I am not sure if this was intentional or not.
Comment 2 Katrin Fischer 2020-01-11 19:53:25 UTC

*** This bug has been marked as a duplicate of bug 17867 ***