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

--- Comment #5 from Alexander Wagner <[email protected]> ---
Created attachment 174326
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=174326&action=edit
Bug 37325: fix XSLT for automatic punctuation of 260

XSLT uses subfields for display _as they are_. Sometimes, these values
are used to build queries against Koha based on the field content. These
queries may hold punctuation chars that could potentially confuse the
search.

- Add simple rules to strip punctuation chars in the search terms for
  OPAC and intranet interfaces.

Test plan:

1. Call up any record holding a 260 field in Koha
2. Check the URLs of queries generated from the subfields of 260. These
   show search terms including punctuation chars (`,:` etc., e.g.
   `Edinburg :`)
3. Apply the patch
4. Punctuation chars should vanish from the URL and only the search term
   should survive (e.g. `Edinburg`)

This fix acts on _all_ records and is not restricted to records that got
their punctuation automatically.

Sponsored-by: Deutsches Elektronen-Synchrotron DESY, Library

-- 
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