Bug 19606 - 773$g is not showing if 773$0 - MARC21slim2OPACDetail.xsl
Summary: 773$g is not showing if 773$0 - MARC21slim2OPACDetail.xsl
Status: RESOLVED DUPLICATE of bug 17867
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-10 09:29 UTC by Hugo Agud
Modified: 2020-01-11 19:53 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***