Bug 30338 - AUTO_RENEWALS and AUTO_RENEWALS_DGST notices cannot access branch information
Summary: AUTO_RENEWALS and AUTO_RENEWALS_DGST notices cannot access branch information
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-22 22:00 UTC by Lucas Gass
Modified: 2022-12-12 21:24 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Gass 2022-03-22 22:00:52 UTC
When editing AUTO_RENEWALS and AUTO_RENEWALS_DGST branch information cannot be used. Neither  [% branch.branchname %] or  <<branches.branchname>> seems to be available. It would be nice if we could use those in auto renewal notices.
Comment 1 Lucas Gass 2022-03-23 14:30:16 UTC
Marking this as resolved because I learned you can use:

[% checkout.library.branchname %]
Comment 2 Katrin Fischer 2022-03-26 19:54:25 UTC
(In reply to Lucas Gass from comment #1)
> Marking this as resolved because I learned you can use:
> 
> [% checkout.library.branchname %]

I wonder where we could document this. At the moment these kind of things make it hard to have libraries modify the TT templates. Maybe it would still be nice to be able to access the branch or library object directly for more consistency?
Comment 3 Katrin Fischer 2022-03-26 19:55:50 UTC
Hm ok, answering my own question... for the DGST the branches might be different... so that object would not work unless we make it the library patrons home branch as in other DGST notices?
Comment 4 Martin Renvoize 2022-05-13 10:44:52 UTC
I wouldn't use 'checkout.', I think in that case it's likely to pick the last checkout, assuming you've placed it after the loop.

I'd use patron.homebranch.