Bug 29144: Use ->opac_info in opac-library template
The opac_info call uses find_best_match which does not result in the All libaries plus specific library response of AdditionalContents.get. Test plan: Revisit individual library page on OPAC. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
68a900132e
commit
3f6d3b9af6
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
[% USE Koha %]
|
||||
[% PROCESS 'display-library-address.inc' %]
|
||||
[% USE AdditionalContents %]
|
||||
[% SET OpacLibraryInfo = AdditionalContents.get( location => "OpacLibraryInfo", lang => lang, library => library.branchcode || branchcode, blocktitle => 0 ) %]
|
||||
[% IF library %][% SET OpacLibraryInfo = library.opac_info( lang => lang ) %][% END %]
|
||||
[% 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 ) %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
|
@ -37,7 +37,7 @@
|
|||
|
||||
[% BLOCK library_description %]
|
||||
<div property="description">
|
||||
[% PROCESS koha_news_block news => OpacLibraryInfo %]
|
||||
[% IF OpacLibraryInfo %][% OpacLibraryInfo.content | $raw %][% END %]
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
|
|
Loading…
Reference in a new issue