Bug 28447 - Refine your search Holding libraries location code omits dot and shows * instead of full name
Summary: Refine your search Holding libraries location code omits dot and shows * inst...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: 20.11
Hardware: All All
: P5 - low minor (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 17661
Blocks:
  Show dependency treegraph
 
Reported: 2021-05-25 13:49 UTC by Bohdan
Modified: 2021-05-29 14:55 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bohdan 2021-05-25 13:49:48 UTC
Some of locations in the library have codes that end with dot.
Recently this library was updated from 19.11 to 20.11 and in search results page in  "Refine your search" there is simply a "*" symbol instead of full location name in "Holding libraries" category.
When I  hover mouse over it it shows location code without a dot.
Some locations have 2 dots and only last one is omitted.
In version 19.11 everything was working fine.
Comment 1 Katrin Fischer 2021-05-29 14:34:54 UTC
I believe this might be because we added code to make the facet display more consistent with various ISBD punctuation (bug 17661)

Can I ask why the dot was chosen? Usually it's recommend to avoid any special characters in the codes (at least we recommend it, because things like this :) )
Comment 2 Bohdan 2021-05-29 14:43:06 UTC
The dot was chosen because the name of the library location consists of multiple words.
Does this mean location should be changed and last dot removed as well as change location for all items?
Comment 3 Katrin Fischer 2021-05-29 14:55:11 UTC
I think it would resolve the issue at hand most likely, but depending on the number of items in your system it might be quite a bit of work to do. I'd maybe wait to see if we can get someone to look at the code first - I was mostly guessing as the time frame could fit the change.

To explain my comment about characters in codes a bit more:
I would not recommend using ., -, _ and similar in codes for locations, collections, libraries and the like usually because these are treated as spaces by Zebra too. For example if you have codes book and e-book - book will also find all e-books, because "e-book" is seen as "e book" so book will match both. Similar for dots. This can be an intended effect sometimes, but often times it's not.