[Koha-bugs] [Bug 31656] New: Expand TT access for CHECKOUT notice

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 29 18:48:45 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31656

            Bug ID: 31656
           Summary: Expand TT access for CHECKOUT notice
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Notices
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: caroline.cyr-la-rose at inlibro.com
        QA Contact: testopia at bugs.koha-community.org

The FOREACH loop TT syntax doesn't work in the CHECKOUT notice. I suspect this
is due to it being generated in C4/Circulation.pm, as described here
https://wiki.koha-community.org/wiki/Customising_Notices_and_Slips#Notice_Specific_Markup

You can only use four dashes to repeat information in this notice.

To test:
1. Edit the CHECKOUT notice
1.1. Go to Tools > Notices and slips
1.2. Search for the CHECKOUT notice and click Edit
1.3. In the Email tab, use the following code for the letter (should be the one
by default)

The following items have been checked out:
----
[% biblio.title %]
----
Thank you for visiting [% branch.branchname %].

1.4. Save

2. In a patron file, choose to get the Item checkout email notice
2.1. Go to a patron file
2.2. Click on the Edit button next to the patron messaging preferences table
2.3. Check Email for the Item checkout
2.4. Save

3. Check out items to the same patron
3.1. Go to the Check out tab in the patron file
3.2. Check out at least two items

4. Check the generated notice
4.1. Go to the Notices tab in the patron file
4.2. Click on the Checkouts notice to view the contents
--> It should show both titles

5. Change the CHECKOUT notice, redo steps 1.x using the following letter
content

The following items have been checked out:

[% FOREACH checkout IN checkouts %]
[%~ SET item = checkout.item %]
[%~ SET biblio = checkout.item.biblio %]
[% biblio.title %]
[% END %]

Thank you for visiting [% branch.branchname %].

6. Try checking out again, redo steps 2-4 with a different patron
--> There are no titles and the letter is repeated twice

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list