View | Details | Raw Unified | Return to bug 28513
Collapse All | Expand All

(-)a/catalogue/detail.pl (-1 / +1 lines)
Lines 132-138 if ( $xslfile ) { Link Here
132
    my $query =
132
    my $query =
133
      ( C4::Context->preference('UseControlNumber') and $record->field('001') )
133
      ( C4::Context->preference('UseControlNumber') and $record->field('001') )
134
      ? 'rcn:'. $record->field('001')->data . ' AND (bib-level:a OR bib-level:b)'
134
      ? 'rcn:'. $record->field('001')->data . ' AND (bib-level:a OR bib-level:b)'
135
      : "Host-item:$cleaned_title";
135
      : "Host-item:($cleaned_title)";
136
    my ( $err, $result, $count ) = $searcher->simple_search_compat( $query, 0, 0 );
136
    my ( $err, $result, $count ) = $searcher->simple_search_compat( $query, 0, 0 );
137
137
138
    warn "Warning from simple_search_compat: $err"
138
    warn "Warning from simple_search_compat: $err"
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-1 / +1 lines)
Lines 222-228 Link Here
222
                        <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:controlfield[@tag=001], true())"/>+AND+(bib-level:a+OR+bib-level:b)</xsl:attribute>
222
                        <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:controlfield[@tag=001], true())"/>+AND+(bib-level:a+OR+bib-level:b)</xsl:attribute>
223
                    </xsl:when>
223
                    </xsl:when>
224
                    <xsl:otherwise>
224
                    <xsl:otherwise>
225
                        <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Host-item:<xsl:value-of select="str:encode-uri(translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', ''), true())"/></xsl:attribute>
225
                        <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Host-item:(<xsl:value-of select="str:encode-uri(translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', ''), true())"/>)</xsl:attribute>
226
                    </xsl:otherwise>
226
                    </xsl:otherwise>
227
                </xsl:choose>
227
                </xsl:choose>
228
                <xsl:text>Show analytics</xsl:text>
228
                <xsl:text>Show analytics</xsl:text>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-1 / +1 lines)
Lines 257-263 Link Here
257
                        <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:controlfield[@tag=001], true())"/>+AND+(bib-level:a+OR+bib-level:b)</xsl:attribute>
257
                        <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:controlfield[@tag=001], true())"/>+AND+(bib-level:a+OR+bib-level:b)</xsl:attribute>
258
                    </xsl:when>
258
                    </xsl:when>
259
                    <xsl:otherwise>
259
                    <xsl:otherwise>
260
                        <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of select="str:encode-uri(translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', ''), true())"/></xsl:attribute>
260
                        <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:(<xsl:value-of select="str:encode-uri(translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', ''), true())"/>)</xsl:attribute>
261
                    </xsl:otherwise>
261
                    </xsl:otherwise>
262
                </xsl:choose>
262
                </xsl:choose>
263
                <xsl:text>Show analytics</xsl:text>
263
                <xsl:text>Show analytics</xsl:text>
(-)a/opac/opac-detail.pl (-2 / +1 lines)
Lines 188-194 if ( $xslfile ) { Link Here
188
    my $query =
188
    my $query =
189
      ( C4::Context->preference('UseControlNumber') and $record->field('001') )
189
      ( C4::Context->preference('UseControlNumber') and $record->field('001') )
190
      ? 'rcn:'. $record->field('001')->data . ' AND (bib-level:a OR bib-level:b)'
190
      ? 'rcn:'. $record->field('001')->data . ' AND (bib-level:a OR bib-level:b)'
191
      : "Host-item:$cleaned_title";
191
      : "Host-item:($cleaned_title)";
192
    my ( $err, $result, $count ) = $searcher->simple_search_compat( $query, 0, 0 );
192
    my ( $err, $result, $count ) = $searcher->simple_search_compat( $query, 0, 0 );
193
193
194
    warn "Warning from simple_search_compat: $err"
194
    warn "Warning from simple_search_compat: $err"
195
- 

Return to bug 28513