Koha/t
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
..
data/db_schemas
db_dependent Merge remote branch 'koha-fbc/k_bug_5284' into master 2010-10-06 13:46:02 -04:00
lib Change in API : ordnum becomes ordernumber 2009-10-30 00:30:47 +01:00
00-deprecated.t Bug 5105 Regression test for switch statement 2010-11-11 21:32:31 +13:00
00-load.t bug 5386: remove dep on Path::Class from t/00-load.t 2010-11-12 06:40:02 +13:00
00-merge-conflict-markers.t bug 5400: new test case to find files with merge conflict markers 2010-11-14 09:37:27 +13:00
00-valid-xml.t bug 5393 [SIGNED-OFF]: add test case to check well-formedness of XML/XSLT files 2010-11-13 11:51:49 +13:00
Amazon.t Move Amazon.pm to External/ directory 2009-03-27 17:23:49 -05:00
Auth_with_cas.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
AuthoritiesMarc.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
AuthoritiesMarc_MARC21.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
AuthoritiesMarc_UNIMARC.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Barcodes_annual.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Barcodes_hbyymmincr.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Barcodes_incremental.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Barcodes_PrinterConfig.t
Biblio.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Bookseller.t
Boolean.t Bug 5448 Use Test::More in Boolean.t 2010-12-02 08:51:32 +13:00
Branch.t
Breeding.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Budgets.t C4::Bookfund no longer exists, removing the test 2009-12-20 14:31:37 +01:00
Cache.t create unit test files 2010-10-30 20:12:50 +13:00
Cache_Memcached.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Cache_Memoize_Memcached.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Calendar.t
Category.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Charset.t
Circulation_barcodedecode.t Bug 5418: Rev-5 patch new itemBarcodeInputFilter for libsuite8 style barcodes 2010-12-12 20:39:20 +13:00
ClassSortRoutine.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
ClassSortRoutine_Dewey.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
ClassSortRoutine_Generic.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
ClassSortRoutine_LCC.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
ClassSource.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Contract.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Creators.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Csv.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
database_dependent.pl
Dates.t bugfix Dates.t test plan has wrong value 2010-02-10 05:53:28 -05:00
Debug.t
dummy.t
External_BakerTaylor.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
External_Syndetics.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Form_MessagingPreferences.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Heading.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Heading_MARC21.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
ILSDI_Services.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
ILSDI_Utility.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
ImportBatch.t Create Unit Test for ImportBatch 2010-10-31 10:32:29 +13:00
Input.t
Installer_PerlDependencies.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Installer_PerlModules.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Installer_pm.t Bug 4905 Runtime errors in about.pl 2010-06-24 14:16:36 -04:00
ItemCirculationAlertPreference.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Items.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
ItemType.t Bug 5327: Add unit test for ItemType.pm 2010-10-31 22:16:47 +13:00
Koha.t Bug 4305: Add test case for ISBN-13 to ISBN-10 conversion 2010-11-13 06:43:49 +13:00
Labels_split_ccn.t fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00
Labels_split_ddcn.t fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00
Labels_split_lccn.t fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00
Languages.t
Letters.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Log.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Maintainance.t
Makefile Bug 2524: improving the submitted test reports 2008-08-18 07:17:34 -05:00
Matcher.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Members.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Members_Attributes.t Remove diagnostic output from t/Members_Attributes.t 2009-12-20 14:31:39 +01:00
Members_AttributeTypes.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Members_Messaging.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Message.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
NewsChannels.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Output.t
Output_JSONStream.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Overdues.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Patroncards.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Patroncards_Batch.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Patroncards_Layout.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Patroncards_Lib.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Patroncards_Patroncard.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Patroncards_Profile.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Patroncards_Template.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Print.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Record.t
Reports.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Reports_Guided.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Review.t create unit test files 2010-10-30 20:12:50 +13:00
rewrite-config-test.PL Fix FSF address in directory t/ 2010-03-16 20:17:51 -04:00
Ris.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
RotatingCollections.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Scheduler.t create unit test files 2010-10-30 20:12:50 +13:00
Scrubber.t
Search_PazPar2.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
Serials.t add warnings to Serials.pm 2010-04-08 13:28:40 +01:00
Service.t Adding a simple test for Service.pm 2010-10-30 20:12:47 +13:00
SIP_ILS.t bug 5327: follow-up to fix SIP tests 2010-11-01 15:35:52 +13:00
SIP_Sip.t bug 5327: follow-up to fix SIP tests 2010-11-01 15:35:52 +13:00
smolder_smoke_signal Bug 2524: Adding script to submit test reports to smolder server 2008-08-18 07:16:35 -05:00
SMS.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Stats.t
Tags.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
UploadedFile.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:12:53 +13:00
Utils.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:22:30 +13:00
VirtualShelves_Merge.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
VirtualShelves_Page.t Bug 5327: More basic unit tests for C4 modules 2010-11-01 15:35:50 +13:00
XISBN.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:22:30 +13:00
XSLT.t Bug 5327: Add basic unit tests to some C4 modules 2010-10-30 20:22:30 +13:00
Z3950.t unit test stub for Z3950.pm 2010-10-31 10:33:35 +13:00