https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30162

            Bug ID: 30162
           Summary: XSLT has broken link for traced series because of
                    OPAC/staff interface confusion
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: OPAC
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

In the Utils file for the OPAC XSLT is a hardcoded link for the staff
interface, which means the link is broken in OPAC and generates an ugly error
when clicked:

https://git.koha-community.org/Koha-community/Koha/src/branch/master/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl#L473

                    <xsl:when test="$UseControlNumber = '1' and
marc:subfield[@code='w']">
                        <a
href="/cgi-bin/koha/catalogue/search.pl?q=rcn:{marc:subfield[@code='w']}">
                            <xsl:call-template name="chopPunctuation">
                                <xsl:with-param name="chopString">
                                    <xsl:call-template name="subfieldSelect">
                                        <xsl:with-param
name="codes">a_t</xsl:with-param>
                                    </xsl:call-template>
                                </xsl:with-param>
                            </xsl:call-template>
                        </a>

It should use the searchurl variable used in other spots of the same template.

Also it doesn't work for me with the {} - I believe they might only work with
Elasticsearch or ICU? Removing them makes the link behave correctly.

The record for testing should have these fields and USeControlNumber needs to
be set to use:

490 _1 
_aKirche, Wirtschaft, Gesellschaft
_v1 
830 _0  
_aKirche, Wirtschaft, Gesellschaft
_v1
_w(DE-627)577593544

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to