[OPEN-ILS-DOCUMENTATION] Barcode Completion Docs - Barcode formats
Josh Stompro
stomproj at exchange.larl.org
Tue Jun 2 15:29:02 EDT 2015
Thomas, Thank you for the feedback. I've updated the documentation to include a beginning paragraph that addresses the scenario you mentioned, and an example for matching a barcode of any length with a prefix and suffix. Please let me know if you think I covered it sufficiently.
https://gist.github.com/stompro/728e92ab9dae47a15a88
Josh Stompro - LARL IT Director
-----Original Message-----
From: OPEN-ILS-DOCUMENTATION [mailto:open-ils-documentation-bounces at list.georgialibraries.org] On Behalf Of Thomas Berezansky
Sent: Monday, May 18, 2015 10:15 AM
To: Documentation discussion for Evergreen software
Subject: Re: [OPEN-ILS-DOCUMENTATION] Barcode Completion Docs - Barcode formats
No padding character or zero length means "attach prefix/suffix to input and look that up".
That may be useful for things like adding a single character to the front of scanned barcodes, regardless of length, such as when migrated/imported data may contain a leading or trailing character. Or both.
Possible examples with length set to 0 and/or padding not set:
Prefix of "a" and suffix of "b" when a barcode scanner was previously outputting those characters around the barcode.
Prefix of "d" because migrated data includes that character but new scans will only include the digits.
Note that "Want to fill out to 14 digits" and "want to check if it exists with a d in front" at the same time could require three rules.
One for "add the d regardless of what was entered", one for "fill out to 14 digits without a d", and one for both (length 15, prefix has the d in front of whatever the normal prefix is from filling out to 14 digits).
Quoting Josh Stompro <stomproj at exchange.larl.org>:
> Hello, the Doc Hackfest on Wed inspired me to try and get the barcode
> completion docs done. I have limited experience with various formats
> of barcodes though, we have a standard for the state of MN, 14 digits,
> 5 character prefix, zeros for padding, significant digits to the
> right.
>
> Here is a link to the gist -
> https://gist.github.com/stompro/728e92ab9dae47a15a88
>
> I include examples for 4 types of barcodes,
>
> * Prefix + padding
>
> * Suffix + Padding
>
> * Left padding
>
> * Right padding
>
> Are there any other examples I should include?
> Thanks
> Josh
--
Thomas Berezansky
Assistant Network Administrator
Merrimack Valley Library Consortium
1600 Osgood ST, Suite 2094
North Andover, MA 01845
Phone: 978-557-8161
_______________________________________________
OPEN-ILS-DOCUMENTATION mailing list
OPEN-ILS-DOCUMENTATION at list.georgialibraries.org
http://list.georgialibraries.org/mailman/listinfo/open-ils-documentation
More information about the OPEN-ILS-DOCUMENTATION
mailing list