Skip to content

Commit

Permalink
Bug 14031: Itemnumber should be a numeric search in ccl.properties
Browse files Browse the repository at this point in the history
This patch changes the "itemnumber" alias so that it acts like
"itemnumber,st-numeric". That is, it always does a numeric search.

_TEST PLAN_

The best way to test this patch is to apply the patch and then run
"make upgrade", I suspect. As this will refresh your "ccl.properties".

However, this patch is actually really small, so you can just apply
it manually to an existing "ccl.properties" if you rather save time.

Basically, you just need to do the following steps:

0) Do a search for "itemnumber:<insert real indexed itemnumber here>"
1) Note that you can't retrieve any results
2) Change your ccl.properties to say "itemnumber 1=8010 4=109"
3) Repeat the search for "itemnumber:<X>"
4) Note that you now retrieve your result

Signed-off-by: Magnus Enger <[email protected]>
Tested on a gitified package install. Made the change to
/etc/koha/zebradb/ccl.properties manually. After this change
I can successfully search for "itemnumber:1".

Signed-off-by: Jonathan Druart <[email protected]>
Signed-off-by: Tomas Cohen Arazi <[email protected]>
  • Loading branch information
minusdavid authored and tomascohen committed Aug 21, 2015
1 parent 183169f commit 9eee8b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/zebradb/ccl.properties
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ cn-sort 1=8007
notforloan 1=8008 4=109
ccode 1=8009
mc-ccode ccode
itemnumber 1=8010
itemnumber 1=8010 4=109
# homebranch 1=8011
homebranch 1=homebranch
branch homebranch
Expand Down

0 comments on commit 9eee8b9

Please sign in to comment.