Bug 31775: Template cleanup
Removing unused parts. Test plan: See first test plan. Confirm that it still works. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
03129f718f
commit
da8bdb4c3b
1 changed files with 31 additions and 59 deletions
|
@ -91,10 +91,8 @@
|
|||
[% END %]
|
||||
|
||||
[% IF ( library ) %]
|
||||
|
||||
<div id="library_info" class="maincontent" vocab="http://schema.org/" typeof="Library">
|
||||
<h1 property="name">[% library.branchname | html %]</h1>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
[% PROCESS library_info %]
|
||||
|
@ -105,55 +103,29 @@
|
|||
</div>
|
||||
[% END %]
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
[% IF ( libraries.count > 1 ) %]
|
||||
<nav class="libraries">
|
||||
<ul class="fa-ul">
|
||||
[% FOREACH library IN libraries %]
|
||||
[% IF ( branchcode == library.branchcode ) %]
|
||||
<li id="menu_[% library.branchcode| html %]" class="current">
|
||||
<a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">
|
||||
<i class="fa fa-li fa-map-pin" aria-hidden="true"></i> [% library.branchname | html %]
|
||||
</a>
|
||||
</li>
|
||||
[% ELSE %]
|
||||
<li id="menu_[% library.branchcode| html %]">
|
||||
<a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">
|
||||
<i class="fa fa-li" aria-hidden="true"></i> [% library.branchname | html %]
|
||||
</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</ul>
|
||||
</nav>
|
||||
[% END # /IF libraries.count > 1 %]
|
||||
</div> <!-- /.col-lg-4 -->
|
||||
</div> <!-- /.row -->
|
||||
</div>
|
||||
</div> <!-- /#library_info -->
|
||||
|
||||
[% ELSE %]
|
||||
<div id="library_info" class="maincontent">
|
||||
<h1>[% IF ( singleBranchMode ) %]<span>Library</span>[% ELSE %]<span>Libraries</span>[% END %]</h1>
|
||||
|
||||
<h1>Libraries</h1>
|
||||
[% FOREACH library IN libraries %]
|
||||
<div class="section_library" id="section_[% library.branchcode | html %]">
|
||||
<h2 property="name">
|
||||
[% IF ( libraries.count > 1 ) %]
|
||||
<a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">[% library.branchname | html %]</a>
|
||||
[% IF ( branchcode == library.branchcode ) %]
|
||||
<div class="section_library" id="section_[% library.branchcode | html %]" class="current">
|
||||
[% ELSE %]
|
||||
[% library.branchname | html %]
|
||||
<div class="section_library" id="section_[% library.branchcode | html %]" class="">
|
||||
[% END %]
|
||||
<h2 property="name">
|
||||
<a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">
|
||||
[% library.branchname | html %]
|
||||
</a>
|
||||
</h2>
|
||||
[% PROCESS library_info %]
|
||||
</div>
|
||||
[% IF ( libraries.count == 1 ) %]
|
||||
<div class="library_description">
|
||||
[% PROCESS library_description %]
|
||||
</div>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</div> <!-- /#library_info -->
|
||||
[% END # /IF library %]
|
||||
|
||||
</div> <!-- /.col -->
|
||||
</div> <!-- /.row -->
|
||||
</div> <!-- /.container-fluid -->
|
||||
|
|
Loading…
Reference in a new issue