Bug 5430

Summary: Add Control number as option to OPACSearchForTitleIn
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: OPACAssignee: Katrin Fischer <katrin.fischer>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: enhancement    
Priority: PATCH-Sent (DO NOT USE) CC: chris
Version: 3.4   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Proposed patch
Follow up to previous patch, hopefully fixing problems with non existing 001 fields

Description Katrin Fischer 2010-11-24 06:20:35 UTC
OPACSearchForTitleIn currently supports {TITLE}, {ISBN} and {AUTHOR}. 

Not all books have an isbn and author or title often produce a lot of results.

In our union catalog model the control number is perfect for linking. It allows to build a search link, that will go directly to the record in our union catalog or other library's catalogs. 

I suggest to add {CONTROLNUMBER} as new placeholder to OPACSearchForTitleIn.
Comment 1 Katrin Fischer 2010-11-24 06:29:44 UTC
Created attachment 2781 [details] [review]
Proposed patch

Makes {CONTROLNUMBER} available as new placeholder in
system preference OPACSearchForTitleIn.

{CONTROLNUMBER} will be replaced by the number in tag 001
Comment 2 Chris Cormack 2010-11-25 01:48:38 UTC
Patch pushed and merged, please test
Comment 3 Katrin Fischer 2010-11-25 14:59:06 UTC
Successfully tested in current HEAD.
Comment 4 Katrin Fischer 2010-11-28 12:39:26 UTC
Created attachment 2793 [details] [review]
Follow up to previous patch, hopefully fixing problems with non existing 001 fields
Comment 5 Chris Cormack 2010-11-29 18:06:28 UTC
Fix pushed, please test
Comment 6 Katrin Fischer 2010-12-11 07:05:01 UTC
Records without control numbers are no longer causing a error in OPAC detail view. Closing bug.