Summary: | SearchWithIS[B|S]NVariations breaks ISBN search in item search | ||
---|---|---|---|
Product: | Koha | Reporter: | Katrin Fischer <katrin.fischer> |
Component: | Searching | Assignee: | Bugs List <koha-bugs> |
Status: | NEW --- | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | CC: | david, emily.lamancusa, jonathan.druart, nick, patrick.robitaille, tomascohen |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33303 | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Bug Depends on: | 23919 | ||
Bug Blocks: |
Description
Katrin Fischer
2023-04-13 07:57:11 UTC
I should also mention that any truncation entered in the item search is lost when it's run through the ISBN conversion. So there is no workaround. I am not sure what the best solution here is: 1) Remove the ISBN handling from item search. 2) Fix it to search for ISBN left and right truncated (%isbn%) a) create a separate system preference to turn it on/off b) leave it at one system preference as it is now that controls catalog and item search Note: the performance issues I mentioned earlier have been fixed by giving the databaes more resources. 2a? (In reply to Katrin Fischer from comment #2) > I am not sure what the best solution here is: What about making sure that normalized strings are always stored on the DB? (i.e. no spaces, no symbols). It feels like GetVariationsOfISBN might be too much in my opinion. (In reply to Tomás Cohen Arazi from comment #3) > (In reply to Katrin Fischer from comment #2) > > I am not sure what the best solution here is: > > What about making sure that normalized strings are always stored on the DB? > (i.e. no spaces, no symbols). It feels like GetVariationsOfISBN might be too > much in my opinion. I think that's not the main issue here, sorting differently would not resolve hte issue. We need to fix the search query. The problem is that we store a string of space separated ISBN and you can't search that with SQL without truncating/using LIKE. And that's what happens now and only works when there is only one ISBN on the record (which often is not the case at least for us) sorting => storing
> I think that's not the main issue here, storing differently would not
> resolve hte issue. We need to fix the search query. The problem is that we
> store a string of space separated ISBN and you can't search that with SQL
> without truncating/using LIKE. And that's what happens now and only works
> when there is only one ISBN on the record (which often is not the case at
> least for us)
|