Bug 36112

Summary: Port default CHECKOUT_NOTE notice to Template Toolkit syntax
Product: Koha Reporter: Emily Lamancusa (emlam) <emily.lamancusa>
Component: NoticesAssignee: Emily Lamancusa (emlam) <emily.lamancusa>
Status: Passed QA --- QA Contact: Kyle M Hall (khall) <kyle>
Severity: enhancement    
Priority: P5 - low CC: kyle, lucas, phil
Version: MainKeywords: Academy
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 15278    
Attachments: Bug 36112: Port default CHECKOUT_NOTE notice to TT
Bug 36112: Port default CHECKOUT_NOTE notice to TT
Bug 36112: Port default CHECKOUT_NOTE notice to TT

Description Emily Lamancusa (emlam) 2024-02-15 21:54:40 UTC
While we're updating this one... The current notice prints the title, author, and biblionumber of the item. Wouldn't the item barcode be more useful?
Comment 1 Emily Lamancusa (emlam) 2024-09-27 19:24:38 UTC
Created attachment 172160 [details] [review]
Bug 36112: Port default CHECKOUT_NOTE notice to TT

Port the default notice text to Template Toolkit. Also, add access to
item information in order to give more useful information about the
checked-out item that the note refers to (in this case, the item barcode
instead of the biblionumber)

To test:
1. Apply patch and reset all
2. Enable the system preference AllowCheckoutNotes
3. Go to Administration > Libraries and edit the current logged-in
   library to ensure that there is a value in the Email field
4. Check out an item to a patron
5. Ensure the patron has values in the first name and surname fields
6. Log into the OPAC as that patron
7. Click to display the patron's current checkouts
8. Click the + button to the right of a checkout
9. Click the "Add Note" button beneath the table
10. Add some text and submit the note
11. Return to the staff interface and go to the Notices tab for the patron
--> Confirm that there is a notice called "Checkout note" with all the
correct information
Comment 2 Lucas Gass (lukeg) 2024-09-30 22:01:03 UTC
(In reply to Emily Lamancusa from comment #0)
> While we're updating this one... The current notice prints the title,
> author, and biblionumber of the item. Wouldn't the item barcode be more
> useful?

Yes, I think so. biblionumber probably doesn't mean anything to most users.
Comment 3 Lucas Gass (lukeg) 2024-09-30 22:02:11 UTC
Created attachment 172241 [details] [review]
Bug 36112: Port default CHECKOUT_NOTE notice to TT

Port the default notice text to Template Toolkit. Also, add access to
item information in order to give more useful information about the
checked-out item that the note refers to (in this case, the item barcode
instead of the biblionumber)

To test:
1. Apply patch and reset all
2. Enable the system preference AllowCheckoutNotes
3. Go to Administration > Libraries and edit the current logged-in
   library to ensure that there is a value in the Email field
4. Check out an item to a patron
5. Ensure the patron has values in the first name and surname fields
6. Log into the OPAC as that patron
7. Click to display the patron's current checkouts
8. Click the + button to the right of a checkout
9. Click the "Add Note" button beneath the table
10. Add some text and submit the note
11. Return to the staff interface and go to the Notices tab for the patron
--> Confirm that there is a notice called "Checkout note" with all the
correct information

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 4 Kyle M Hall (khall) 2025-01-17 20:02:10 UTC
Created attachment 176754 [details] [review]
Bug 36112: Port default CHECKOUT_NOTE notice to TT

Port the default notice text to Template Toolkit. Also, add access to
item information in order to give more useful information about the
checked-out item that the note refers to (in this case, the item barcode
instead of the biblionumber)

To test:
1. Apply patch and reset all
2. Enable the system preference AllowCheckoutNotes
3. Go to Administration > Libraries and edit the current logged-in
   library to ensure that there is a value in the Email field
4. Check out an item to a patron
5. Ensure the patron has values in the first name and surname fields
6. Log into the OPAC as that patron
7. Click to display the patron's current checkouts
8. Click the + button to the right of a checkout
9. Click the "Add Note" button beneath the table
10. Add some text and submit the note
11. Return to the staff interface and go to the Notices tab for the patron
--> Confirm that there is a notice called "Checkout note" with all the
correct information

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>