[Bug 26777] New: Give the user the option to display their patron card barcode from the OPAC
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Bug ID: 26777 Summary: Give the user the option to display their patron card barcode from the OPAC Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: martin.renvoize@ptfs-europe.com QA Contact: testopia@bugs.koha-community.org In this modern age, people are moving away from carrying cards.. but they nearly always have their smart phone to hand. It would be nice to be able to display your barcode for scanning at self service machines directly on your phone. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |26692 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26692 [Bug 26692] Add barcode image generator service for OPAC -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Academy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Magnus Enger <magnus@libriotech.no> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |magnus@libriotech.no --- Comment #1 from Magnus Enger <magnus@libriotech.no> --- +1 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Barbara Johnson <barbara.johnson@bedfordtx.gov> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |barbara.johnson@bedfordtx.g | |ov --- Comment #2 from Barbara Johnson <barbara.johnson@bedfordtx.gov> --- Our patrons would love this. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Lisette Scheer <lisetteslatah@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lisetteslatah@gmail.com --- Comment #3 from Lisette Scheer <lisetteslatah@gmail.com> --- Agreed, this would be useful. I know some websites can tell if you are on mobile and display a link or button only if you are. That could be handy since there wouldn't be a real use case for using the barcode on a PC? Also if we could make it so it ups the screen brightness (not sure if possible just in mobile browser) but most people don't seem to keep their phones at high enough brightness to be read by a barcode scanner. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #4 from Owen Leonard <oleonard@myacpl.org> --- Here's what I tried today: https://zivotdesign.com/p/view.php?p=16143692116112 Using https://github.com/lindell/JsBarcode I think we'd have to create a system preference for defining what card type to use (CODE39, Codabar, UPC, etc). The selection could also be used to set the default in the patron card creator. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #5 from Owen Leonard <oleonard@myacpl.org> --- Looks like this tool has more options, including all the options we offer in the patron card creator: https://github.com/metafloor/bwip-js -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |27825 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27825 [Bug 27825] Add preference for choosing the default format for patron barcodes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 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=26777 --- Comment #6 from Sally <sally.healey@cheshiresharedservices.gov.uk> --- +1 - really interested in this development. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #7 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Is this something you're still experimenting with Owen? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #8 from Owen Leonard <oleonard@myacpl.org> --- (In reply to Martin Renvoize from comment #7)
Is this something you're still experimenting with Owen?
I started working on Bug 27825 - Add preference for choosing the default format for patron barcodes - and got stalled. I don't recall what the sticking point was or if I just got redirected. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED --- Comment #9 from David Cook <dcook@prosentient.com.au> --- Going to mark this one as a duplicate of bug 26692... *** This bug has been marked as a duplicate of bug 26692 *** -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE |--- --- Comment #10 from David Cook <dcook@prosentient.com.au> --- Actually, I take that back, as that one is a bit too generic still, despite it listing the same use case... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEW -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=7915 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #11 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- https://codelabs.developers.google.com/add-to-wallet-android#0 is interesting too -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #12 from David Cook <dcook@prosentient.com.au> --- (In reply to Martin Renvoize from comment #11)
https://codelabs.developers.google.com/add-to-wallet-android#0 is interesting too
Ohhh very interesting. That would be a very cool feature. I think I'll raise a ticket for that. It's not something most of our libraries would use, but as a library user I would love to have this... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #13 from David Cook <dcook@prosentient.com.au> --- See Bug 25332 for talk about adding a library card to a smart phone wallet -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Michal Denar <black23@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |black23@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |samalau@gmail.com --- Comment #14 from David Cook <dcook@prosentient.com.au> --- *** Bug 37118 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Roman Dolny <roman.dolny@jezuici.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |roman.dolny@jezuici.pl --- Comment #15 from Roman Dolny <roman.dolny@jezuici.pl> --- It would by nice to have a "Barcode" tab in OPAC accout with QR image generated from cardnumber. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #16 from David Cook <dcook@prosentient.com.au> --- (In reply to Roman Dolny from comment #15)
It would by nice to have a "Barcode" tab in OPAC accout with QR image generated from cardnumber.
I've accomplished something like this with a Koha plugin as I note on bug 37118. I'll have to look at sharing that plugin publicly... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #17 from Sam Lau <samalau@gmail.com> --- Created attachment 167969 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167969&action=edit Bug 26777: Added new sys pref 'OPACVirtualCard' -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #18 from Sam Lau <samalau@gmail.com> --- Created attachment 167970 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167970&action=edit Bug 26777: Add JsBarcode library to Koha Adds necessary JS code to utilize JsBarcode -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #19 from Sam Lau <samalau@gmail.com> --- Created attachment 167971 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167971&action=edit Bug 26777: Add barcode generation to OPAC using JsBarcode -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #20 from Sam Lau <samalau@gmail.com> --- Created attachment 167972 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167972&action=edit Bug 26777: Add new patron page 'My Virtual Card' -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #21 from Sam Lau <samalau@gmail.com> --- wip -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #22 from Lucas Gass <lucas@bywatersolutions.com> --- Created attachment 167976 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167976&action=edit Bug 26777: (follow-up) Adjust script, template, and CSS -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #23 from Lucas Gass <lucas@bywatersolutions.com> --- Created attachment 167977 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167977&action=edit Bug 26777: (follow-up) Fix file permssions and tidy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com Status|NEW |ASSIGNED Assignee|oleonard@myacpl.org |samalau@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #24 from Sam Lau <samalau@gmail.com> --- Created attachment 168029 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168029&action=edit Bug 26777: (Follow-up) Add new system preference 'OPACVirtualCardBarcode' -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #25 from Sam Lau <samalau@gmail.com> --- Created attachment 168030 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168030&action=edit Bug 26777: (Follow-up) Allow ability to select diffferent barcode types -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #26 from David Cook <dcook@prosentient.com.au> --- I was just skimming through the patches, and this sounds pretty good I think. Excited to take a look when you're ready for a sign off. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |martin.renvoize@ptfs-europe |y.org |.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Sam Lau <samalau@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167969|0 |1 is obsolete| | Attachment #167970|0 |1 is obsolete| | Attachment #167971|0 |1 is obsolete| | Attachment #167972|0 |1 is obsolete| | Attachment #167976|0 |1 is obsolete| | Attachment #167977|0 |1 is obsolete| | Attachment #168029|0 |1 is obsolete| | Attachment #168030|0 |1 is obsolete| | --- Comment #27 from Sam Lau <samalau@gmail.com> --- Created attachment 168165 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168165&action=edit Bug 26777: Added new sys pref 'OPACVirtualCard' -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #28 from Sam Lau <samalau@gmail.com> --- Created attachment 168166 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168166&action=edit Bug 26777: Add barcode generator file and initial styling -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #29 from Sam Lau <samalau@gmail.com> --- Created attachment 168167 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168167&action=edit Bug 26777: Add new patron page 'My Virtual Card' -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #30 from Sam Lau <samalau@gmail.com> --- Created attachment 168168 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168168&action=edit Bug 26777: (follow-up) Adjust script, template, and CSS -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #31 from Sam Lau <samalau@gmail.com> --- Created attachment 168169 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168169&action=edit Bug 26777: (follow-up) Fix file permssions and tidy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #32 from Sam Lau <samalau@gmail.com> --- Created attachment 168170 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168170&action=edit Bug 26777: Add bwip-js library to Koha bwip-js is the chosen library for generating and displaying barcodes in the OPAC. It allows for many different barcode types and customizable settings. This patch created a new directory and file for the js library code to live as well as updating the about.tt to give credit. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #33 from Sam Lau <samalau@gmail.com> --- Created attachment 168171 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168171&action=edit Bug 26777: Add new system preference 'OPACVirtualCardBarcode' -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #34 from Sam Lau <samalau@gmail.com> --- Created attachment 168172 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168172&action=edit Bug 26777: Allow ability to select diffferent barcode types These cumalation of patches introduce a new patron page on the OPAC: "My virtual card." This page and its contents are reliant on the system preferences 'OPACVirtualCard' and 'OPACVirtualCardBarcode'. OPACVirutalCard determines whether the virtual card page is even displayed on the OPAC whereas OPACVirtualCardBarcode selects the type of barcode to display on this page (if page is displayed). Currently, the virtual card page consits of a patron image (if available), the patron's barcode, and the library name. A potential follow up would be to allow customization of this page. The barcode generation is handled by a new library bwip-js. To test: 1) Apply patch, updatedatabase, restart_all, build yarn 2) In system preferences, search for 'OPACVirtualCard'. Both this and the barcode sys. pref should show up with the same search. Notice they are dependent on one another. The default for the first pref should be "Don't allow". Leave this as is for now. 3) Leave the preference page open and log into the OPAC. Visit the user page. Notice that the navbar on the left consiting of 'Summary', 'Charges', etc. looks the same. 4) Go back to the sys. pref page and set the OPACVirtualCard to "Allow" 5) Also in the sys. prefs, make a search for "patron images" and set 'OPACpatronimages' to "Show" and 'patronimages' to allow. 6) Visit the patron's page that you used to sign in to the OPAC. Add a patron image if there is not one already. 7) Now, edit their details and change their card number to '00012345678905' 8) Venture back to the OPAC patron page. Refresh this and you should see a new "My Virtual Card" page at the bottom. 9) Click this page and you should see a new virtual card for you patron, consiting of their image, a barcode, and their library. 10) Open the dev tools for your browser and switch to vieiwing in mobile mode. Make sure the card looks good. This would likely be the most common use case. 11) Switch back to a system preference page and try playing around with the 'OPACVirtualCardBarcode'. Note that these changes affect the type of barcode that is display in the virtual card page. If you selected a barcode format that is incompatible, an error message should display in the virtual card page. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Sam Lau <samalau@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Laura Escamilla <Laura.escamilla@bywatersolutions.com> 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=26777 Laura Escamilla <Laura.escamilla@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168165|0 |1 is obsolete| | --- Comment #35 from Laura Escamilla <Laura.escamilla@bywatersolutions.com> --- Created attachment 168289 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168289&action=edit Bug 26777: Added new sys pref 'OPACVirtualCard' Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Laura Escamilla <Laura.escamilla@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168166|0 |1 is obsolete| | --- Comment #36 from Laura Escamilla <Laura.escamilla@bywatersolutions.com> --- Created attachment 168290 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168290&action=edit Bug 26777: Add barcode generator file and initial styling Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Laura Escamilla <Laura.escamilla@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168167|0 |1 is obsolete| | --- Comment #37 from Laura Escamilla <Laura.escamilla@bywatersolutions.com> --- Created attachment 168291 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168291&action=edit Bug 26777: Add new patron page 'My Virtual Card' Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Laura Escamilla <Laura.escamilla@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168168|0 |1 is obsolete| | --- Comment #38 from Laura Escamilla <Laura.escamilla@bywatersolutions.com> --- Created attachment 168292 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168292&action=edit Bug 26777: (follow-up) Adjust script, template, and CSS Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Laura Escamilla <Laura.escamilla@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168169|0 |1 is obsolete| | --- Comment #39 from Laura Escamilla <Laura.escamilla@bywatersolutions.com> --- Created attachment 168293 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168293&action=edit Bug 26777: (follow-up) Fix file permssions and tidy Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Laura Escamilla <Laura.escamilla@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168170|0 |1 is obsolete| | --- Comment #40 from Laura Escamilla <Laura.escamilla@bywatersolutions.com> --- Created attachment 168294 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168294&action=edit Bug 26777: Add bwip-js library to Koha bwip-js is the chosen library for generating and displaying barcodes in the OPAC. It allows for many different barcode types and customizable settings. This patch created a new directory and file for the js library code to live as well as updating the about.tt to give credit. Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Laura Escamilla <Laura.escamilla@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168171|0 |1 is obsolete| | --- Comment #41 from Laura Escamilla <Laura.escamilla@bywatersolutions.com> --- Created attachment 168295 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168295&action=edit Bug 26777: Add new system preference 'OPACVirtualCardBarcode' Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Laura Escamilla <Laura.escamilla@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168172|0 |1 is obsolete| | --- Comment #42 from Laura Escamilla <Laura.escamilla@bywatersolutions.com> --- Created attachment 168296 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168296&action=edit Bug 26777: Allow ability to select diffferent barcode types These cumalation of patches introduce a new patron page on the OPAC: "My virtual card." This page and its contents are reliant on the system preferences 'OPACVirtualCard' and 'OPACVirtualCardBarcode'. OPACVirutalCard determines whether the virtual card page is even displayed on the OPAC whereas OPACVirtualCardBarcode selects the type of barcode to display on this page (if page is displayed). Currently, the virtual card page consits of a patron image (if available), the patron's barcode, and the library name. A potential follow up would be to allow customization of this page. The barcode generation is handled by a new library bwip-js. To test: 1) Apply patch, updatedatabase, restart_all, build yarn 2) In system preferences, search for 'OPACVirtualCard'. Both this and the barcode sys. pref should show up with the same search. Notice they are dependent on one another. The default for the first pref should be "Don't allow". Leave this as is for now. 3) Leave the preference page open and log into the OPAC. Visit the user page. Notice that the navbar on the left consiting of 'Summary', 'Charges', etc. looks the same. 4) Go back to the sys. pref page and set the OPACVirtualCard to "Allow" 5) Also in the sys. prefs, make a search for "patron images" and set 'OPACpatronimages' to "Show" and 'patronimages' to allow. 6) Visit the patron's page that you used to sign in to the OPAC. Add a patron image if there is not one already. 7) Now, edit their details and change their card number to '00012345678905' 8) Venture back to the OPAC patron page. Refresh this and you should see a new "My Virtual Card" page at the bottom. 9) Click this page and you should see a new virtual card for you patron, consiting of their image, a barcode, and their library. 10) Open the dev tools for your browser and switch to vieiwing in mobile mode. Make sure the card looks good. This would likely be the most common use case. 11) Switch back to a system preference page and try playing around with the 'OPACVirtualCardBarcode'. Note that these changes affect the type of barcode that is display in the virtual card page. If you selected a barcode format that is incompatible, an error message should display in the virtual card page. Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Sam Lau <samalau@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on|26692, 27825 | Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26692 [Bug 26692] Add barcode image generator service for OPAC https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27825 [Bug 27825] Add preference for choosing the default format for patron barcodes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kyle@bywatersolutions.com --- Comment #43 from Kyle M Hall <kyle@bywatersolutions.com> --- *** Bug 26692 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |oleonard@myacpl.org --- Comment #44 from Owen Leonard <oleonard@myacpl.org> --- *** Bug 27825 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168289|0 |1 is obsolete| | --- Comment #45 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 169742 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169742&action=edit Bug 26777: Added new sys pref 'OPACVirtualCard' Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168290|0 |1 is obsolete| | --- Comment #46 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 169743 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169743&action=edit Bug 26777: Add barcode generator file and initial styling Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168291|0 |1 is obsolete| | --- Comment #47 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 169744 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169744&action=edit Bug 26777: Add new patron page 'My Virtual Card' Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168292|0 |1 is obsolete| | --- Comment #48 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 169745 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169745&action=edit Bug 26777: (follow-up) Adjust script, template, and CSS Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168293|0 |1 is obsolete| | --- Comment #49 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 169746 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169746&action=edit Bug 26777: (follow-up) Fix file permssions and tidy Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168294|0 |1 is obsolete| | --- Comment #50 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 169747 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169747&action=edit Bug 26777: Add bwip-js library to Koha bwip-js is the chosen library for generating and displaying barcodes in the OPAC. It allows for many different barcode types and customizable settings. This patch created a new directory and file for the js library code to live as well as updating the about.tt to give credit. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168295|0 |1 is obsolete| | --- Comment #51 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 169748 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169748&action=edit Bug 26777: Add new system preference 'OPACVirtualCardBarcode' Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #168296|0 |1 is obsolete| | --- Comment #52 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 169749 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169749&action=edit Bug 26777: Allow ability to select diffferent barcode types These cumalation of patches introduce a new patron page on the OPAC: "My virtual card." This page and its contents are reliant on the system preferences 'OPACVirtualCard' and 'OPACVirtualCardBarcode'. OPACVirutalCard determines whether the virtual card page is even displayed on the OPAC whereas OPACVirtualCardBarcode selects the type of barcode to display on this page (if page is displayed). Currently, the virtual card page consits of a patron image (if available), the patron's barcode, and the library name. A potential follow up would be to allow customization of this page. The barcode generation is handled by a new library bwip-js. To test: 1) Apply patch, updatedatabase, restart_all, build yarn 2) In system preferences, search for 'OPACVirtualCard'. Both this and the barcode sys. pref should show up with the same search. Notice they are dependent on one another. The default for the first pref should be "Don't allow". Leave this as is for now. 3) Leave the preference page open and log into the OPAC. Visit the user page. Notice that the navbar on the left consiting of 'Summary', 'Charges', etc. looks the same. 4) Go back to the sys. pref page and set the OPACVirtualCard to "Allow" 5) Also in the sys. prefs, make a search for "patron images" and set 'OPACpatronimages' to "Show" and 'patronimages' to allow. 6) Visit the patron's page that you used to sign in to the OPAC. Add a patron image if there is not one already. 7) Now, edit their details and change their card number to '00012345678905' 8) Venture back to the OPAC patron page. Refresh this and you should see a new "My Virtual Card" page at the bottom. 9) Click this page and you should see a new virtual card for you patron, consiting of their image, a barcode, and their library. 10) Open the dev tools for your browser and switch to vieiwing in mobile mode. Make sure the card looks good. This would likely be the most common use case. 11) Switch back to a system preference page and try playing around with the 'OPACVirtualCardBarcode'. Note that these changes affect the type of barcode that is display in the virtual card page. If you selected a barcode format that is incompatible, an error message should display in the virtual card page. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Martin Renvoize <martin.renvoize@ptfs-europe.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=26777 --- Comment #53 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Nice to see this moved along. Passing QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=35402 --- Comment #54 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- This needs a rebase, probably because of bug 35402. Please fix, it will appear back on top of my queue then. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Sam Lau <samalau@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Sam Lau <samalau@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #169742|0 |1 is obsolete| | --- Comment #55 from Sam Lau <samalau@gmail.com> --- Created attachment 170667 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=170667&action=edit Bug 26777: Added new sys pref 'OPACVirtualCard' Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Sam Lau <samalau@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #169743|0 |1 is obsolete| | --- Comment #56 from Sam Lau <samalau@gmail.com> --- Created attachment 170668 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=170668&action=edit Bug 26777: Add barcode generator file and initial styling Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Sam Lau <samalau@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #169744|0 |1 is obsolete| | --- Comment #57 from Sam Lau <samalau@gmail.com> --- Created attachment 170669 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=170669&action=edit Bug 26777: Add new patron page 'My Virtual Card' Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Sam Lau <samalau@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #169745|0 |1 is obsolete| | --- Comment #58 from Sam Lau <samalau@gmail.com> --- Created attachment 170670 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=170670&action=edit Bug 26777: (follow-up) Adjust script, template, and CSS Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Sam Lau <samalau@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #169746|0 |1 is obsolete| | --- Comment #59 from Sam Lau <samalau@gmail.com> --- Created attachment 170671 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=170671&action=edit Bug 26777: (follow-up) Fix file permssions and tidy Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Sam Lau <samalau@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #169747|0 |1 is obsolete| | --- Comment #60 from Sam Lau <samalau@gmail.com> --- Created attachment 170672 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=170672&action=edit Bug 26777: Add bwip-js library to Koha bwip-js is the chosen library for generating and displaying barcodes in the OPAC. It allows for many different barcode types and customizable settings. This patch created a new directory and file for the js library code to live as well as updating the about.tt to give credit. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Sam Lau <samalau@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #169748|0 |1 is obsolete| | --- Comment #61 from Sam Lau <samalau@gmail.com> --- Created attachment 170673 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=170673&action=edit Bug 26777: Add new system preference 'OPACVirtualCardBarcode' Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Sam Lau <samalau@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #169749|0 |1 is obsolete| | --- Comment #62 from Sam Lau <samalau@gmail.com> --- Created attachment 170674 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=170674&action=edit Bug 26777: Allow ability to select diffferent barcode types These cumalation of patches introduce a new patron page on the OPAC: "My virtual card." This page and its contents are reliant on the system preferences 'OPACVirtualCard' and 'OPACVirtualCardBarcode'. OPACVirutalCard determines whether the virtual card page is even displayed on the OPAC whereas OPACVirtualCardBarcode selects the type of barcode to display on this page (if page is displayed). Currently, the virtual card page consits of a patron image (if available), the patron's barcode, and the library name. A potential follow up would be to allow customization of this page. The barcode generation is handled by a new library bwip-js. To test: 1) Apply patch, updatedatabase, restart_all, build yarn 2) In system preferences, search for 'OPACVirtualCard'. Both this and the barcode sys. pref should show up with the same search. Notice they are dependent on one another. The default for the first pref should be "Don't allow". Leave this as is for now. 3) Leave the preference page open and log into the OPAC. Visit the user page. Notice that the navbar on the left consiting of 'Summary', 'Charges', etc. looks the same. 4) Go back to the sys. pref page and set the OPACVirtualCard to "Allow" 5) Also in the sys. prefs, make a search for "patron images" and set 'OPACpatronimages' to "Show" and 'patronimages' to allow. 6) Visit the patron's page that you used to sign in to the OPAC. Add a patron image if there is not one already. 7) Now, edit their details and change their card number to '00012345678905' 8) Venture back to the OPAC patron page. Refresh this and you should see a new "My Virtual Card" page at the bottom. 9) Click this page and you should see a new virtual card for you patron, consiting of their image, a barcode, and their library. 10) Open the dev tools for your browser and switch to vieiwing in mobile mode. Make sure the card looks good. This would likely be the most common use case. 11) Switch back to a system preference page and try playing around with the 'OPACVirtualCardBarcode'. Note that these changes affect the type of barcode that is display in the virtual card page. If you selected a barcode format that is incompatible, an error message should display in the virtual card page. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|Academy |additional_work_needed, | |release-notes-needed --- Comment #63 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Please verify my changes once pushed and reply to 1) :) 1) Naming and positioning This is a question: You named the tab "My virtual card", but that appears very general. What about we named it "Library card" or "Virtual library card" instead? Tbh I struggle a bit with the 'virtual and the "my" that we once had removed from all the other tabs. Also, right now the tab appears last in the patron's account, should we move it to be first or second? 2) Capitalization - My Virtual Card => My virtual card I've fixed this in a follow-up patch. 3) Translatability This is untranslatable: + document.getElementById('barcode-container').innerHTML = `<p><strong>Error: </strong>${errorMessage}</p>`; Also, strings should always be enclosed using double quotes. That's so that languages using single quotes like French don't break the JS by accident. See: JS2: Enabling translation of language strings in embedded JavaScript I attached a follow-up patch. 4) Missing CSS file This is not right, maybe related to the Bootstrap 5 change: koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-virtual-card.tt: [% Asset.css("css/src/opac.css") | $raw %] This file doesn't exist. Updated to: css/opac.css in a follow-up patch. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)| |24.11.00 released in| | Status|Passed QA |Pushed to main -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #64 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Pushed for 24.11! Well done everyone, thank you! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #65 from David Cook <dcook@prosentient.com.au> --- I wanted to thoroughly test this but ran out of time chasing a different bug... Just wanted to point out that you almost never want to use innerHTML() for setting a value. It's a good way to accidentally introduce a XSS vulnerability. Look at OWASP documents for preventing Cross-Site Scripting (XSS). In this case, I think that you're mostly, as it seems unlikely someone could slip XSS in through the SVG. I'm more worried about the error message, which appears to be broken anyway... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |37742 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37742 [Bug 37742] My virtual card message not showing -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #66 from David Cook <dcook@prosentient.com.au> --- (In reply to Katrin Fischer from comment #63)
3) Translatability
This is untranslatable: + document.getElementById('barcode-container').innerHTML = `<p><strong>Error: </strong>${errorMessage}</p>`;
Also, strings should always be enclosed using double quotes. That's so that languages using single quotes like French don't break the JS by accident. See: JS2: Enabling translation of language strings in embedded JavaScript
So this was using a template literal, which I thought the translations could use? Personally, I quite like template literals, but using innerHTML here was a good way to potentially introduce XSS via the errorMessage... (although it would need to come from the third party Javascript in this case which is probably unlikely but still better to be safe than sorry...)
I attached a follow-up patch.
The follow-up patch accidentally broke the errorMessage display, since it retained the template literal syntax for errorMessage. See bug 37742. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #67 from David Cook <dcook@prosentient.com.au> --- (In reply to David Cook from comment #66)
The follow-up patch accidentally broke the errorMessage display, since it retained the template literal syntax for errorMessage. See bug 37742.
Btw, while I fix this in bug 37742, I don't think that we should actually show the error message to patrons. If we're going to show an error message, it would probably be better to say "Failed to generate barcode" or something like that. A user doesn't need to see "Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%" -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 --- Comment #68 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to David Cook from comment #67)
(In reply to David Cook from comment #66)
The follow-up patch accidentally broke the errorMessage display, since it retained the template literal syntax for errorMessage. See bug 37742.
Btw, while I fix this in bug 37742, I don't think that we should actually show the error message to patrons. If we're going to show an error message, it would probably be better to say "Failed to generate barcode" or something like that.
A user doesn't need to see "Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"
Sorry for breaking it. :( I did check for JS errors, and didn't see any, but that was not enough. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|additional_work_needed | Severity|enhancement |new feature --- Comment #69 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Fixed on 37742 I believe. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to main |Needs documenting -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This adds the option to release notes| |display the patron's | |library card as a barcode | |within their library | |account, so it can be | |scanned at the circulation | |desk or a self check | |machine. | |The feature can be | |activated using the new | |system preference | |`OPACVirtualCard`. Keywords|release-notes-needed | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |38791 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38791 [Bug 38791] Update virtual card templates to follow template standards -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |38792 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38792 [Bug 38792] Move "My virtual card" tab and maybe re-label it -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Aude Charillon <aude.charillon@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Documentation| |Aude Charillon contact| | CC| |aude.charillon@openfifth.co | |.uk -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Aude Charillon <aude.charillon@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |39565 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39565 [Bug 39565] OPACVirtualCard system preferences should not be in Suggestions section -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Aude Charillon <aude.charillon@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Documentation| |https://gitlab.com/koha-com submission| |munity/koha-manual/-/merge_ | |requests/1027 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26777 Aude Charillon <aude.charillon@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs documenting |RESOLVED Resolution|--- |FIXED --- Comment #70 from Aude Charillon <aude.charillon@openfifth.co.uk> --- Added to the Manual. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org