Bug 20359

Summary: Auto-Renew notice not able to pull branch information
Product: Koha Reporter: Andrew Fuerste-Henry <andrewfh>
Component: NoticesAssignee: Bugs List <koha-bugs>
Status: CLOSED WORKSFORME QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: clodagh.kerin, jonathan.druart, katrin.fischer, nick
Version: 17.05   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

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!