[Bug 35131] New: Add scan-able barcode to the patron sidebar (patroninfo)
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 Bug ID: 35131 Summary: Add scan-able barcode to the patron sidebar (patroninfo) Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Patrons Assignee: koha-bugs@lists.koha-community.org Reporter: lucas@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle.m.hall@gmail.com Many libraries have requested this and I have been obliging with custom JS. I think it would be nice to add to Koha properly. This would be a scan-able barcode from 'patroninfo' sidebar. I could be controlled by a system preference that display or does not display it and allows for a choice of barcode type. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #1 from Lucas Gass <lucas@bywatersolutions.com> --- Created attachment 157674 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157674&action=edit Bug 35131: Show the patron cardnumber as a borcode in the patron record To test: 1. Apply patch, updatedatabase, yarn build, and restart services 2. Search for the system preference 'ShowBarcodeOnPatronRecord' and set it to something other than 'Don't show'. 3. Now go to any page that shows the 'patroninfo' section. ( circ/circulation.pl, members/moremember.pl, members/pay.pl, etc ) 4. Make sure this patron has a cardnumber. 5. From any of the aforementioned pages make sure you can see the patron barcode. 6. Try many different barcode types, making sure they each display well. 7. Remove the patron cardnumber and confirm that nothing displays. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #157674|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #2 from Lucas Gass <lucas@bywatersolutions.com> --- Created attachment 157675 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157675&action=edit Bug 35131: Add new system preference and DBRev -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #3 from Lucas Gass <lucas@bywatersolutions.com> --- Created attachment 157676 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157676&action=edit Bug 35131: Show the patron cardnumber as a borcode in the patron record To test: 1. Apply patch, updatedatabase, yarn build, and restart services 2. Search for the system preference 'ShowBarcodeOnPatronRecord' and set it to something other than 'Don't show'. 3. Now go to any page that shows the 'patroninfo' section. ( circ/circulation.pl, members/moremember.pl, members/pay.pl, etc ) 4. Make sure this patron has a cardnumber. 5. From any of the aforementioned pages make sure you can see the patron barcode. 6. Try many different barcode types, making sure they each display well. 7. Remove the patron cardnumber and confirm that nothing displays. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Small patch Assignee|koha-bugs@lists.koha-commun |lucas@bywatersolutions.com |ity.org | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 Dave <ddaghita@mckinneytexas.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ddaghita@mckinneytexas.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #4 from Owen Leonard <oleonard@myacpl.org> --- What is the use case here? If the patron record is already up why scan the barcode? I ask in part because my impulse is to say the barcode should go below the patron info, but I don't know if that conflicts with the original requirements. I think the preference description should be a little more specific: "Show a <type> barcode of the patron record." Could be... "Show a <type> barcode of the patron's card number in the sidebar of patron-related pages" ? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #5 from Dave <ddaghita@mckinneytexas.org> --- Case use for when patrons forget their library card. Staff can scan their barcode from the staff side account to quickly checkout them on the self-checkout kiosks. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 Ed Veal <eveal@mckinneytexas.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eveal@mckinneytexas.org --- Comment #6 from Ed Veal <eveal@mckinneytexas.org> --- At the risk of asking for a bit more please. Might we have the option of the barcode being a printable QR Code? Just asking! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #7 from Lucas Gass <lucas@bywatersolutions.com> --- (In reply to Ed Veal from comment #6)
At the risk of asking for a bit more please. Might we have the option of the barcode being a printable QR Code? Just asking!
One of the barcode type options is QRCode. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au --- Comment #8 from David Cook <dcook@prosentient.com.au> --- (In reply to Owen Leonard from comment #4)
What is the use case here? If the patron record is already up why scan the barcode?
I'm also curious why we'd need the barcode on the staff interface... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #9 from David Cook <dcook@prosentient.com.au> --- (In reply to Dave from comment #5)
Case use for when patrons forget their library card. Staff can scan their barcode from the staff side account to quickly checkout them on the self-checkout kiosks.
Could you elaborate on that? How would the self-checkout kiosk have access to the staff interface? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #10 from Dave <ddaghita@mckinneytexas.org> --- We use tablets to access the staff intranet to look at patron accounts and other modules in koha on the main library floor. This mobile circulation method gives full staff access to all aspects of the patron account. We use koha module self-checkout kiosks only with 2D barcode scanner and RFiD pad. If a patron forgets their library card or did not bring their phone with digital card. The scannable barcode within their patron account allows staff then walk over to a self-checkout kiosk scan their barcode from our tablets and let the patron continue their checkout unaided. Side note: This also helps with new library cards as we went to preferred digital cards method. When logging-in a user for the first time to the Aspen LiDA app. We use the barcode scan function in Aspen LiDA on their phone to scan the patron’s barcode from their account via out tablets with the staff side intranet to quickly fill that library barcode section of Aspen LiDA. We do use that staff side intranet barcode for multiple options. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #11 from Ed Veal <eveal@mckinneytexas.org> --- David, I hope Dave answered your question about use case. The second part of my request is that we have almost moved completely away from giving out cards, 90+% use of AspenLiDa app or Aspen website. However, there are times that a child really wants a card and we are working on workflows to create a quick card on the fly rather than purchasing enough pre-printed cards to get a discount and tracking the barcode numbers so that we don't have conflicts. We are also going to be moving to using "Internet Only" accounts for our homeless to access computers. For this we want to provide a special card we create on the fly as well. However, for those that have mobile phones the app and/or website will work just as well. Ed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #12 from David Cook <dcook@prosentient.com.au> --- Thanks Dave and Ed. Those explanations were really helpful :). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 Sally <sally.healey@cheshiresharedservices.gov.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sally.healey@cheshireshared | |services.gov.uk -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #13 from Lucas Gass <lucas@bywatersolutions.com> --- The feedback I am getting from libraries is very similar to the workflow explained by Ed and Dave: "This will enable us to quickly aid a patron who has forgotten their library card at the self-check machines. We would be able to scan this rather than put it in manually by hand. It would make us much more efficient on the floor." -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #14 from Lucas Gass <lucas@bywatersolutions.com> --- (In reply to Owen Leonard from comment #4)
What is the use case here? If the patron record is already up why scan the barcode?
I ask in part because my impulse is to say the barcode should go below the patron info, but I don't know if that conflicts with the original requirements.
I think the preference description should be a little more specific:
"Show a <type> barcode of the patron record."
Could be... "Show a <type> barcode of the patron's card number in the sidebar of patron-related pages" ?
I agree. I will change the pref and add the barcode below the patron info. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #15 from Lucas Gass <lucas@bywatersolutions.com> --- Created attachment 157936 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157936&action=edit Bug 35131: Fix preference description and move barcode to bottom of patroninfo -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@ptfs-europe | |.com Keywords| |Sandbox -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 paxed <pasi.kallinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pasi.kallinen@koha-suomi.fi --- Comment #16 from paxed <pasi.kallinen@koha-suomi.fi> --- This can be done with just javascript without needing to change Koha code, something like $(document).ready(function () { if (window.location.pathname == '/cgi-bin/koha/members/moremember.pl') { cardnumber = document.getElementById('patron-cardnumber').childNodes[2].nodeValue.trim(); barcodeurl = "/cgi-bin/koha/svc/barcode?barcode=" + cardnumber.toUpperCase() + "¬ext=1"; $('li#patron-cardnumber').append('<br><img src="' + barcodeurl + '">'); } }); -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #17 from Lucas Gass <lucas@bywatersolutions.com> --- (In reply to paxed from comment #16)
This can be done with just javascript without needing to change Koha code, something like
$(document).ready(function () { if (window.location.pathname == '/cgi-bin/koha/members/moremember.pl') { cardnumber = document.getElementById('patron-cardnumber').childNodes[2].nodeValue.trim(); barcodeurl = "/cgi-bin/koha/svc/barcode?barcode=" + cardnumber.toUpperCase() + "¬ext=1"; $('li#patron-cardnumber').append('<br><img src="' + barcodeurl + '">'); } });
Sure, but we'd rather see this get into Koha as a feature instead of having to upkeep any custom javascript. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #18 from David Cook <dcook@prosentient.com.au> --- At the risk of flogging this horse to death, another thought would be to have a "Barcode" or "Card" circ menu option. Of course, that would be another Perl script/template combo, but then we wouldn't need a new syspref/database change I think. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #157675|0 |1 is obsolete| | Attachment #157676|0 |1 is obsolete| | Attachment #157936|0 |1 is obsolete| | --- Comment #19 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 158242 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158242&action=edit Bug 35131: Add new system preference and DBRev Signed-off-by: Owen Leonard <oleonard@myacpl.org> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #20 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 158243 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158243&action=edit Bug 35131: Show the patron cardnumber as a borcode in the patron record To test: 1. Apply patch, updatedatabase, yarn build, and restart services 2. Search for the system preference 'ShowBarcodeOnPatronRecord' and set it to something other than 'Don't show'. 3. Now go to any page that shows the 'patroninfo' section. ( circ/circulation.pl, members/moremember.pl, members/pay.pl, etc ) 4. Make sure this patron has a cardnumber. 5. From any of the aforementioned pages make sure you can see the patron barcode. 6. Try many different barcode types, making sure they each display well. 7. Remove the patron cardnumber and confirm that nothing displays. Signed-off-by: Owen Leonard <oleonard@myacpl.org> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #21 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 158244 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158244&action=edit Bug 35131: Fix preference description and move barcode to bottom of patroninfo Signed-off-by: Owen Leonard <oleonard@myacpl.org> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kyle@bywatersolutions.com QA Contact|testopia@bugs.koha-communit |kyle@bywatersolutions.com |y.org | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #158242|0 |1 is obsolete| | Attachment #158243|0 |1 is obsolete| | Attachment #158244|0 |1 is obsolete| | --- Comment #22 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 159459 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159459&action=edit Bug 35131: Add new system preference and DBRev Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #159459|0 |1 is obsolete| | --- Comment #23 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 159460 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159460&action=edit Bug 35131: Add new system preference and DBRev Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #24 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 159461 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159461&action=edit Bug 35131: Show the patron cardnumber as a borcode in the patron record To test: 1. Apply patch, updatedatabase, yarn build, and restart services 2. Search for the system preference 'ShowBarcodeOnPatronRecord' and set it to something other than 'Don't show'. 3. Now go to any page that shows the 'patroninfo' section. ( circ/circulation.pl, members/moremember.pl, members/pay.pl, etc ) 4. Make sure this patron has a cardnumber. 5. From any of the aforementioned pages make sure you can see the patron barcode. 6. Try many different barcode types, making sure they each display well. 7. Remove the patron cardnumber and confirm that nothing displays. Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 --- Comment #25 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 159462 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159462&action=edit Bug 35131: Fix preference description and move barcode to bottom of patroninfo Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Failed QA --- Comment #26 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- There is some small stuff adding up here, please follow-up! 1) sysprefs.sql FAIL installer/data/mysql/mandatory/sysprefs.sql FAIL sysprefs_order Not blocker: Sysprefs ShowBarcodeOnPatronRecord is bad placed (see bug 10610) Please fix, but also take a look at the SQL. I believe options and value are switched in sysprefs.sql: INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('ShowBarcodeOnPatronRecord','|0|Code39|COOP2of5|EAN13|EAN8|IATA2of5|Industrial2of5|ITF|Matrix2of5|NW7|QRcode|UPCA|UPCE','0','Show a patron\'s carnumber as a barcode on the patron record','Choice'), 2) .pref + - "Show a " + - pref: ShowBarcodeOnPatronRecord + default: no + choices: + 0: "Don't show" + Code39: "Code39" + COOP2of5: "COOP2of5" + EAN13: "EAN13" + EAN8: "EAN8" + IATA2of5: "IATA2of5" + Industrial2of5: "Industrial2of5" + ITF: "ITF" + Matrix2of5: "Matrix2of5" + NW7: "NW7" + QRcode: "QRcode" + UPCA: "UPCA" + UPCE: "UPCE" + - " barcode of the patron's card number in the sidebar of patron-related pages." The sentence here doesn't work: Show a [Don't show] barcode... Show a [QRcode] barcode... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35131 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|lucas@bywatersolutions.com |koha-bugs@lists.koha-commun | |ity.org -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org