Koha/C4
Koustubha Kale e4cbc4f421 Bug 5418: Rev-5 patch new itemBarcodeInputFilter for libsuite8 style barcodes
In India a ILS product called Libsuite8 prints barcodes like b0007432. The barcode is not stored anywhere in libsuite8's database. Neither is barcode available in any of the reports generated by the software.

The barcode 'b0007432' when scanned into the libsuite8 software is de-constructed like 'b' which is the itemtype i.e. Book in this instance, and '7432' which is the 'Accession Number'. The software then takes the logged in staff's branchcode and does a join on three tables 'Location', 'Media_Type', and 'Books' to retrieve the particular record from the database.

There is no possibility of recreating the barcodes for insertion in Koha while doing a retrospective conversion, because of arbitrary length of the barcode string AND arbitrary number of zeros in the numeric part of the printed barcode AND the fact that there are no reports available from the software which contain barcodes AND the fact that the barcode is not stored in the database.
But most importantly due to the simple fact that printed barcodes are duplicated among branches.

Therefore this patch emulates the functionality of Libsuite8 software of converting the scanned barcode into one stored in Koha using the itemBarcodeInputFilter system preference.

To use this new itemBarcodeInputFilter systempreference choice called 'libsuite8', the barcodes stored in Koha must match the pattern of <branchcode>-<itemtype_code>-<accession_number>. This is easy to achieve while doing retrospective conversion from Libsuite8 to Koha.

As expected the itemBarcodeInputFilter will return unmodified barcode if presented with a barcode of pattern <branchcode>-<itemtype_code>-<accession_number>

This revision corrects the way updatedatabase.pl is changed in order to correctly update version and insert the libsuite8 option in the database. Also kohaversion.pl is changed in the recommended format of 3.0X.0X.XXX to reflect database has changed.

This revision also changes the erronorous itemBarcodeInputFilter description in koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref from 'scanned patron barcodes' to 'scanned item barcodes' there by eliminating need for a separate patch for bug 5417.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

1) applied patch to HEAD
2) set next database number in kohaversion.pl and updatedatabase.pl
3) webinstaller kicked in, update ok
4) typed the barcodes from test cases into check-in

Barcodes used my local branch code, everything seemed ok to me.
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2010-12-12 20:39:20 +13:00
..
AuthoritiesMarc Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
Barcodes Bug 5385 - Fixing an error that crept in with the POD cleanup 2010-11-12 10:42:19 +13:00
Cache Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
ClassSortRoutine replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Creators Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
External Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
Form Bug 4254 - adding new patron advanced notice doesn't save 2010-11-02 15:17:35 +13:00
Heading Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
ILSDI Bug 5450 Avoid a name clash in ILSDI modules 2010-12-01 10:05:51 +13:00
Installer bug 5389: mark Business::ISBN as a required dependency 2010-11-12 14:31:56 +13:00
Labels fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00
Members Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
Output Fix FSF address in directory C4/ 2010-03-16 20:17:56 -04:00
Patroncards fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00
Reports Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
Search Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
SIP Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
tests Bug 2505 - Add commented use warnings where missing in the C4/ directory 2010-04-21 20:25:32 +12:00
VirtualShelves Fixes bug 5232: Shelfname won't display on high-numbered lists 2010-12-02 08:33:12 +13:00
Accounts.pm fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00
Acquisition.pm remove a bunch of unconditional debug warns 2010-07-02 10:57:08 -04:00
Auth.pm Bug 5066 (Log timestamp consistently in _session_log) 2010-11-18 09:00:10 +13:00
Auth_with_cas.pm MT3186: Remove warnings from Auth_with_cas 2010-04-23 06:55:13 -04:00
Auth_with_ldap.pm bug 4256: fix patron replication when using LDAP with auth_by_bind 2010-04-30 17:05:38 -04:00
AuthoritiesMarc.pm bug 5243: avoid crash when saving authority records on certain setups 2010-11-02 16:13:27 +13:00
BackgroundJob.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Barcodes.pm Another batch of POD cleanups 2010-06-09 08:38:56 -04:00
Biblio.pm Bug 5430: Follow-up, fixes error message when no 001 exists 2010-11-30 07:01:17 +13:00
Bookseller.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Boolean.pm Bug 5448: Refactor Boolean.pm 2010-12-02 08:51:33 +13:00
Branch.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Breeding.pm Fix FSF address in directory C4/ 2010-03-16 20:17:56 -04:00
Budgets.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Cache.pm Bug 5363 - Removing unused module (C4::Cache::FastMemcached) 2010-11-04 20:05:36 +13:00
Calendar.pm Fix for Bug 4991, Overhaul of Calendar interface 2010-11-02 15:02:54 +13:00
Category.pm POD Cleanups 2010-06-09 08:38:59 -04:00
Charset.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Circulation.pm Bug 5418: Rev-5 patch new itemBarcodeInputFilter for libsuite8 style barcodes 2010-12-12 20:39:20 +13:00
ClassSortRoutine.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
ClassSource.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Context.pm remove old revision history notes from a couple files 2010-06-25 05:18:44 -04:00
Contract.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Creators.pm Fix some compile time errors reported in test suite 2010-12-02 08:53:53 +13:00
Csv.pm Bug 2505 - Add commented use warnings where missing in *.pm 2010-04-21 20:28:51 +12:00
Dates.pm Dates : improvements string recognition 2010-01-28 15:11:47 +01:00
Debug.pm More POD cleanups 2010-06-09 08:38:58 -04:00
Heading.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
ImportBatch.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Input.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Installer.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
ItemCirculationAlertPreference.pm POD Cleanups 2010-06-09 08:38:59 -04:00
Items.pm bug 3597: DelItemCheck now refuses to delete items in transit for holds 2010-10-21 23:01:34 -04:00
ItemType.pm POD Cleanups 2010-06-09 08:38:59 -04:00
Koha.pm Incremental fix for Bug 3285 - Location on Add Subscription should be pull down 2010-12-07 09:29:05 +13:00
Labels.pm Bringing label, patroncard, and creator modules into conformity with the rest of C4 style. 2010-02-08 20:54:34 -05:00
Languages.pm bug 4188: move PDF templates for printed purchase orders 2010-07-02 08:49:44 -04:00
Letters.pm Bug 4211: This patch should provide a working way to send out mail from suggestions 2010-11-30 06:47:52 +13:00
Log.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Maintainance.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Matcher.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Members.pm Bug 5475 Wrong messages date formating on Check Out page 2010-12-12 20:24:42 +13:00
Message.pm POD Cleanups 2010-06-09 08:38:59 -04:00
NewsChannels.pm Fix FSF address in directory C4/ 2010-03-16 20:17:56 -04:00
Output.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Overdues.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Patroncards.pm Fix some compile time errors reported in test suite 2010-12-02 08:53:53 +13:00
Print.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Record.pm remove two disused functions 2010-10-21 20:31:51 -04:00
Reports.pm More POD cleanups 2010-06-09 08:38:58 -04:00
Reserves.pm (MT 2985) simplify CanBookBeReserved 2010-11-06 07:14:13 +13:00
Review.pm Fix FSF address in directory C4/ 2010-03-16 20:17:56 -04:00
Ris.pm remove a bunch of unconditional debug warns 2010-07-02 10:57:08 -04:00
RotatingCollections.pm Fix some compile time errors reported in test suite 2010-12-02 08:53:53 +13:00
Scheduler.pm POD Cleanups 2010-06-09 08:38:59 -04:00
Scrubber.pm POD Cleanups 2010-06-09 08:38:59 -04:00
Search.pm Bug 4074 Fix fail to parse simple qualified search 2010-11-17 17:03:04 +13:00
Serials.pm Bug 5022 Supplements were not saved correctly 2010-12-12 20:13:59 +13:00
Service.pm POD Cleanups 2010-06-09 08:38:59 -04:00
SMS.pm More POD cleanups 2010-06-09 08:38:58 -04:00
SQLHelper.pm POD Cleanups 2010-06-09 08:38:59 -04:00
Stats.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Suggestions.pm bug 4211: ensure that suggestion emails have full details 2010-11-30 06:47:52 +13:00
Tags.pm More POD cleanups 2010-06-09 08:38:58 -04:00
UploadedFile.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Utils.pm
VirtualShelves.pm removed AddToShelfFromBiblio from C4::VirtualShelves 2010-10-06 10:39:36 -04:00
XISBN.pm More POD cleanups 2010-06-09 08:38:58 -04:00
XSLT.pm Bug 5370: Fix all references to koha.org 2010-11-08 09:41:47 +13:00
Z3950.pm fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00