Bug 27575 - Search "Analytics: Show analytics" broken when records title ends with ":"
Summary: Search "Analytics: Show analytics" broken when records title ends with ":"
Status: RESOLVED DUPLICATE of bug 29418
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: master
Hardware: All All
: P5 - low normal (vote)
Assignee: Fridolin Somers
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-29 08:49 UTC by Fridolin Somers
Modified: 2022-05-11 21:11 UTC (History)
1 user (show)

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


Attachments
Bug 27575: Search "Analytics: Show analytics" broken when records title ends with ":" (11.98 KB, patch)
2021-01-29 09:50 UTC, Fridolin Somers
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Fridolin Somers 2021-01-29 08:49:50 UTC
In MARC21 XSLT display, link to analytics is composed with a search on "q=Host-item:" + 245$a
When 245$a ends with a ":" the search does not find linked records.
They contain 773$t not ending with ":".
Comment 1 Fridolin Somers 2021-01-29 08:50:41 UTC
I see many places in XSLT use translate() to remove "." or "/", I add ":"
Comment 2 Fridolin Somers 2021-01-29 09:50:58 UTC
Created attachment 116013 [details] [review]
Bug 27575: Search "Analytics: Show analytics" broken when records title ends with ":"

In MARC21 XSLT display, link to analytics is composed with a search on "q=Host-item:" + 245$a
When 245$a ends with a ":" (because of subtitle $b) the search does not find linked records.
They contain 773$t not ending with ":".

I see many places in XSLT use translate() to remove "." or "/", I add ":"

Test plan :
1) Go to a record with analytics
2) Edit 245$a to add " :" at the end
3) On staff interface and OPAC: Click on "Show analytics"
4) Check results are OK
5) Same for volumes and sets
Comment 3 Fridolin Somers 2021-02-23 15:54:29 UTC
Maybe cause by something like Bug 19684
Comment 4 Fridolin Somers 2021-07-07 09:08:37 UTC
Maybe solved by Bug 28513
Comment 5 Fridolin Somers 2022-05-11 21:11:24 UTC

*** This bug has been marked as a duplicate of bug 29418 ***