[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Martin Renvoize changed: What|Removed |Added Blocks||29490 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29490 [Bug 29490] Preview for more notices -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Martin Renvoize changed: What|Removed |Added Keywords|release-notes-needed| -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #68 from David Cook --- (In reply to David Cook from comment #67) > Going to double-check but this might be broken in 19.11... I must've been mistaken as it looks fine now. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 David Cook changed: What|Removed |Added CC||dc...@prosentient.com.au --- Comment #67 from David Cook --- Going to double-check but this might be broken in 19.11... -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druart changed: What|Removed |Added See Also||https://bugs.koha-community ||.org/bugzilla3/show_bug.cgi ||?id=21829 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Nick Clemenschanged: What|Removed |Added Resolution|--- |FIXED Status|Pushed to Master|RESOLVED --- Comment #66 from Nick Clemens --- Enhancement, not backported for 17.11.x -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added Status|Passed QA |Pushed to Master --- Comment #65 from Jonathan Druart --- Pushed to master for 18.05, thanks to everybody involved! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added Keywords||release-notes-needed -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #60 from Josef Moravec--- Created attachment 74030 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=74030=edit Bug 17981: Better error handling Signed-off-by: Kyle M Hall Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #61 from Josef Moravec--- Created attachment 74031 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=74031=edit Bug 17981: Move the divs to the top of the modal Signed-off-by: Kyle M Hall Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #64 from Josef Moravec--- Created attachment 74034 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=74034=edit Bug 17981: (QA follow-up) Fix and update pod in svc/letters/get Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #63 from Josef Moravec--- Created attachment 74033 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=74033=edit Bug 17981: Do not crash if the template is already using TT syntax Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #59 from Josef Moravec--- Created attachment 74029 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=74029=edit Bug 17981: Add a preview mode for notice templates This patch is a first step to provide a preview mode for notice templates. CHECKIN, CHECKOUT and HOLD_SLIP are supported so far. Maybe more, but I have not tested yet and the interface will not allow you to generate the preview. The idea is to provide an idea of how will render the messages generated from a notice template. A new "Preview" button is added close to each textarea on the editing notice templates view. For each notice template code (letter_code), we will need some input data to produce the preview. For instance, for CHECKIN we need an barcode. From the barcode we can guess all the other data. For CHECKOUT we will need the borrowernumber and the barcode. Note that the way to enter the data for the preview is not really user-friendly, for CHECKOUT you will have to fill 'borrowernumber|barcode', but the placeholder will help you to know how and what to fill. In the modal window, you will see 4 blocks: 1/ the content of the letter (with the placeholds << >>) 2/ the generated message (with the data filled) 3/ if the letter contained historical syntax markers, the screen will try to generate a notice template using the TT syntax 4/ the generated message from this TT syntax => You will be able to compare the 2 generated messages. What is the goal of this first patchset: - Show this first POC and get feedback from other developpers - Add a way to easily visualise the differences between the 2 syntaxes - Confort users with the TT syntax and the migration step from the historical syntax. I'd like to get opinions before going further. The possibilities: - Mock data to get fully working generated messages for any notice templates. For instance, for CHECKIN and CHECKOUT, the item is not checked in/out yet. So we cannot access the issue's information. (I have no idea how to do that) - Browse the data to get the ones we want to use for the preview (big). Signed-off-by: Kyle M Hall Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #62 from Josef Moravec--- Created attachment 74032 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=74032=edit Bug 17981: Remove uneeded module JS var As we only support CHECKIN and CHECKOUT for now, we do not need this module variable. It may be useful to re-add it later. Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Josef Moravecchanged: What|Removed |Added Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Josef Moravecchanged: What|Removed |Added Attachment #73201|0 |1 is obsolete|| Attachment #73202|0 |1 is obsolete|| Attachment #73949|0 |1 is obsolete|| Attachment #73950|0 |1 is obsolete|| Attachment #73951|0 |1 is obsolete|| Attachment #73952|0 |1 is obsolete|| Attachment #74025|0 |1 is obsolete|| --- Comment #57 from Josef Moravec --- Created attachment 74027 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=74027=edit Bug 17981: Move svc/letters to svc/letters/get To allow another script under svc/letters Signed-off-by: Kyle M Hall Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #58 from Josef Moravec--- Created attachment 74028 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=74028=edit Bug 17981: Add a 'letter' param to GetPreparedLetter This will allow us to call GetPreparedLetter with a letter content that does not exist in the DB Signed-off-by: Kyle M Hall Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added Status|Failed QA |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #56 from Jonathan Druart--- Created attachment 74025 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=74025=edit Bug 17981: Do not crash if the template is already using TT syntax -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Josef Moravecchanged: What|Removed |Added Patch complexity|--- |Large patch CC||josef.mora...@gmail.com QA Contact|testo...@bugs.koha-communit |josef.mora...@gmail.com |y.org | Status|Signed Off |Failed QA --- Comment #55 from Josef Moravec --- Looks good, just one thing so far: When the notice is in TT syntax, the svc/letters/preview and with ISE: Can't use string ("") as a HASH ref while "strict refs" in use at /home/vagrant/kohaclone/svc/letters/preview line 238. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #52 from Jonathan Druart--- Created attachment 73950 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73950=edit Bug 17981: Better error handling Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #53 from Jonathan Druart--- Created attachment 73951 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73951=edit Bug 17981: Move the divs to the top of the modal Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #54 from Jonathan Druart--- Created attachment 73952 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73952=edit Bug 17981: Remove uneeded module JS var As we only support CHECKIN and CHECKOUT for now, we do not need this module variable. It may be useful to re-add it later. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added Attachment #73203|0 |1 is obsolete|| Attachment #73204|0 |1 is obsolete|| Attachment #73205|0 |1 is obsolete|| Attachment #73206|0 |1 is obsolete|| --- Comment #51 from Jonathan Druart --- Created attachment 73949 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73949=edit Bug 17981: Add a preview mode for notice templates This patch is a first step to provide a preview mode for notice templates. CHECKIN, CHECKOUT and HOLD_SLIP are supported so far. Maybe more, but I have not tested yet and the interface will not allow you to generate the preview. The idea is to provide an idea of how will render the messages generated from a notice template. A new "Preview" button is added close to each textarea on the editing notice templates view. For each notice template code (letter_code), we will need some input data to produce the preview. For instance, for CHECKIN we need an barcode. From the barcode we can guess all the other data. For CHECKOUT we will need the borrowernumber and the barcode. Note that the way to enter the data for the preview is not really user-friendly, for CHECKOUT you will have to fill 'borrowernumber|barcode', but the placeholder will help you to know how and what to fill. In the modal window, you will see 4 blocks: 1/ the content of the letter (with the placeholds << >>) 2/ the generated message (with the data filled) 3/ if the letter contained historical syntax markers, the screen will try to generate a notice template using the TT syntax 4/ the generated message from this TT syntax => You will be able to compare the 2 generated messages. What is the goal of this first patchset: - Show this first POC and get feedback from other developpers - Add a way to easily visualise the differences between the 2 syntaxes - Confort users with the TT syntax and the migration step from the historical syntax. I'd like to get opinions before going further. The possibilities: - Mock data to get fully working generated messages for any notice templates. For instance, for CHECKIN and CHECKOUT, the item is not checked in/out yet. So we cannot access the issue's information. (I have no idea how to do that) - Browse the data to get the ones we want to use for the preview (big). Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added Status|Patch doesn't apply |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Julian Mauricechanged: What|Removed |Added Status|Signed Off |Patch doesn't apply --- Comment #50 from Julian Maurice --- Patches do not apply on master. Please rebase. > Applying: Bug 17981: Move svc/letters to svc/letters/get > Applying: Bug 17981: Add a 'letter' param to GetPreparedLetter > Applying: Bug 17981: Add a preview mode for notice templates > error: sha1 information is lacking or useless (C4/Letters.pm). > error: could not build fake ancestor > Patch failed at 0001 Bug 17981: Add a preview mode for notice templates -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Bug 17981 depends on bug 17961, which changed state. Bug 17961 Summary: TT syntax for notices - Prove we have an equivalent for our historical custom syntax https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17961 What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added Status|Patch doesn't apply |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added Attachment #70300|0 |1 is obsolete|| Attachment #70301|0 |1 is obsolete|| Attachment #70302|0 |1 is obsolete|| Attachment #70303|0 |1 is obsolete|| Attachment #70304|0 |1 is obsolete|| Attachment #70305|0 |1 is obsolete|| --- Comment #44 from Jonathan Druart --- Created attachment 73201 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73201=edit Bug 17981: Move svc/letters to svc/letters/get To allow another script under svc/letters Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #49 from Jonathan Druart--- Created attachment 73206 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73206=edit Bug 17981: Remove uneeded module JS var As we only support CHECKIN and CHECKOUT for now, we do not need this module variable. It may be useful to re-add it later. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #47 from Jonathan Druart--- Created attachment 73204 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73204=edit Bug 17981: Better error handling Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #48 from Jonathan Druart--- Created attachment 73205 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73205=edit Bug 17981: Move the divs to the top of the modal Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #46 from Jonathan Druart--- Created attachment 73203 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73203=edit Bug 17981: Add a preview mode for notice templates This patch is a first step to provide a preview mode for notice templates. CHECKIN, CHECKOUT and HOLD_SLIP are supported so far. Maybe more, but I have not tested yet and the interface will not allow you to generate the preview. The idea is to provide an idea of how will render the messages generated from a notice template. A new "Preview" button is added close to each textarea on the editing notice templates view. For each notice template code (letter_code), we will need some input data to produce the preview. For instance, for CHECKIN we need an barcode. From the barcode we can guess all the other data. For CHECKOUT we will need the borrowernumber and the barcode. Note that the way to enter the data for the preview is not really user-friendly, for CHECKOUT you will have to fill 'borrowernumber|barcode', but the placeholder will help you to know how and what to fill. In the modal window, you will see 4 blocks: 1/ the content of the letter (with the placeholds << >>) 2/ the generated message (with the data filled) 3/ if the letter contained historical syntax markers, the screen will try to generate a notice template using the TT syntax 4/ the generated message from this TT syntax => You will be able to compare the 2 generated messages. What is the goal of this first patchset: - Show this first POC and get feedback from other developpers - Add a way to easily visualise the differences between the 2 syntaxes - Confort users with the TT syntax and the migration step from the historical syntax. I'd like to get opinions before going further. The possibilities: - Mock data to get fully working generated messages for any notice templates. For instance, for CHECKIN and CHECKOUT, the item is not checked in/out yet. So we cannot access the issue's information. (I have no idea how to do that) - Browse the data to get the ones we want to use for the preview (big). Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #45 from Jonathan Druart--- Created attachment 73202 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73202=edit Bug 17981: Add a 'letter' param to GetPreparedLetter This will allow us to call GetPreparedLetter with a letter content that does not exist in the DB Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Katrin Fischerchanged: What|Removed |Added Status|Signed Off |Patch doesn't apply CC||katrin.fisc...@bsz-bw.de --- Comment #43 from Katrin Fischer --- Please rebase! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Kyle M Hallchanged: What|Removed |Added QA Contact|k...@bywatersolutions.com |testo...@bugs.koha-communit ||y.org -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Kyle M Hallchanged: What|Removed |Added Blocks||15969 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15969 [Bug 15969] Allow use of Template Toolkit syntax for Phone Notices -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #42 from Jonathan Druart--- Created attachment 70305 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70305=edit Bug 17981: Remove uneeded module JS var As we only support CHECKIN and CHECKOUT for now, we do not need this module variable. It may be useful to re-add it later. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #39 from Jonathan Druart--- Created attachment 70302 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70302=edit Bug 17981: Add a preview mode for notice templates This patch is a first step to provide a preview mode for notice templates. CHECKIN, CHECKOUT and HOLD_SLIP are supported so far. Maybe more, but I have not tested yet and the interface will not allow you to generate the preview. The idea is to provide an idea of how will render the messages generated from a notice template. A new "Preview" button is added close to each textarea on the editing notice templates view. For each notice template code (letter_code), we will need some input data to produce the preview. For instance, for CHECKIN we need an barcode. From the barcode we can guess all the other data. For CHECKOUT we will need the borrowernumber and the barcode. Note that the way to enter the data for the preview is not really user-friendly, for CHECKOUT you will have to fill 'borrowernumber|barcode', but the placeholder will help you to know how and what to fill. In the modal window, you will see 4 blocks: 1/ the content of the letter (with the placeholds << >>) 2/ the generated message (with the data filled) 3/ if the letter contained historical syntax markers, the screen will try to generate a notice template using the TT syntax 4/ the generated message from this TT syntax => You will be able to compare the 2 generated messages. What is the goal of this first patchset: - Show this first POC and get feedback from other developpers - Add a way to easily visualise the differences between the 2 syntaxes - Confort users with the TT syntax and the migration step from the historical syntax. I'd like to get opinions before going further. The possibilities: - Mock data to get fully working generated messages for any notice templates. For instance, for CHECKIN and CHECKOUT, the item is not checked in/out yet. So we cannot access the issue's information. (I have no idea how to do that) - Browse the data to get the ones we want to use for the preview (big). Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #41 from Jonathan Druart--- Created attachment 70304 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70304=edit Bug 17981: Move the divs to the top of the modal Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #40 from Jonathan Druart--- Created attachment 70303 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70303=edit Bug 17981: Better error handling Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added Attachment #67144|0 |1 is obsolete|| Attachment #67145|0 |1 is obsolete|| Attachment #67146|0 |1 is obsolete|| Attachment #67147|0 |1 is obsolete|| Attachment #67148|0 |1 is obsolete|| Attachment #67152|0 |1 is obsolete|| --- Comment #37 from Jonathan Druart --- Created attachment 70300 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70300=edit Bug 17981: Move svc/letters to svc/letters/get To allow another script under svc/letters Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #38 from Jonathan Druart--- Created attachment 70301 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70301=edit Bug 17981: Add a 'letter' param to GetPreparedLetter This will allow us to call GetPreparedLetter with a letter content that does not exist in the DB Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added Status|Patch doesn't apply |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Owen Leonardchanged: What|Removed |Added Status|Signed Off |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added Keywords|rel_17_11_candidate | -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added Keywords||rel_17_11_candidate -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #36 from Jonathan Druart--- Created attachment 67152 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67152=edit Bug 17981: Remove uneeded module JS var As we only support CHECKIN and CHECKOUT for now, we do not need this module variable. It may be useful to re-add it later. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #35 from Jonathan Druart--- (In reply to Owen Leonard from comment #34) > While rebasing Bug 18007 I noticed something in this update: > > In the JavaScript there are couple of instances of a "module" variable which > doesn't appear to ever be initialized. Is it superfluous, or should it be > created somewhere? Yes you are right, it could be removed for now. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #34 from Owen Leonard--- While rebasing Bug 18007 I noticed something in this update: In the JavaScript there are couple of instances of a "module" variable which doesn't appear to ever be initialized. Is it superfluous, or should it be created somewhere? -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #31 from Jonathan Druart--- Created attachment 67146 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67146=edit Bug 17981: Add a preview mode for notice templates This patch is a first step to provide a preview mode for notice templates. CHECKIN, CHECKOUT and HOLD_SLIP are supported so far. Maybe more, but I have not tested yet and the interface will not allow you to generate the preview. The idea is to provide an idea of how will render the messages generated from a notice template. A new "Preview" button is added close to each textarea on the editing notice templates view. For each notice template code (letter_code), we will need some input data to produce the preview. For instance, for CHECKIN we need an barcode. From the barcode we can guess all the other data. For CHECKOUT we will need the borrowernumber and the barcode. Note that the way to enter the data for the preview is not really user-friendly, for CHECKOUT you will have to fill 'borrowernumber|barcode', but the placeholder will help you to know how and what to fill. In the modal window, you will see 4 blocks: 1/ the content of the letter (with the placeholds << >>) 2/ the generated message (with the data filled) 3/ if the letter contained historical syntax markers, the screen will try to generate a notice template using the TT syntax 4/ the generated message from this TT syntax => You will be able to compare the 2 generated messages. What is the goal of this first patchset: - Show this first POC and get feedback from other developpers - Add a way to easily visualise the differences between the 2 syntaxes - Confort users with the TT syntax and the migration step from the historical syntax. I'd like to get opinions before going further. The possibilities: - Mock data to get fully working generated messages for any notice templates. For instance, for CHECKIN and CHECKOUT, the item is not checked in/out yet. So we cannot access the issue's information. (I have no idea how to do that) - Browse the data to get the ones we want to use for the preview (big). Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #33 from Jonathan Druart--- Created attachment 67148 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67148=edit Bug 17981: Move the divs to the top of the modal Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added Attachment #65701|0 |1 is obsolete|| Attachment #65702|0 |1 is obsolete|| Attachment #65703|0 |1 is obsolete|| Attachment #65704|0 |1 is obsolete|| Attachment #65705|0 |1 is obsolete|| --- Comment #29 from Jonathan Druart --- Created attachment 67144 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67144=edit Bug 17981: Move svc/letters to svc/letters/get To allow another script under svc/letters Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #32 from Jonathan Druart--- Created attachment 67147 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67147=edit Bug 17981: Better error handling Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #30 from Jonathan Druart--- Created attachment 67145 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67145=edit Bug 17981: Add a 'letter' param to GetPreparedLetter This will allow us to call GetPreparedLetter with a letter content that does not exist in the DB Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added Status|Patch doesn't apply |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Owen Leonardchanged: What|Removed |Added Status|Signed Off |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Kyle M Hallchanged: What|Removed |Added Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #27 from Kyle M Hall--- Created attachment 65704 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=65704=edit Bug 17981: Better error handling Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #28 from Kyle M Hall--- Created attachment 65705 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=65705=edit Bug 17981: Move the divs to the top of the modal Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Kyle M Hallchanged: What|Removed |Added Attachment #63978|0 |1 is obsolete|| Attachment #63979|0 |1 is obsolete|| Attachment #65688|0 |1 is obsolete|| Attachment #65689|0 |1 is obsolete|| Attachment #65690|0 |1 is obsolete|| --- Comment #24 from Kyle M Hall --- Created attachment 65701 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=65701=edit Bug 17981: Move svc/letters to svc/letters/get To allow another script under svc/letters Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #26 from Kyle M Hall--- Created attachment 65703 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=65703=edit Bug 17981: Add a preview mode for notice templates This patch is a first step to provide a preview mode for notice templates. CHECKIN, CHECKOUT and HOLD_SLIP are supported so far. Maybe more, but I have not tested yet and the interface will not allow you to generate the preview. The idea is to provide an idea of how will render the messages generated from a notice template. A new "Preview" button is added close to each textarea on the editing notice templates view. For each notice template code (letter_code), we will need some input data to produce the preview. For instance, for CHECKIN we need an barcode. From the barcode we can guess all the other data. For CHECKOUT we will need the borrowernumber and the barcode. Note that the way to enter the data for the preview is not really user-friendly, for CHECKOUT you will have to fill 'borrowernumber|barcode', but the placeholder will help you to know how and what to fill. In the modal window, you will see 4 blocks: 1/ the content of the letter (with the placeholds << >>) 2/ the generated message (with the data filled) 3/ if the letter contained historical syntax markers, the screen will try to generate a notice template using the TT syntax 4/ the generated message from this TT syntax => You will be able to compare the 2 generated messages. What is the goal of this first patchset: - Show this first POC and get feedback from other developpers - Add a way to easily visualise the differences between the 2 syntaxes - Confort users with the TT syntax and the migration step from the historical syntax. I'd like to get opinions before going further. The possibilities: - Mock data to get fully working generated messages for any notice templates. For instance, for CHECKIN and CHECKOUT, the item is not checked in/out yet. So we cannot access the issue's information. (I have no idea how to do that) - Browse the data to get the ones we want to use for the preview (big). Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #25 from Kyle M Hall--- Created attachment 65702 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=65702=edit Bug 17981: Add a 'letter' param to GetPreparedLetter This will allow us to call GetPreparedLetter with a letter content that does not exist in the DB Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #23 from Kyle M Hall--- I also agree the current way of filling in the preview data is not user friendly ; ) Hopefully it won't be too much harder to put those data needed in separate form inputs. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #22 from Kyle M Hall--- > The possibilities: > - Mock data to get fully working generated messages for any notice > templates. For instance, for CHECKIN and CHECKOUT, the item is not > checked in/out yet. So we cannot access the issue's information. At first glance, I'm not seeing any big problems with this. I suppose we could have the librarian pass in an old_issues issue_id, but that seems like it would be a fair bit less user friendly. > - Browse the data to get the ones we want to use for the preview (big). That's a really great idea, but it does feel like it will be quite a lot of work, and typically librarians will probably just set up dummy patrons / titles for testing, so I doubt there is an immediate need for that. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #20 from Jonathan Druart--- Created attachment 65689 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=65689=edit Bug 17981: Better error handling -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #21 from Jonathan Druart--- Created attachment 65690 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=65690=edit Bug 17981: Move the divs to the top of the modal -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added Attachment #63980|0 |1 is obsolete|| Attachment #63981|0 |1 is obsolete|| Attachment #63982|0 |1 is obsolete|| --- Comment #19 from Jonathan Druart --- Created attachment 65688 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=65688=edit Bug 17981: Add a preview mode for notice templates This patch is a first step to provide a preview mode for notice templates. CHECKIN, CHECKOUT and HOLD_SLIP are supported so far. Maybe more, but I have not tested yet and the interface will not allow you to generate the preview. The idea is to provide an idea of how will render the messages generated from a notice template. A new "Preview" button is added close to each textarea on the editing notice templates view. For each notice template code (letter_code), we will need some input data to produce the preview. For instance, for CHECKIN we need an barcode. From the barcode we can guess all the other data. For CHECKOUT we will need the borrowernumber and the barcode. Note that the way to enter the data for the preview is not really user-friendly, for CHECKOUT you will have to fill 'borrowernumber|barcode', but the placeholder will help you to know how and what to fill. In the modal window, you will see 4 blocks: 1/ the content of the letter (with the placeholds << >>) 2/ the generated message (with the data filled) 3/ if the letter contained historical syntax markers, the screen will try to generate a notice template using the TT syntax 4/ the generated message from this TT syntax => You will be able to compare the 2 generated messages. What is the goal of this first patchset: - Show this first POC and get feedback from other developpers - Add a way to easily visualise the differences between the 2 syntaxes - Confort users with the TT syntax and the migration step from the historical syntax. I'd like to get opinions before going further. The possibilities: - Mock data to get fully working generated messages for any notice templates. For instance, for CHECKIN and CHECKOUT, the item is not checked in/out yet. So we cannot access the issue's information. (I have no idea how to do that) - Browse the data to get the ones we want to use for the preview (big). -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Kyle M Hallchanged: What|Removed |Added Status|Needs Signoff |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #18 from Jonathan Druart--- I do not think you can test this patch and all the dependencies on a sandbox. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #17 from Séverine Queune--- I tested with the HOLD_SLIP notice on BibLibre's sandbox03. When I applied bug 17975, a new box appeared to preview the notice for "biblionumber|borrowernumber". I tested with record #3194 and 2 different patrons (#5903 with the hold waiting for her and #6587 who is the second in priority list) but for none of them I succeeded to preview the notice, it doesn't stop loading. Maybe I misunderstood something in the way to use it. I couldn't test it for CHECKIN and CHECKout, patch 17964 didn't apply. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #16 from Lee Jamison--- Also, this is one of my favorite enhancements. Our clerk who handles all the notices will be very grateful for this feature! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Lee Jamisonchanged: What|Removed |Added CC||ldjami...@marywood.edu --- Comment #15 from Lee Jamison --- I believe the issue Kyle speaks of is an issue related to the cache. When I first applied it to master, I did not see the Preview button either on any of the three notices. However, I cleared the cache and then they appeared. I'd like to do additional testing before signing off. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Kyle M Hallchanged: What|Removed |Added QA Contact|testo...@bugs.koha-communit |k...@bywatersolutions.com |y.org | -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #14 from Jonathan Druart--- (In reply to Kyle M Hall from comment #13) > Is this patch set in a testable state yet? I applied the patches to master > and did not see the preview button. Can you add a test plan? You need to apply all patches under bug 17961, then test for CHECKIN, CHECKOUT or HOLD_SLIP. Then the commit message should contain all the information to test the patch. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #13 from Kyle M Hall--- Is this patch set in a testable state yet? I applied the patches to master and did not see the preview button. Can you add a test plan? -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Tomás Cohen Arazichanged: What|Removed |Added Version|unspecified |master -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #11 from Jonathan Druart--- Created attachment 63981 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=63981=edit Bug 17981: Better error handling -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added Attachment #59508|0 |1 is obsolete|| Attachment #59509|0 |1 is obsolete|| Attachment #59510|0 |1 is obsolete|| Attachment #59514|0 |1 is obsolete|| Attachment #59524|0 |1 is obsolete|| --- Comment #8 from Jonathan Druart --- Created attachment 63978 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=63978=edit Bug 17981: Move svc/letters to svc/letters/get To allow another script under svc/letters -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #10 from Jonathan Druart--- Created attachment 63980 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=63980=edit Bug 17981: Add a preview mode for notice templates This patch is a first step to provide a preview mode for notice templates. CHECKIN, CHECKOUT and HOLD_SLIP are supported so far. Maybe more, but I have not tested yet and the interface will not allow you to generate the preview. The idea is to provide an idea of how will render the messages generated from a notice template. A new "Preview" button is added close to each textarea on the editing notice templates view. For each notice template code (letter_code), we will need some input data to produce the preview. For instance, for CHECKIN we need an barcode. From the barcode we can guess all the other data. For CHECKOUT we will need the borrowernumber and the barcode. Note that the way to enter the data for the preview is not really user-friendly, for CHECKOUT you will have to fill 'borrowernumber|barcode', but the placeholder will help you to know how and what to fill. In the modal window, you will see 4 blocks: 1/ the content of the letter (with the placeholds << >>) 2/ the generated message (with the data filled) 3/ if the letter contained historical syntax markers, the screen will try to generate a notice template using the TT syntax 4/ the generated message from this TT syntax => You will be able to compare the 2 generated messages. What is the goal of this first patchset: - Show this first POC and get feedback from other developpers - Add a way to easily visualise the differences between the 2 syntaxes - Confort users with the TT syntax and the migration step from the historical syntax. I'd like to get opinions before going further. The possibilities: - Mock data to get fully working generated messages for any notice templates. For instance, for CHECKIN and CHECKOUT, the item is not checked in/out yet. So we cannot access the issue's information. (I have no idea how to do that) - Browse the data to get the ones we want to use for the preview (big). -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #12 from Jonathan Druart--- Created attachment 63982 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=63982=edit Bug 17981: Move the divs to the top of the modal -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #9 from Jonathan Druart--- Created attachment 63979 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=63979=edit Bug 17981: Add a 'letter' param to GetPreparedLetter This will allow us to call GetPreparedLetter with a letter content that does not exist in the DB -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Séverine Queunechanged: What|Removed |Added CC||severine.que...@bulac.fr -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Nick Clemenschanged: What|Removed |Added Status|ASSIGNED|Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Nick Clemenschanged: What|Removed |Added Status|Needs Signoff |ASSIGNED -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added CC||julian.maur...@biblibre.com ||, ||k...@bywatersolutions.com, ||m.de.r...@rijksmuseum.nl, ||martin.renvoize@ptfs-europe ||.com, ||n...@bywatersolutions.com, ||tomasco...@gmail.com --- Comment #7 from Jonathan Druart --- I have rebased this branch, that was a nightmare, really... There are too many patches in the queue, please help me to move things toward master. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Marc Véronchanged: What|Removed |Added CC||ve...@veron.ch -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Owen Leonardchanged: What|Removed |Added Blocks||18007 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18007 [Bug 18007] Interface updates to notices and notice previews -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #6 from Jonathan Druart--- Created attachment 59524 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59524=edit Bug 17981: Move the divs to the top of the modal -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #5 from Jonathan Druart--- Created attachment 59514 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59514=edit Bug 17981: Better error handling -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #1 from Jonathan Druart--- Created attachment 59508 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59508=edit Bug 17981: Move svc/letters to svc/letters/get To allow another script under svc/letters -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #4 from Jonathan Druart--- These patches will not apply due to the big dependency tree. Use this remote branch instead: https://github.com/joubu/Koha/tree/bug_17981 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #3 from Jonathan Druart--- Created attachment 59510 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59510=edit Bug 17981: Add a preview mode for notice templates This patch is a first step to provide a preview mode for notice templates. CHECKIN, CHECKOUT and HOLD_SLIP are supported so far. Maybe more, but I have not tested yet and the interface will not allow you to generate the preview. The idea is to provide an idea of how will render the messages generated from a notice template. A new "Preview" button is added close to each textarea on the editing notice templates view. For each notice template code (letter_code), we will need some input data to produce the preview. For instance, for CHECKIN we need an barcode. From the barcode we can guess all the other data. For CHECKOUT we will need the borrowernumber and the barcode. Note that the way to enter the data for the preview is not really user-friendly, for CHECKOUT you will have to fill 'borrowernumber|barcode', but the placeholder will help you to know how and what to fill. In the modal window, you will see 4 blocks: 1/ the content of the letter (with the placeholds << >>) 2/ the generated message (with the data filled) 3/ if the letter contained historical syntax markers, the screen will try to generate a notice template using the TT syntax 4/ the generated message from this TT syntax => You will be able to compare the 2 generated messages. What is the goal of this first patchset: - Show this first POC and get feedback from other developpers - Add a way to easily visualise the differences between the 2 syntaxes - Confort users with the TT syntax and the migration step from the historical syntax. I'd like to get opinions before going further. The possibilities: - Mock data to get fully working generated messages for any notice templates. For instance, for CHECKIN and CHECKOUT, the item is not checked in/out yet. So we cannot access the issue's information. (I have no idea how to do that) - Browse the data to get the ones we want to use for the preview (big). -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 --- Comment #2 from Jonathan Druart--- Created attachment 59509 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59509=edit Bug 17981: Add a 'letter' param to GetPreparedLetter This will allow us to call GetPreparedLetter with a letter content that does not exist in the DB -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17981] Add the ability to preview generated notice templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17981 Jonathan Druartchanged: What|Removed |Added Status|ASSIGNED|Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/