Owen Leonard
44aff60fa2
This patch updates several OPAC templates so that they use a new WRAPPER for displaying breadcrumbs. Apply the patch and log in to the OPAC. Test each of the following pages and their variations. Breadcrumbs should look correct, and each link should be correct: - Navigate to /cgi-bin/koha/ilsdi.pl - Check a variety of links in the list - Advanced search - Locate a bibliographic record and view the ISBD detail page - View the MARC detail page - Locate a serial record which has a patron notification notice defined in its subscription details - On the detail view under the "Subscriptions" tab, click the "Subscribe to email notification on new issues" button. - Confirm the subscription, then when you return to the detail page, click "Cancel email notification" to check that view as well. - Authority search - Perform a search which will return results - Click the "Details" link on one of the results - Also view the "MARC view" tab (note that I didn't address the breadcrumb inconsistency between the normal and MARC view in this patch). - Try to view a bibliographic record which is suppressed in the OPAC. Requires OpacSuppression enabled and OpacSuppressionRedirect set to "An explanatory page" - Set the value of 942$n to 1 to suppress it in the OPAC. - In a system with ElasticSearch enabled, go to "Browse search" (or navigate directly to /cgi-bin/koha/opac-browse.pl - With OpacBrowser enabled, go to "Browse by hierarchy." Signed-off-by: Philip Orr <philip.orr@lmscloud.de> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
88 lines
5 KiB
Text
88 lines
5 KiB
Text
[% USE raw %]
|
|
[% USE Koha %]
|
|
[% USE AdditionalContents %]
|
|
[% 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' %]
|
|
<title>Browse our catalog › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% BLOCK cssinclude %][% END %]
|
|
</head>
|
|
[% INCLUDE 'bodytag.inc' bodyid='opac-browser' %]
|
|
[% INCLUDE 'masthead.inc' %]
|
|
|
|
<div class="main">
|
|
[% WRAPPER breadcrumbs %]
|
|
[% WRAPPER breadcrumb_item bc_active= 1 %]
|
|
<span>Browse our catalog</span>
|
|
[% END %]
|
|
[% END #/ WRAPPER breadcrumbs %]
|
|
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
[% IF ( OpacNav || OpacNavBottom ) %]
|
|
<div class="col-lg-2">
|
|
<div id="navigation">
|
|
[% INCLUDE 'navigation.inc' %]
|
|
</div>
|
|
</div>
|
|
<div class="col-10 order-first order-md-first order-lg-2">
|
|
[% ELSE %]
|
|
<div class="col order-first order-md-first order-lg-2">
|
|
[% END %]
|
|
|
|
<div id="userbrowser" class="maincontent">
|
|
<h1>Browse our catalog</h1>
|
|
|
|
[% IF ( have_hierarchy ) %]
|
|
<ul>
|
|
<li>
|
|
[% description | html %] <a href="opac-browser.pl">Top level</a>
|
|
</li>
|
|
<li style="list-style-type: none;">
|
|
<ul>
|
|
[% FOREACH HIERARCHY_LOO IN HIERARCHY_LOOP %]
|
|
<li>
|
|
<a href="opac-browser.pl?level=[% HIERARCHY_LOO.level | uri %]&filter=[% HIERARCHY_LOO.classification |uri %]">[% HIERARCHY_LOO.description | html %]</a>
|
|
</li>
|
|
<li style="list-style-type: none;">
|
|
[% END %]
|
|
<li style="list-style-type: none;">
|
|
<table class="table table-bordered table-striped">
|
|
<caption class="sr-only">Items in catalog</caption>
|
|
<tr>
|
|
[% FOREACH LEVEL_LOO IN LEVEL_LOOP %]
|
|
<td>
|
|
<p>
|
|
[% IF ( LEVEL_LOO.endnode ) %]
|
|
<a href="opac-search.pl?q=Dewey-classification:[% LEVEL_LOO.classification |uri %]">[% LEVEL_LOO.description | html %]</a>
|
|
[% ELSE %]
|
|
<a href="opac-browser.pl?level=[% LEVEL_LOO.level | uri %]&filter=[% LEVEL_LOO.classification |uri %]">[% LEVEL_LOO.description | html %]</a>
|
|
[% END %]
|
|
</p>
|
|
<p style="font-size:0.75em"><em>([% LEVEL_LOO.number | html %] biblios)</em></p>
|
|
</td>
|
|
[% IF ( LEVEL_LOO.count3 ) %]</tr><tr>[% END %]
|
|
[% END %]
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
[% FOREACH HIERARCHY_LOO IN HIERARCHY_LOOP %]
|
|
</ul></li>
|
|
[% END %]
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
[% ELSE %]
|
|
<div class="warning">The browser table is empty. this feature is not fully set-up. See the <a href="http://wiki.koha-community.org/wiki/Opac_browse_feature">Koha Wiki</a> for more information on what it does and how to configure it.</div>
|
|
[% END # / IF have_hierarchy %]
|
|
|
|
</div> <!-- / .userbrowser -->
|
|
|
|
</div> <!-- / .col-10/12 -->
|
|
</div> <!-- / .row -->
|
|
</div> <!-- / .container-fluid -->
|
|
</div> <!-- / .main -->
|
|
|
|
[% INCLUDE 'opac-bottom.inc' %]
|
|
[% BLOCK jsinclude %][% END %]
|