Bug 34143 - "no attempt to encode" (|||) in the language facet doesn't work
Summary: "no attempt to encode" (|||) in the language facet doesn't work
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching - Elasticsearch (show other bugs)
Version: 22.11
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-28 10:32 UTC by Päivi Knuutinen
Modified: 2023-08-11 05:10 UTC (History)
2 users (show)

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


Attachments
Language code (|||) (4.79 KB, image/png)
2023-07-07 04:24 UTC, Päivi Knuutinen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Päivi Knuutinen 2023-06-28 10:32:14 UTC
"no attempt to encode" (|||) in the language facet doesn't work. Clicking on the facet turns the number in brackets to x but nothing else happens. It should instead return biblios that have "No attempt to encode" (|||) in MARC controlfield 008 character places 35-37."
Comment 1 Päivi Knuutinen 2023-06-29 08:47:58 UTC
Steps to reproduce:
1. search for somethingsomething...
2. click on a language facet that has ||| (No attempt to encode)
3. notice that biblios with no attempt to encode as language facet are not returned
Comment 2 Jonathan Druart 2023-07-05 12:56:31 UTC
I don't understand what this is about, can you provide more details please?
Comment 3 Päivi Knuutinen 2023-07-06 04:26:10 UTC
When you do a search in Koha and you get search result which has langauge facet with (|||), you cannot see which biblios has that language code in MARC 008/35-37 when you click the code. Normally when you click any language code, you get those biblios which have that language code.
Comment 4 Jonathan Druart 2023-07-06 12:40:51 UTC
Is "no attempt to encode" an error you are seeing somewhere?
Comment 5 Päivi Knuutinen 2023-07-07 04:24:07 UTC
Created attachment 153109 [details]
Language code (|||)

If I click the language code (|||) it does nothing. Only the amount (25) turns to (x).
Comment 6 Katrin Fischer 2023-07-08 12:25:41 UTC
(In reply to Jonathan Druart from comment #4)
> Is "no attempt to encode" an error you are seeing somewhere?

It's from the MARC standard. If you "don't attempt to encode" the language, you set it to ||| which probably creates a problem when we try searching for it.

See here:
"No attempt to encode" (|||) in MARC controlfield 008 character places 35-37."
https://www.loc.gov/marc/bibliographic/bd008a.html

Maybe we should just exclude them from the language facets?
Comment 7 Päivi Knuutinen 2023-08-11 05:10:59 UTC
> See here:
> "No attempt to encode" (|||) in MARC controlfield 008 character places
> 35-37."
> https://www.loc.gov/marc/bibliographic/bd008a.html
> 
> Maybe we should just exclude them from the language facets?

That is ok with me.