Description
Lucas Gass (lukeg)
2023-10-23 14:41:31 UTC
Created attachment 157674 [details] [review] 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. Created attachment 157675 [details] [review] Bug 35131: Add new system preference and DBRev Created attachment 157676 [details] [review] 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. 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" ? 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. 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! (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. (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... (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? 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. 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 Thanks Dave and Ed. Those explanations were really helpful :). 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." (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. Created attachment 157936 [details] [review] Bug 35131: Fix preference description and move barcode to bottom of patroninfo 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 + '">'); } }); (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. 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. Created attachment 158242 [details] [review] Bug 35131: Add new system preference and DBRev Signed-off-by: Owen Leonard <oleonard@myacpl.org> Created attachment 158243 [details] [review] 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> Created attachment 158244 [details] [review] Bug 35131: Fix preference description and move barcode to bottom of patroninfo Signed-off-by: Owen Leonard <oleonard@myacpl.org> Created attachment 159459 [details] [review] 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> Created attachment 159460 [details] [review] 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> Created attachment 159461 [details] [review] 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> Created attachment 159462 [details] [review] 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> 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... |