Skip to content

Instantly share code, notes, and snippets.

@stompro
Last active August 29, 2015 14:06
Show Gist options
  • Save stompro/30723cd057b4812732b2 to your computer and use it in GitHub Desktop.
Save stompro/30723cd057b4812732b2 to your computer and use it in GitHub Desktop.
Barcode Completion Documentation Notes
Files involved
Original commit
https://github.com/evergreen-library-system/Evergreen/commit/29a874a1f9c99d2eb69b048631d4e5b0dc51a813
./Open-ILS/src/templates/conify/global/config/barcode_completion.tt2
https://github.com/evergreen-library-system/Evergreen/blob/master/Open-ILS/src/templates/conify/global/config/barcode_completion.tt2
./Open-ILS/web/js/ui/default/conify/global/config/barcode_completion.js
https://github.com/evergreen-library-system/Evergreen/blob/master/Open-ILS/web/js/ui/default/conify/global/config/barcode_completion.js
https://github.com/evergreen-library-system/Evergreen/blob/e56eb48861a5666080ca5cdd2e72203e9620572e/Open-ILS/src/sql/Pg/020.schema.functions.sql#L329
Where the barcode completion hooks into the get_barcodes stored procedure.
Barcode_completion table
https://github.com/evergreen-library-system/Evergreen/blob/611673967f308a806842b8a30e09cdee10e742da/Open-ILS/src/sql/Pg/002.schema.config.sql#L928
Unique part is 123
1230000000 - Padding from end of zeros to 10 digits
0000000123 - padding of zeros to 10 digits
4455000123 - Prefix of 4455000
4455012355 - Prefix of 44550 & Suffix of 55
1230004455 - Suffix of 0004455
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment