[Bug 40659] New: Allow "My virtual card" format and content to be set using a Notices & Slips template
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Bug ID: 40659 Summary: Allow "My virtual card" format and content to be set using a Notices & Slips template Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: andrew@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org Libraries would like more flexibility in the virtual card shown to patrons via the OPAC. Making that virtual card use a notice template would make is highly customizable. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 hebah@bywatersolutions.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hebah@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|oleonard@myacpl.org |lucas@bywatersolutions.com CC| |lucas@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #1 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 187695 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187695&action=edit Bug 40659: Add new notice VIRTUALCARD -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #2 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 187696 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187696&action=edit Bug 40659: Add ability to customize OPACVirtualCard -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #187696|0 |1 is obsolete| | --- Comment #3 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 187697 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187697&action=edit Bug 40659: Add ability to customize OPACVirtualCard To test: 1. Turn on the OPACVirtualCard. 2. Log in to the OPAC as a patron and go look at your Library card ( opac-virtual-card.pl ) 3. APPLY PATCH, updatedatabase, restart_all 4. Go again at your patron's card on the OPAC ( opac-virtual-card.pl ), it should look exactly the same. 5. Go to Tools > Notices > VIRTUALCARD 6. You should see the default content for the library card. 7. Play around with different variables from borrower, like [% borrower.firstname%] and branches, like [% branch.branchcode %] 8. You can also move around the barcode by using the placeholder value [% my_barcode %]. 9. Put the [% my_barcode %] variable anywhere you want in the notice then go to the sys pref "OPACVirtualCardBarcode". 10. Change to different barcode types and relaod the library card page ( opac-virtual-card.pl ). You should notice the barcode type is being honored. 11. Turn on OPACpatronimages AND patronimages, then upload a patron image for your patron. 12. Use the [% my_image %] variable anywhere you want in the notice to place the patron image. 13. Leaving the [% my_image %] variable as is, turn off OPACpatronimages. 14. Reload the OPAC page, no image should display. 15. Delete the VIRTUALCARD notice. 16. Go back to the OPAC page and with the notice deleted you should see the hardcoded content. ie: the page should look exactly the same as it does without this patch. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #4 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 187706 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187706&action=edit Bug 40659: Close two divs in sample notice -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Andrew Fuerste-Henry <andrew@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=40659 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #187695|0 |1 is obsolete| | --- Comment #5 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 187894 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187894&action=edit Bug 40659: Add new notice VIRTUALCARD Signed-off-by: Marie Martino <martinom43@morainevalley.edu> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #187697|0 |1 is obsolete| | --- Comment #6 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 187895 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187895&action=edit Bug 40659: Add ability to customize OPACVirtualCard To test: 1. Turn on the OPACVirtualCard. 2. Log in to the OPAC as a patron and go look at your Library card ( opac-virtual-card.pl ) 3. APPLY PATCH, updatedatabase, restart_all 4. Go again at your patron's card on the OPAC ( opac-virtual-card.pl ), it should look exactly the same. 5. Go to Tools > Notices > VIRTUALCARD 6. You should see the default content for the library card. 7. Play around with different variables from borrower, like [% borrower.firstname%] and branches, like [% branch.branchcode %] 8. You can also move around the barcode by using the placeholder value [% my_barcode %]. 9. Put the [% my_barcode %] variable anywhere you want in the notice then go to the sys pref "OPACVirtualCardBarcode". 10. Change to different barcode types and relaod the library card page ( opac-virtual-card.pl ). You should notice the barcode type is being honored. 11. Turn on OPACpatronimages AND patronimages, then upload a patron image for your patron. 12. Use the [% my_image %] variable anywhere you want in the notice to place the patron image. 13. Leaving the [% my_image %] variable as is, turn off OPACpatronimages. 14. Reload the OPAC page, no image should display. 15. Delete the VIRTUALCARD notice. 16. Go back to the OPAC page and with the notice deleted you should see the hardcoded content. ie: the page should look exactly the same as it does without this patch. Signed-off-by: Marie Martino <martinom43@morainevalley.edu> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #187706|0 |1 is obsolete| | --- Comment #7 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 187896 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187896&action=edit Bug 40659: Close two divs in sample notice Signed-off-by: Marie Martino <martinom43@morainevalley.edu> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au Status|Signed Off |Failed QA --- Comment #8 from David Cook <dcook@prosentient.com.au> --- (In reply to Andrew Fuerste-Henry from comment #0)
Libraries would like more flexibility in the virtual card shown to patrons via the OPAC. Making that virtual card use a notice template would make is highly customizable.
It would also introduce a security vulnerability. I was weighing up whether to use "Failed QA" or "In Discussion", but I figured I'd opt for the former. I think an argument could be made that other Notes & Slips might already have vulnerabilities in them. I haven't reviewed them in depth. However, for new code, I think that we want to do better - in any case. -- On a related note, I think "HTML Customizations" would make more sense than Notes & Slips for this type of change. That might then dovetail in work that Lucas has done for adding templating to show extra MARC fields on the detail page. I can't recall the bug number but I'm sure Lucas will know it. (Of course, with the "HTML Customizations" we're in a bit of a bind where you can't use the WYSIWYG, you have to use the text editor, but that would be the same thing as Notes & Slips anyway.) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=39860 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #9 from David Cook <dcook@prosentient.com.au> --- (In reply to David Cook from comment #8)
I can't recall the bug number but I'm sure Lucas will know it.
It's bug 39860 which I've added as a See Also -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #10 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- (In reply to David Cook from comment #8)
It would also introduce a security vulnerability.
I was weighing up whether to use "Failed QA" or "In Discussion", but I figured I'd opt for the former.
I think an argument could be made that other Notes & Slips might already have vulnerabilities in them. I haven't reviewed them in depth.
However, for new code, I think that we want to do better - in any case.
Can you provide some further detail on what "do better" would mean to you in this situation? What is it about the approach on 39860 that meets your needs better than the work here? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #11 from David Cook <dcook@prosentient.com.au> --- (In reply to Andrew Fuerste-Henry from comment #10)
(In reply to David Cook from comment #8)
However, for new code, I think that we want to do better - in any case.
Can you provide some further detail on what "do better" would mean to you in this situation? What is it about the approach on 39860 that meets your needs better than the work here?
Yeah for sure. I can DM you with more in-depth info, but here I'll say that bug 39860 uses the HTML::Scrubber to allow a safe range of HTML to be added. I'd add it's not about my needs, but rather the security of Koha as a whole. I'm just quite active in the security space. At some point, I hope to either add some additional coding guidelines or a separate "Safe Coding Guidelines" to complement the existing coding guidelines, which should then make things clearer. Thanks for the question! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Allow "My virtual card" |Allow "My virtual card" |format and content to be |format and content to be |set using a Notices & Slips |customizable |template | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #12 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- (In reply to David Cook from comment #11)
(In reply to Andrew Fuerste-Henry from comment #10)
(In reply to David Cook from comment #8)
However, for new code, I think that we want to do better - in any case.
Can you provide some further detail on what "do better" would mean to you in this situation? What is it about the approach on 39860 that meets your needs better than the work here?
Yeah for sure. I can DM you with more in-depth info, but here I'll say that bug 39860 uses the HTML::Scrubber to allow a safe range of HTML to be added.
I'd add it's not about my needs, but rather the security of Koha as a whole. I'm just quite active in the security space. At some point, I hope to either add some additional coding guidelines or a separate "Safe Coding Guidelines" to complement the existing coding guidelines, which should then make things clearer. Thanks for the question!
Is there any reason those details cannot be shared here fro transparency? If scrubbing the HTML is the only issue then I think this should be left in Notices/Slips where it can be scrubbed. The reason is simple, notices/slips already has a pattern for using placeholder/substitutions which will be need in this bug. I advocate to leave this in notice/slips for that reason. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #13 from David Cook <dcook@prosentient.com.au> --- (In reply to Lucas Gass (lukeg) from comment #12)
Is there any reason those details cannot be shared here fro transparency?
Typically, we'd talk about it in the Koha Security project. I thought folks might like to keep this bug in Koha, but we could move it to Koha Security for a fuller discussion?
If scrubbing the HTML is the only issue then I think this should be left in Notices/Slips where it can be scrubbed. The reason is simple, notices/slips already has a pattern for using placeholder/substitutions which will be need in this bug. I advocate to leave this in notice/slips for that reason.
That's a compelling point. It does have a better UI for that for sure. What about translatability? I was thinking HTML Customizations would be better as people could add in custom labels for each of their different language interfaces? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #14 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> ---
What about translatability? I was thinking HTML Customizations would be better as people could add in custom labels for each of their different language interfaces?
Notices are translatable. There is a TranslateNotices system preference to allow them to be. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #15 from David Cook <dcook@prosentient.com.au> --- (In reply to Lucas Gass (lukeg) from comment #14)
What about translatability? I was thinking HTML Customizations would be better as people could add in custom labels for each of their different language interfaces?
Notices are translatable. There is a TranslateNotices system preference to allow them to be.
Ahh right. That's good. Hmm, conceptually I think it still fits best in HTML Customizations, as it's an HTML Customization. But... I do take your point. Maybe "Notices and slips" needs a re-brand, and to move out of the "Patrons and circulation" area of "Tools". After all, we have the OAI_HARVEST_REPORT and Report templates in "Notices and slips" as well. Huh, SFTP_FAILURE and SFTP_SUCCESS as well. That's interesting. Yeah, all right. I think "Notices and slips" is far enough gone now that it's fine to use it for this purpose. -- So yeah I think if scrubbing is added then it should be all good. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@openfifth.c | |o.uk See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=27334 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=36525 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #16 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- (In reply to David Cook from comment #15)
(In reply to Lucas Gass (lukeg) from comment #14)
What about translatability? I was thinking HTML Customizations would be better as people could add in custom labels for each of their different language interfaces?
Notices are translatable. There is a TranslateNotices system preference to allow them to be.
Ahh right. That's good.
Hmm, conceptually I think it still fits best in HTML Customizations, as it's an HTML Customization. But... I do take your point.
Maybe "Notices and slips" needs a re-brand, and to move out of the "Patrons and circulation" area of "Tools".
After all, we have the OAI_HARVEST_REPORT and Report templates in "Notices and slips" as well. Huh, SFTP_FAILURE and SFTP_SUCCESS as well. That's interesting.
Yeah, all right. I think "Notices and slips" is far enough gone now that it's fine to use it for this purpose.
--
So yeah I think if scrubbing is added then it should be all good.
I did find this already open bug: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36525 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |27334 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27334 [Bug 27334] Add Template Toolkit support to news items -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #17 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- After speaking with Martin I am convinced that this should go in HTML customization, not notice/slips. Going forward notice/slips should only be used for things that are considered "communications". All other customization belong in additional contents. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on|27334 | Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27334 [Bug 27334] Add Template Toolkit support to news items -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |27334 --- Comment #18 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- (In reply to Lucas Gass (lukeg) from comment #17)
After speaking with Martin I am convinced that this should go in HTML customization, not notice/slips.
Going forward notice/slips should only be used for things that are considered "communications". All other customization belong in additional contents.
I changed my mind after reviewing Bug 27334. It is not close to ready for inclusion. It has pretty glaring security issues and doesn't deal with CodeMirrror vs TinyMCE at all. So this needs to stay in Notice/Slips until there is a viable alternative. At which point we'd already have a bunch of things to migrate out of notice/slips. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27334 [Bug 27334] Add Template Toolkit support to news items -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on|27334 | Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27334 [Bug 27334] Add Template Toolkit support to news items -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #19 from David Cook <dcook@prosentient.com.au> --- Yeah it's a really tough one. Some of the things I've found in bug 11583 also make bug 27334 even harder to implement than one might think. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #20 from David Cook <dcook@prosentient.com.au> --- (In reply to David Cook from comment #19)
Yeah it's a really tough one. Some of the things I've found in bug 11583 also make bug 27334 even harder to implement than one might think.
I mean... in our defence... there are whole apps like Wordpress which focus on this sort of thing and show it's easier said than done. Actually even in the case of the block editor... I don't know if Wordpress can even do what we're trying to do here. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #21 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 188357 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188357&action=edit Bug 40659: Add Scrubber profile and scrub the contents of VIRTUALCARD template -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |39860 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39860 [Bug 39860] Add a way to allow for additional/custom MARC fields in the record display -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #22 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- I am making this dependent on Bug 39860 because the 2 scrubber profiles in C4/Scrubber might conflict. The profile called 'opac' is extremely limited. I am wondering if we need some sort of hint/tip on the VIRTUALCARD template page telling the user what HTML are allowed. If I was working without knowledge of what tags are allowed it would be frustrating. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #23 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 188358 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188358&action=edit Bug 40659: Unit tests for new Scrubber profile -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188358|0 |1 is obsolete| | --- Comment #24 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 188359 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188359&action=edit Bug 40659: Unit tests for new Scrubber profile -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=41086 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |41086 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41086 [Bug 41086] Add a helper method to C4/Scrubber to be able to pass allowed tags back to the template -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #25 from David Cook <dcook@prosentient.com.au> --- (In reply to Lucas Gass (lukeg) from comment #22)
The profile called 'opac' is extremely limited. I am wondering if we need some sort of hint/tip on the VIRTUALCARD template page telling the user what HTML are allowed. If I was working without knowledge of what tags are allowed it would be frustrating.
That's a really good point. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #26 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hm. Looking at this: When we remove the default template in favor our a notice template, we cause a regression for updating libraries that are not English users. Especially when handling a lot of libraries with multiple languages that can mean a huge extra work on update. Also: Not all libraries use TranslateNotices and many have this turned off. I feel it would be cleaner to keep the default template, that makes this available for any language installed without putting extra work on the library and have the customization as an optional extra that replaces the default. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #27 from Katrin Fischer <katrin.fischer@bsz-bw.de> ---
I feel it would be cleaner to keep the default template, that makes this available for any language installed without putting extra work on the library and have the customization as an optional extra that replaces the default.
We could think of other solutions, but I am a bit tired of the clean-up we have to do with each update, just because our default is not English and we do provide lots of translations for users in the OPAC. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #28 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- (In reply to Katrin Fischer from comment #26)
Hm. Looking at this:
When we remove the default template in favor our a notice template, we cause a regression for updating libraries that are not English users. Especially when handling a lot of libraries with multiple languages that can mean a huge extra work on update. Also: Not all libraries use TranslateNotices and many have this turned off.
I feel it would be cleaner to keep the default template, that makes this available for any language installed without putting extra work on the library and have the customization as an optional extra that replaces the default.
So, I should remove the DB update and sample notice? And folks will have to add it themselves? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #29 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Right now, all you need to do is switch a system preference to make the feature work. If this is added non-English libraries will have to also add translations. This feels backwards for a template that should be provided translated out of the box. Could we handle it like OpacMaintenance? We have a default in the template, that can be overwritten if needed with your own text/styling. Nothing would change for updating libraries, no disruptions, no extra work. But it would still be customizable if needed. So yes, I suggest removing the default notices and add the standard template back. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #30 from David Cook <dcook@prosentient.com.au> --- I didn't quite understand the conversation for a little while there, but now I think that I agree with Katrin. Keeping the status quo would be good. So the idea would be that this feature allows an opt-in way to customize the format? That sounds good to me. It would probably be useful to provide a sample template somewhere though. Do we put one in the wiki and then link to it from the system preference description? Or maybe we could put a static file or modal somewhere that could be linked to from the system preference description? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #31 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- (In reply to David Cook from comment #30)
I didn't quite understand the conversation for a little while there, but now I think that I agree with Katrin.
Keeping the status quo would be good. So the idea would be that this feature allows an opt-in way to customize the format? That sounds good to me.
It would probably be useful to provide a sample template somewhere though. Do we put one in the wiki and then link to it from the system preference description? Or maybe we could put a static file or modal somewhere that could be linked to from the system preference description?
Makes sense to me. I believe all we have to do is drop the first patch. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #187894|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #32 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- I have obsoleted the first patch, so this should again be ready for testing. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #33 from David Cook <dcook@prosentient.com.au> --- Hmm could we get a rebase? Looks like "Close two divs in sample notice" is causing a problem. -- $ git bz apply 40659 Bug 40659 - Allow "My virtual card" format and content to be customizable 187895 - Bug 40659: Add ability to customize OPACVirtualCard 187896 - Bug 40659: Close two divs in sample notice 188357 - Bug 40659: Add Scrubber profile and scrub the contents of VIRTUALCARD template 188359 - Bug 40659: Unit tests for new Scrubber profile Apply? [(y)es, (n)o, (i)nteractive] y Applying: Bug 40659: Add ability to customize OPACVirtualCard Applying: Bug 40659: Close two divs in sample notice error: sha1 information is lacking or useless (installer/data/mysql/en/mandatory/sample_notices.yml). error: could not build fake ancestor Patch failed at 0001 Bug 40659: Close two divs in sample notice hint: Use 'git am --show-current-patch=diff' to see the failed patch When you have resolved this problem run "git bz apply --continue". If you would prefer to skip this patch, instead run "git bz apply --skip". To restore the original branch and stop patching run "git bz apply --abort". Patch left in /tmp/Bug-40659-Close-two-divs-in-sample-notice-ko46zg6c.patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #187896|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #34 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- (In reply to David Cook from comment #33)
Hmm could we get a rebase? Looks like "Close two divs in sample notice" is causing a problem.
Done! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Failed QA --- Comment #35 from David Cook <dcook@prosentient.com.au> --- It's mostly working but it looks like there might be a problem when using TranslateNotices. I can't get a custom English or Spanish translation to appear. The only thing that works is Default. Also, there's nothing in Koha to tell you how to customize this. I think it would still be a good idea to have a DB update to insert an empty notice for Patrons > VIRTUALCARD. Then a reference to that in the OPACVirtualCard syspref would be a good idea I think. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #36 from David Cook <dcook@prosentient.com.au> --- Comment on attachment 188357 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188357 Bug 40659: Add Scrubber profile and scrub the contents of VIRTUALCARD template Review of attachment 188357: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=40659&attachment=188357) ----------------------------------------------------------------- ::: C4/Scrubber.pm @@ +88,4 @@
}, ], }, + opac => {
Might be a good idea to call this something other than "opac" for the time being. Even "opac_virtual_card" might be good for now. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #37 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Created attachment 189633 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189633&action=edit Bug 40659: Change Scrubber profile name to opac_virtual_card -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Victor Grousset/tuxayo <victor@tuxayo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |victor@tuxayo.net --- Comment #38 from Victor Grousset/tuxayo <victor@tuxayo.net> --- (In reply to Katrin Fischer from comment #26)
When we remove the default template in favor our a notice template, we cause a regression for updating libraries that are not English users. [...] We could think of other solutions, but I am a bit tired of the clean-up we have to do with each update, just because our default is not English and we do provide lots of translations for users in the OPAC. [...] Right now, all you need to do is switch a system preference to make the feature work. If this is added non-English libraries will have to also add translations. This feels backwards for a template that should be provided translated out of the box.
Feels like this should be a guideline to not incur more work for non-english libraries. @Lucas But here, if wanting a default template. Doesn't the dbrev has access to right tools to do it? Get $default_language from tools/letter.pl, use it to get the translated default notice content in /$LANG/mandatory/sample_notices.yml. Is that all to do? Has this already been done? Because it's indeed problematic to have the db_revs only being able to create english stuff when the installer has the same data, and translated. ---- The test plan isn't up to date anymore now that there isn't a default template ------- It's quite confusing to have to create a notice of email type[1]. But I don't know how it could be done not with notices given the current limitations of HTML customizations discussed above. Only notices have the variables required and email is the less bad fit. cool, there is bug 41064 for the confusion about type. [1] And in the patron module but maybe that's just me that was unable to imagine any other place than OPAC. It makes sense after knowing it. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #39 from Victor Grousset/tuxayo <victor@tuxayo.net> --- QA note: code coverage is good ^^ -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Victor Grousset/tuxayo <victor@tuxayo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #187895|0 |1 is obsolete| | --- Comment #40 from Victor Grousset/tuxayo <victor@tuxayo.net> --- Created attachment 193497 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193497&action=edit Bug 40659: Add ability to customize OPACVirtualCard To test: 1. Turn on the OPACVirtualCard. 2. Log in to the OPAC as a patron and go look at your Library card ( opac-virtual-card.pl ) 3. APPLY PATCH, updatedatabase, restart_all 4. Go again at your patron's card on the OPAC ( opac-virtual-card.pl ), it should look exactly the same. 5. Go to Tools > Notices > VIRTUALCARD 6. You should see the default content for the library card. 7. Play around with different variables from borrower, like [% borrower.firstname%] and branches, like [% branch.branchcode %] 8. You can also move around the barcode by using the placeholder value [% my_barcode %]. 9. Put the [% my_barcode %] variable anywhere you want in the notice then go to the sys pref "OPACVirtualCardBarcode". 10. Change to different barcode types and relaod the library card page ( opac-virtual-card.pl ). You should notice the barcode type is being honored. 11. Turn on OPACpatronimages AND patronimages, then upload a patron image for your patron. 12. Use the [% my_image %] variable anywhere you want in the notice to place the patron image. 13. Leaving the [% my_image %] variable as is, turn off OPACpatronimages. 14. Reload the OPAC page, no image should display. 15. Delete the VIRTUALCARD notice. 16. Go back to the OPAC page and with the notice deleted you should see the hardcoded content. ie: the page should look exactly the same as it does without this patch. Signed-off-by: Marie Martino <martinom43@morainevalley.edu> Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Victor Grousset/tuxayo <victor@tuxayo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188357|0 |1 is obsolete| | --- Comment #41 from Victor Grousset/tuxayo <victor@tuxayo.net> --- Created attachment 193498 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193498&action=edit Bug 40659: Add Scrubber profile and scrub the contents of VIRTUALCARD template Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Victor Grousset/tuxayo <victor@tuxayo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188359|0 |1 is obsolete| | --- Comment #42 from Victor Grousset/tuxayo <victor@tuxayo.net> --- Created attachment 193499 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193499&action=edit Bug 40659: Unit tests for new Scrubber profile Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Victor Grousset/tuxayo <victor@tuxayo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189633|0 |1 is obsolete| | --- Comment #43 from Victor Grousset/tuxayo <victor@tuxayo.net> --- Created attachment 193500 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193500&action=edit Bug 40659: Change Scrubber profile name to opac_virtual_card Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Victor Grousset/tuxayo <victor@tuxayo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #44 from Victor Grousset/tuxayo <victor@tuxayo.net> ---
7. Play around with different variables from borrower, like [% borrower.firstname%] and branches, like [% branch.branchcode %]
Also the syntax from the editor works :) (<<borrowers.firstname>>) test plan ok, here is another signoff (well the 1st signoff didn't have the scrubber patches so it's not that valid anymore) ----- scrubbing seems to do it's job. I threw the 225 XSS example here and none worked :D https://raw.githubusercontent.com/minimaxir/big-list-of-naughty-strings/refs... ------- Though there are two `alt=""` empty. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #45 from Victor Grousset/tuxayo <victor@tuxayo.net> --- side note: data-barcode="..." data-barcode-format="..." end up as expected in the HTML sent by the server but then not in the final DOM as seen with the inspector. That's not due to these patches but just letting y'all know about this oddity. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #46 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Victor, I'd like to get this moving again. I can't figure out what is the reason this is currently FQA. Could you please explain? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #47 from Victor Grousset/tuxayo <victor@tuxayo.net> --- The two `alt=""` being empty. Sorry for the unclear phrasing. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=42047 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #48 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- (In reply to Victor Grousset/tuxayo from comment #47)
The two `alt=""` being empty.
Sorry for the unclear phrasing.
I'm sorry, Victor. It is still unclear to me where the two empty alts are. Can you clarify for me? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Bug 40659 depends on bug 39860, which changed state. Bug 39860 Summary: Add a way to allow for additional/custom MARC fields in the record display https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39860 What |Removed |Added ---------------------------------------------------------------------------- Status|Needs documenting |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off --- Comment #49 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- I can't get a clear answer on why this is FQA, so setting back to 'Signed off'. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #50 from David Cook <dcook@prosentient.com.au> --- (In reply to Victor Grousset/tuxayo from comment #47)
The two `alt=""` being empty.
Sorry for the unclear phrasing.
I think Victor might be mistaken about there being two. I can see that there is one `alt=""` in koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-virtual-card.tt but that was already present before these changes. I think that's a separate bug. I'll take a quick look... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #51 from David Cook <dcook@prosentient.com.au> --- (In reply to Victor Grousset/tuxayo from comment #45)
side note: data-barcode="..." data-barcode-format="..." end up as expected in the HTML sent by the server but then not in the final DOM as seen with the inspector. That's not due to these patches but just letting y'all know about this oddity.
That sounded odd, but if you look at koha-tmpl/opac-tmpl/bootstrap/js/barcode-generator.js it's because that SVG gets replaced using the ID and data-* attributes. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #52 from David Cook <dcook@prosentient.com.au> --- Overall, I'm liking where this is going, but there are a few problems. 1. When using Translated Notices, the language selected for the UI is fetched from the patron's "Preferred language for notices", but is inconsistent with what you'd expect from the UI. If you have "Default", you'll see the default regardless of what language you pick in the UI. I propose that we use the UI language for this language for a more consistent look and feel. I'll include that in a patch. 2. If no SVG is provided in a template, it will generate Javascript errors. There should probably always be a SVG, but it's good to handle all scenarios. I'll fix that. 3. When editing the VIRTUALCARD template, it's not clear that "my_barcode" and "my_image" are valid substitutions. I'll fix that. 4. It's not clear that the user needs to go to Tools > Notices and slips, click "New notice", choose "Patrons", and then enter VIRTUALCARD for the Code. I think adding an empty default notice would work well. I'll do that too. 5. It probably wouldn't hurt to reference the Notices and slips from the "OPACVirtualCard" system preference too... I can do that too. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #53 from David Cook <dcook@prosentient.com.au> --- ( You know what would be cool... if in "Notices and slips" you could show a default string as a placeholder for the Content..." ) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193497|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193498|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193499|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193500|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #54 from David Cook <dcook@prosentient.com.au> --- Created attachment 197830 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197830&action=edit Bug 40659: Add ability to customize OPACVirtualCard To test: 1. Turn on the OPACVirtualCard. 2. Log in to the OPAC as a patron and go look at your Library card ( opac-virtual-card.pl ) 3. APPLY PATCH, updatedatabase, restart_all 4. Go again at your patron's card on the OPAC ( opac-virtual-card.pl ), it should look exactly the same. 5. Go to Tools > Notices > VIRTUALCARD 6. You should see the default content for the library card. 7. Play around with different variables from borrower, like [% borrower.firstname%] and branches, like [% branch.branchcode %] 8. You can also move around the barcode by using the placeholder value [% my_barcode %]. 9. Put the [% my_barcode %] variable anywhere you want in the notice then go to the sys pref "OPACVirtualCardBarcode". 10. Change to different barcode types and relaod the library card page ( opac-virtual-card.pl ). You should notice the barcode type is being honored. 11. Turn on OPACpatronimages AND patronimages, then upload a patron image for your patron. 12. Use the [% my_image %] variable anywhere you want in the notice to place the patron image. 13. Leaving the [% my_image %] variable as is, turn off OPACpatronimages. 14. Reload the OPAC page, no image should display. 15. Delete the VIRTUALCARD notice. 16. Go back to the OPAC page and with the notice deleted you should see the hardcoded content. ie: the page should look exactly the same as it does without this patch. Signed-off-by: Marie Martino <martinom43@morainevalley.edu> Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: David Cook <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=40659 --- Comment #55 from David Cook <dcook@prosentient.com.au> --- Created attachment 197831 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197831&action=edit Bug 40659: Add Scrubber profile and scrub the contents of VIRTUALCARD template Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: David Cook <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=40659 --- Comment #56 from David Cook <dcook@prosentient.com.au> --- Created attachment 197832 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197832&action=edit Bug 40659: Unit tests for new Scrubber profile Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: David Cook <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=40659 --- Comment #57 from David Cook <dcook@prosentient.com.au> --- Created attachment 197833 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197833&action=edit Bug 40659: Change Scrubber profile name to opac_virtual_card Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: David Cook <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=40659 --- Comment #58 from David Cook <dcook@prosentient.com.au> --- Created attachment 197834 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197834&action=edit Bug 40659: (follow-up) add empty default VIRTUALCARD notice Also include a reference to the notice template from sysprefs Signed-off-by: David Cook <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=40659 --- Comment #59 from David Cook <dcook@prosentient.com.au> --- Created attachment 197835 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197835&action=edit Bug 40659: (follow-up) include substitutions in the possible options for template Signed-off-by: David Cook <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=40659 --- Comment #60 from David Cook <dcook@prosentient.com.au> --- Created attachment 197836 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197836&action=edit Bug 40659: (follow-up) prevent Javascript errors when SVG missing Signed-off-by: David Cook <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=40659 --- Comment #61 from David Cook <dcook@prosentient.com.au> --- Created attachment 197837 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197837&action=edit Bug 40659: (follow-up) Use UI language for custom virtual card layout Signed-off-by: David Cook <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=40659 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |dcook@prosentient.com.au |y.org | --- Comment #62 from David Cook <dcook@prosentient.com.au> --- So I've added a bunch of follow-ups. I've reset it to "Needs Signoff" just because I have quite a few there. While I think they all make sense, it would be good to get some feedback and a test. With all 8 patches, I think I would be willing to do "Passed QA". -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #63 from David Cook <dcook@prosentient.com.au> --- The only issue I see at the moment is it's not clear what the default layout is for the OPAC virtual card, but... I'm not too worried because everything they could need/want is available in the editor (thanks to that inclusion of the substitutions). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #64 from David Cook <dcook@prosentient.com.au> --- Btw testing the database update should include both "updatedatabase" and "reset_all" -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Andrew Fuerste-Henry <andrew@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=40659 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #197830|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #197831|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #197832|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #197833|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #197834|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #197835|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #197836|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #197837|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #65 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 198021 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198021&action=edit Bug 40659: Add ability to customize OPACVirtualCard To test: 1. Turn on the OPACVirtualCard. 2. Log in to the OPAC as a patron and go look at your Library card ( opac-virtual-card.pl ) 3. APPLY PATCH, updatedatabase, restart_all 4. Go again at your patron's card on the OPAC ( opac-virtual-card.pl ), it should look exactly the same. 5. Go to Tools > Notices > VIRTUALCARD 6. You should see the default content for the library card. 7. Play around with different variables from borrower, like [% borrower.firstname%] and branches, like [% branch.branchcode %] 8. You can also move around the barcode by using the placeholder value [% my_barcode %]. 9. Put the [% my_barcode %] variable anywhere you want in the notice then go to the sys pref "OPACVirtualCardBarcode". 10. Change to different barcode types and relaod the library card page ( opac-virtual-card.pl ). You should notice the barcode type is being honored. 11. Turn on OPACpatronimages AND patronimages, then upload a patron image for your patron. 12. Use the [% my_image %] variable anywhere you want in the notice to place the patron image. 13. Leaving the [% my_image %] variable as is, turn off OPACpatronimages. 14. Reload the OPAC page, no image should display. 15. Delete the VIRTUALCARD notice. 16. Go back to the OPAC page and with the notice deleted you should see the hardcoded content. ie: the page should look exactly the same as it does without this patch. Signed-off-by: Marie Martino <martinom43@morainevalley.edu> Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #66 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 198022 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198022&action=edit Bug 40659: Add Scrubber profile and scrub the contents of VIRTUALCARD template Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #67 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 198023 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198023&action=edit Bug 40659: Unit tests for new Scrubber profile Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #68 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 198024 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198024&action=edit Bug 40659: Change Scrubber profile name to opac_virtual_card Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #69 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 198025 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198025&action=edit Bug 40659: (follow-up) add empty default VIRTUALCARD notice Also include a reference to the notice template from sysprefs Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #70 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 198026 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198026&action=edit Bug 40659: (follow-up) include substitutions in the possible options for template Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #71 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 198027 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198027&action=edit Bug 40659: (follow-up) prevent Javascript errors when SVG missing Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 --- Comment #72 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 198028 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198028&action=edit Bug 40659: (follow-up) Use UI language for custom virtual card layout Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA --- Comment #73 from David Cook <dcook@prosentient.com.au> --- All right I think that should be good to go to Passed QA now -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)| |26.05.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=40659 --- Comment #74 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Nice work everyone! Pushed to main for 26.05 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659 Jacob O'Mara <jacob.omara@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to main |Needs documenting --- Comment #75 from Jacob O'Mara <jacob.omara@openfifth.co.uk> --- This will not be backported to 25.11.x due to it being deemed an enhancement or a dependancy not being met -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org