Bug 33892: Use template wrapper for tabs: OPAC authority detail
This patch updates the OPAC authority detail page so that it uses the new WRAPPER syntax to generate tabs markup. To test, apply the patch and locate an authority record in the OPAC which has notes fields. When viewing the details for that record the notes should appear in a single "Notes" tab. Signed-off-by: Sam Lau <samalau@gmail.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
48ccc9245c
commit
75c9b07c5c
1 changed files with 12 additions and 11 deletions
|
@ -162,22 +162,23 @@
|
||||||
[% END # / IF MARCURLS %]
|
[% END # / IF MARCURLS %]
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
<div id="authdescriptions" class="toptabs">
|
[% WRAPPER tabs id= "authdescriptions" %]
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
[% WRAPPER tabs_nav %]
|
||||||
<li id="tab_descriptions" class="nav-item" role="presentation">
|
[% WRAPPER tab_item tabname= "tab_descriptions" bt_active= 1 %]
|
||||||
<a class="nav-link active" id="descriptions-tab" data-toggle="tab" href="#descriptions" role="tab" aria-controls="descriptions" aria-selected="true" href="#descriptions">Notes</a>
|
<span>Notes</span>
|
||||||
</li>
|
[% END %]
|
||||||
</ul>
|
[% END # /WRAPPER tabs_nav %]
|
||||||
<div class="tab-content">
|
[% WRAPPER tab_panels %]
|
||||||
<div class="tab-pane active" role="tabpanel" aria-labelledby="descriptions-tab" id="descriptions">
|
[% WRAPPER tab_panel tabname="tab_descriptions" bt_active= 1 %]
|
||||||
<div class="content_set">
|
<div class="content_set">
|
||||||
[% FOREACH note IN summary.notes %]
|
[% FOREACH note IN summary.notes %]
|
||||||
<p class="note auth[% note.field | html %]">[% note.note | html %]</p>
|
<p class="note auth[% note.field | html %]">[% note.note | html %]</p>
|
||||||
[% END %]
|
[% END %]
|
||||||
</div>
|
</div>
|
||||||
</div>
|
[% END # /tab_panel# %]
|
||||||
</div> <!-- /.tab-content -->
|
[% END # /WRAPPER tab_panels %]
|
||||||
</div>
|
[% END # /WRAPPER tabs#authdescriptions %]
|
||||||
|
|
||||||
</div> <!-- / .#userauthdetails -->
|
</div> <!-- / .#userauthdetails -->
|
||||||
</div> <!-- / .col-lg-10/12 -->
|
</div> <!-- / .col-lg-10/12 -->
|
||||||
[% IF Koha.Preference( 'OPACAuthorIdentifiers' ) && author_identifiers.size %]
|
[% IF Koha.Preference( 'OPACAuthorIdentifiers' ) && author_identifiers.size %]
|
||||||
|
|
Loading…
Reference in a new issue