Bug 43043: Pass logged in branchcode to OpacMySummaryNote
This patch uses the logged in branchcode to find the correct entries To test: 1 - Create two new HTML customizations - OpacMySummaryNote - one for all libraries, one for a specific library 2 - Log in to opac as a user from the specific library 3 - Only see the all libaries note 4 - Apply patch 5 - Reload 6 - See both of the notes as expected! 7 - Sign off! Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
9a875d0202
commit
59ac731b1d
|
|
@ -13,7 +13,7 @@
|
|||
[% PROCESS 'html_helpers.inc' %]
|
||||
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
|
||||
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
|
||||
[% SET OpacMySummaryNote = AdditionalContents.get( location => "OpacMySummaryNote", lang => lang, library => branchcode ) %]
|
||||
[% SET OpacMySummaryNote = AdditionalContents.get( location => "OpacMySummaryNote", lang => lang, library => logged_in_user.branchcode ) %]
|
||||
[% SET borrower_club_enrollments = logged_in_user.get_club_enrollments %]
|
||||
[% SET borrower_enrollable_clubs = logged_in_user.get_enrollable_clubs(1) %]
|
||||
<!-- 1 => OPAC -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue