Bug 20359 - Auto-Renew notice not able to pull branch information
Summary: Auto-Renew notice not able to pull branch information
Status: CLOSED WORKSFORME
Alias: None
Product: Koha
Classification: Unclassified
Component: Notices (show other bugs)
Version: 17.05
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-07 21:59 UTC by Andrew Fuerste-Henry
Modified: 2020-11-30 21:45 UTC (History)
4 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 Andrew Fuerste-Henry 2018-03-07 21:59:02 UTC
Information from the branches table cannot be pulled into the AUTO_RENEW notice. This is an issue for libraries that want to include library contact information in their notices that will automatically update when values are changed in Koha or for multi-branch systems that want their notices to specify where the renewed item is from.

To replicate:
1: Write an AUTO_RENEW notice including either <<branches.branchname>> or [% branch.branchname %]
2: Run the auto-renew cron with notices
3: Observe that branch info is not included in the notice
Comment 1 Jonathan Druart 2020-03-31 16:25:43 UTC
You can easily display it:

Library: [% borrower.library.branchname %]
Comment 2 Katrin Fischer 2020-04-04 22:30:35 UTC
(In reply to Jonathan Druart from comment #1)
> You can easily display it:
> 
> Library: [% borrower.library.branchname %]

I think this would be the homebranch of the patron. Can we also get the homebranch/holding branchnames of the items?
Comment 3 Jonathan Druart 2020-04-06 09:24:40 UTC
Item's home branch:    [% biblio.item.home_branch.branchname %]
Item's holding branch: [% biblio.item.holding_branch.branchname %]
Comment 4 Katrin Fischer 2020-04-06 20:13:04 UTC
(In reply to Jonathan Druart from comment #3)
> Item's home branch:    [% biblio.item.home_branch.branchname %]
> Item's holding branch: [% biblio.item.holding_branch.branchname %]

Thank you!

Andrew, does this 'fix' the reported issue for you?
Comment 5 Andrew Fuerste-Henry 2020-04-06 20:21:54 UTC
Works for me, thanks all!