For the CHECKIN and CHECKOUT notices, any data that is issue specific does not show. For example, date due.
Created attachment 8694 [details] [review] Bug 7848 - Issues data missing from circulation notices For the CHECKIN and CHECKOUT notices, any data that is issue specific does not show. For example, date due. This is caused not passing in the issues table as part of the 'table' hash used by C4::Letters::GetPreparedLetter. Simple fix, add the issues table to the 'tables' hash passed in to GetPreparedLetter.
Hi Kyle, this is marked 3.6 - is this patch only relevant for 3.6 or also for master?
I tested this on current master and see some problems in the generated messages. My CHECKOUT notice looks like this: ------------------------------------------------------------------- Die folgenden Medien wurden entliehen: <<biblio.title>> <<issues.date_due>> Vielen Dank für Ihren Besuch in <<branches.branchname>>. ------------------------------------------------------------------- The output after checking out 2 items is: ------------------------------------------------------------------- Die folgenden Medien wurden entliehen: Die Kultur der Gegenwart 2012-04-15 23:59:00 Vielen Dank für Ihren Besuch in Midway.Die folgenden Medien wurden entliehen: Die Kultur der Gegenwart 2012-04-15 23:59:00 Vielen Dank für Ihren Besuch in Midway. ------------------------------------------------------------------- Note: This is one message, for 2 different items of the same title. Part of the message gets repeated - I think this should not happen and I am not sure why it does. My CHECKIN notice looks like this: ------------------------------------------------------------------- Die folgenden Medien wurden zurückgegeben: ---- <<biblio.title>> <<issues.itemnumber>><<issues.date_due>> ---- Vielen Dank. ------------------------------------------------------------------- Checking in the same items as before, gives me following output: ------------------------------------------------------------------- Die folgenden Medien wurden zurückgegeben: Die Kultur der Gegenwart Die Kultur der Gegenwart Vielen Dank. ------------------------------------------------------------------- Note: This time the list is ok, as no other parts of the message are repeated, but the information from the issues table does not show up. I think instead of the issues table or in addition to it we should make the items table available, so that barcode and callnumber can be added to the notices.
Created attachment 8778 [details] [review] Bug 7848 - Issues data missing from circulation notices For the CHECKIN and CHECKOUT notices, any data that is issue specific does not show. For example, date due. This is caused not passing in the issues table as part of the 'table' hash used by C4::Letters::GetPreparedLetter. Simple fix, add the issues and items tables to the 'tables' hash passed in to GetPreparedLetter.
(In reply to comment #4) It may be that you have your repetition lines in the wrong places. For example, take this notice: The following items have been checked out: ---- <<biblio.title>> DUE ON: <<issues.date_due>> ---- Thank you for visiting <<branches.branchname>>. Anything between the dashes will be repeated. I should also not that repetition in various notices is done in different ways. Some notices use tags like <items>Repeated Content</items> instead. This should really be standardized throughout the notice system.
Hi Kyle, thx for this hint! I didn't know about the 'repetition lines' and I agree that it would be nice to standardize the syntax for repeating parts of the notices.
I confirm Katrin's issue with the checkin notice - the data from the issues table does not appear in the generated notices. Failing QA.
Created attachment 9704 [details] [review] Bug 7848 - Issues data missing from circulation notices For the CHECKIN and CHECKOUT notices, any data that is issue specific does not show. For example, date due. For CHECKOUT, this is caused not passing in the issues table as part of the 'table' hash used by C4::Letters::GetPreparedLetter. For CHECKIN notices, we need the old_issues table instead, as the item has already been returned.
Created attachment 9863 [details] [review] [Signed Off] Bug 7848 - Issues data missing from circulation notices For the CHECKIN and CHECKOUT notices, any data that is issue specific does not show. For example, date due. For CHECKOUT, this is caused not passing in the issues table as part of the 'table' hash used by C4::Letters::GetPreparedLetter. For CHECKIN notices, we need the old_issues table instead, as the item has already been returned. Signed-off-by: Liz Rea <wizzyrea@gmail.com> passes tests, correct information shows in notices.
Unconditional WARNs need to be removed. Once that's done, this can do to Passed QA.
Created attachment 10599 [details] [review] Bug 7848 - Issues data missing from circulation notices For the CHECKIN and CHECKOUT notices, any data that is issue specific does not show. For example, date due. For CHECKOUT, this is caused not passing in the issues table as part of the 'table' hash used by C4::Letters::GetPreparedLetter. For CHECKIN notices, we need the old_issues table instead, as the item has already been returned. Signed-off-by: Liz Rea <wizzyrea@gmail.com> passes tests, correct information shows in notices.
QA comment * Ian comment 10 (conditional warn) fixed * C4 files modified did not pass perlcritic before, they still don't (most of the errors are ["return" statement with explicit "undef" ...] and [Subroutine prototypes used] * No other comment, code integrates smoothly with existing code passed QA
Seems to work well, pushed to 3.8.x will be in 3.8.3
If this is intended to apply to 3.6.x, please provide a patch rebased against 3.6-testing.