[Bug 40426] New: Custom patron messages should have access to interlibrary loans information
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40426 Bug ID: 40426 Summary: Custom patron messages should have access to interlibrary loans information Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Notices Assignee: koha-bugs@lists.koha-community.org Reporter: r.delahunty@arts.ac.uk QA Contact: testopia@bugs.koha-community.org Bug 29393 added the ability to define custom notices that can be sent from the patron account page. It would be useful if these notices had access to ILL data such as that in the illrequests table. Messages sent using the Patrons (custom message) module cannot currently pull ILL data fields into the message body. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40426 Ray Delahunty <r.delahunty@arts.ac.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |29393 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29393 [Bug 29393] Ability to send emails from patron details page -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40426 Irene <i.tortorella@arts.ac.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |i.tortorella@arts.ac.uk -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40426 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrew@bywatersolutions.com Resolution|--- |WORKSFORME --- Comment #1 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- ILL data is already available: [%- FOREACH i IN borrower.ill_requests %] pickupbranch: [% i.branchcode %] title: [% i.biblio.title %] [%- END %] -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40426 Irene <i.tortorella@arts.ac.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|WORKSFORME |--- Status|RESOLVED |REOPENED --- Comment #2 from Irene <i.tortorella@arts.ac.uk> --- (In reply to Andrew Fuerste-Henry from comment #1)
ILL data is already available: [%- FOREACH i IN borrower.ill_requests %] pickupbranch: [% i.branchcode %] title: [% i.biblio.title %] [%- END %]
Hi Andrew, I’ve tested this using the Patrons (custom message) module. Standard borrower fields (e.g. [% borrower.firstname %]) work as expected, but `borrower.ill_requests` does not appear to be available in this context. Attempting to use it (even within an IF block) results in a 500 error, and no ILL-related fields are listed in the available template variables for this notice type. It may be that this variable is available in other notice contexts such as the ILL module, but it doesn’t seem to be exposed in Patron custom messages which is what Ray reported last year. Could you confirm whether `borrower.ill_requests` is expected to work in this specific module, or if this is a limitation of the current implementation? Thanks, Irene -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40426 --- Comment #3 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- (In reply to Irene Tortorella from comment #2)
Could you confirm whether `borrower.ill_requests` is expected to work in this specific module, or if this is a limitation of the current implementation?
Hi! What version of Koha are you on? It looks like Bug 39600 added a link from a borrower to their ILL requests in 25.05. I have confirmed that the notice content I provided above works on my testing docker on Koha main. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40426 Irene Tortorella <i.tortorella@arts.ac.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |WORKSFORME --- Comment #4 from Irene Tortorella <i.tortorella@arts.ac.uk> --- (In reply to Andrew Fuerste-Henry from comment #3)
(In reply to Irene Tortorella from comment #2)
Could you confirm whether `borrower.ill_requests` is expected to work in this specific module, or if this is a limitation of the current implementation?
Hi! What version of Koha are you on? It looks like Bug 39600 added a link from a borrower to their ILL requests in 25.05. I have confirmed that the notice content I provided above works on my testing docker on Koha main.
Hi Andrew, thanks for this — I’ve just tested on our 25.11 test upgrade server and can confirm this now works as expected. I’m able to access `borrower.ill_requests` and loop through the data successfully. I’ll do a bit more testing to explore how best to handle multiple requests in a single notice, but this looks really promising and will be very useful for our ILL workflows. Thanks again for pointing this out! -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org