Koha/koha-tmpl/intranet-tmpl/prog/en/xslt
Jonathan Druart 71aaf8b458 Bug 27178: Add 'str' namespace to exclude-result-prefixes
Some nodes in the generated HTML document contain the 'str' namespace.
For instance, at the OPAC on the search result list, you can see:
<a xmlns:str="http://exslt.org/strings" href="/cgi-bin/koha/opac-detail.pl?biblionumber=18566&amp;query_desc=kw%2Cwrdl%3A%20spin" class="title">

The solution is to add 'str' to exclude-result-prefixes.
From https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/stylesheet
"""
Specifies any namespace used in this document that should not be sent to the output document. The list is whitespace separated.
"""

Test plan:
0. Don't apply this patch
1. Launch a search at the OPAC
2. Inspect the title link for the records
=> Note the 'xmlns:str' attribute on tag "a"
3. Apply this patch
4. restart_all
5. Repeat 1. and 2.
=> Note that the attribute is gone now.

QA will check that no other occurrences is missing (note that one
NORMARC xsl is missing it, but NORMARC is deprecated)

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-01-04 13:30:03 +01:00
..
compact.xsl
Del9LinksExcept952.xsl
Del9LinksExcept995.xsl
Del952.xsl
Del995.xsl
identity.xsl
MARC21Languages.xsl Bug 25082: Make 041 descriptions display, if authorised value list is used 2020-05-11 09:46:02 +01:00
MARC21slim2ATOM.xsl
MARC21slim2DC.xsl
MARC21slim2intranetDetail.xsl Bug 15141: Add MARC21 770/772 Supplement (parent) to OPAC and staff detail pages 2020-11-04 12:59:34 +01:00
MARC21slim2intranetResults.xsl Bug 16696: Rename 'Publisher' to 'Publication details' on detail and result lists 2020-11-04 12:59:33 +01:00
MARC21slim2MADS.xsl
MARC21slim2MODS.xsl
MARC21slim2MODS3-1.xsl
MARC21slim2MODS3.xsl
MARC21slim2MODS32.xsl
MARC21slim2OAIDC.xsl
MARC21slim2RDFDC.xsl
MARC21slim2RDFDC.xsl.1
MARC21slim2RSS2.xsl
MARC21slim2SRWDC.xsl
MARC21slim9522852.xsl
MARC21slimUtils-MODS31.xsl
MARC21slimUtils.xsl Bug 27178: Add 'str' namespace to exclude-result-prefixes 2021-01-04 13:30:03 +01:00
MARC21slimUtils2.xsl
NORMARCslim2intranetDetail.xsl
NORMARCslim2intranetResults.xsl
NORMARCslim2OAIDC.xsl
NORMARCslimUtils.xsl
oilsMARC21slim2HTML.xsl
plainMARC.xsl
UNIMARC_compact.xsl
UNIMARCslim2intranetDetail.xsl Bug 26049: Replace li with span class results_summary in UNIMARC intranet XSLT 2020-09-18 11:08:35 +02:00
UNIMARCslim2intranetResults.xsl Bug 23407: (QA follow-up) Same change for UNIMARC XSLT 2020-01-24 12:50:44 +00:00
UNIMARCslim2OAIDC.xsl
UNIMARCslim2RDFDC.xsl
UNIMARCslim2SRWDC.xsl
UNIMARCslimUtils.xsl Bug 26049: Replace li with span class results_summary in UNIMARC intranet XSLT 2020-09-18 11:08:35 +02:00