Bug 11585

Summary: pubdate index not working well in UNIMARC
Product: Koha Reporter: Mathieu Saby <mathsabypro>
Component: SearchingAssignee: Galen Charlton <gmcharlt>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: anke.bruns
Version: Main   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11202
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12742
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Mathieu Saby 2014-01-20 12:23:37 UTC
Without Queryparser, pubdate index is not searchable in unimarc.

the query "pubdate:1925" in simple search box gives 0 results, even if we have a book of 1925.


It is working well with Queryparser activated.

M. Saby
Comment 1 Anke Bruns 2023-04-13 12:43:45 UTC
In 22.05, the pubdate index works well if searched for one year only (e.g. 1999).

However, searching for a date range, as suggested in the pulldown menu, doesn't yield anything at all. Thus, "1999-2002" or "1999 - 2002" return 0 results, even though there are records with pubdates 1999, 2002 and the years in between, that can be retrieved by searching for one single year as mentioned above.

How can this be fixed?
Comment 2 Katrin Fischer 2023-04-13 19:50:11 UTC
Hi Anke, this bug is about UNIMARC, you should file separately for MARC21. This is also about a single year not being searchable, not a date range.

IMO the pull down should have the misleading text removed. It doesn't make sense to thave the same functionality twice on the page and we still have the date range search below.
Comment 3 Anke Bruns 2023-04-14 10:11:51 UTC
Done. 

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

However, I don't know what is meant by having the same functionality twice on the page - I can see it only once in the search pulldown menu.
Comment 4 Katrin Fischer 2023-04-15 20:40:22 UTC
> However, I don't know what is meant by having the same functionality twice
> on the page - I can see it only once in the search pulldown menu.

When you click on 'more options' there is a separate date range search on the lower part of the page in staff and the OPAC.