Owen Leonard
79bf4485c1
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: - Recent comments - Most popular - Enable "PatronSelfRegistration" and set "PatronSelfRegistrationVerifyByEmail" to "Don't require." - In the OPAC, go to "Register here." Fill out the form and submit your registration. - Check the "Registration complete" page. - Set "PatronSelfRegistrationVerifyByEmail" to "Require" - Submit another registration and check the "Confirm your registration" page. - Visit the registration page passing an invalid token: /cgi-bin/koha/opac-registration-verify.pl?token=foo Check the "Registration invalid" page. - Enable the "ArticleRequests" system preference and log in to the OPAC. - Perform a search which will return results. - Check the search results page - View the detail page for one of the results. - Click "Request article." - Return to the detail page and click "Place hold." - Complete each step of the hold process. - Enable the "OpacAllowSharingPrivateLists" system preference. - Create a private list if necessary. - Click the "Share" link - Locate a serial record and view the detail page. - Click the "More details" link under the "Subscriptions" plan - Enable the system preference "suggestion." - From the logged-in user summary page click "Purchase suggestions" - Click the "New purchase suggestion" link - Enable the "AnonSuggestions" and "OPACViewOthersSuggestions" system preferences and log out of the OPAC. - View the purchase suggestions page. - Enable the "OpacCloud" system preference and go to the "Subject cloud" page. (the feature doesn't need to be configured to test). - Populate the "RestrictedPageTitle" and "RestrictedPageContent" system preferences and navigate directly to /cgi-bin/koha/opac-restrictedpage.pl - Remove the contents of "RestrictedPageTitle" and check the page again. - This patch also updates svc/suggestion.tt but I don't know how to test it! 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>
168 lines
8.3 KiB
Text
168 lines
8.3 KiB
Text
[% USE raw %]
|
|
[% USE Koha %]
|
|
[% USE Branches %]
|
|
[% USE AuthorisedValues %]
|
|
[% USE ItemTypes %]
|
|
[% 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>Most popular titles › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% BLOCK cssinclude %]
|
|
<style>
|
|
#search-facets fieldset {
|
|
border: 0;
|
|
margin: 0;
|
|
padding: .3em;
|
|
}
|
|
#search-facets ol{
|
|
padding: .3em;
|
|
}
|
|
#search-facets li {
|
|
list-style-type: none;
|
|
padding: 4px 4px;
|
|
}
|
|
#search-facets label{
|
|
font-weight: bold;
|
|
display: block;
|
|
margin: .2em 0;
|
|
}
|
|
#search-facets fieldset.action {
|
|
padding-left: 4px;
|
|
margin: .3em;
|
|
}
|
|
#search-facets select {
|
|
max-width: 100%;
|
|
}
|
|
</style>
|
|
[% END %]
|
|
</head>
|
|
[% INCLUDE 'bodytag.inc' bodyid='opac-topissues' bodyclass='scrollto' %]
|
|
[% INCLUDE 'masthead.inc' %]
|
|
|
|
<div class="main">
|
|
[% WRAPPER breadcrumbs %]
|
|
[% WRAPPER breadcrumb_item bc_active= 1 %]
|
|
<span>Most popular titles</span>
|
|
[% END %]
|
|
[% END #/ WRAPPER breadcrumbs %]
|
|
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-lg-2">
|
|
<div id="usertopissues">
|
|
[% INCLUDE 'opac-topissues.inc' %]
|
|
[% IF ( OpacNav || OpacNavBottom ) %]
|
|
[% INCLUDE 'navigation.inc' %]
|
|
[% END %]
|
|
</div>
|
|
</div>
|
|
<div class="col-10 order-first order-md-first order-lg-2">
|
|
<div id="topissues" class="maincontent">
|
|
|
|
<h1>Most popular</h1>
|
|
|
|
[% IF ( results ) %]
|
|
[% OpacAdvancedSearchTypes = Koha.Preference('OpacAdvancedSearchTypes').split('\|') %]
|
|
<table id="topissuest" class="table table-bordered table-striped">
|
|
<caption>
|
|
The [% limit | html %] most checked-out
|
|
[% IF selected_itemtype %]
|
|
[% ItemTypes.GetDescription(selected_itemtype) | html %]
|
|
[% END %]
|
|
[% IF ( branch ) %]
|
|
at
|
|
[% Branches.GetName( branch ) | html %]
|
|
[% END %]
|
|
[% IF ( timeLimit != 999 ) %]
|
|
in the past [% timeLimitFinite | html %] months
|
|
[% ELSE %]
|
|
of all time
|
|
[% END %]
|
|
</caption>
|
|
<thead>
|
|
<tr>
|
|
<th class="all anti-the">Title</th>
|
|
<th>Item type</th>
|
|
<th>Collection</th>
|
|
<th>Checkouts</th>
|
|
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
|
|
<th class="NoSort"> </th>
|
|
[% END %]
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH result IN results %]
|
|
<tr>
|
|
<td>
|
|
<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% result.biblionumber | html %]">[% result.title | html %]</a><p>[% result.author | html %]
|
|
[% IF ( result.publishercode ) %]- [% result.publishercode | html %][% END %]
|
|
[% IF ( result.place ) %][% result.place | html %][% END %]
|
|
[% IF ( result.publicationyear ) %]
|
|
[% result.publicationyear | html %]
|
|
[% ELSIF ( result.copyrightdate ) %]
|
|
[% result.copyrightdate | html %]
|
|
[% END %]
|
|
[% IF ( result.pages ) %] - [% result.pages | html %][% END %]
|
|
[% IF ( result.item('size') ) %][% result.item('size') | html %][% END %]</p>
|
|
</td>
|
|
<td>
|
|
<span class="tdlabel">Item type</span>
|
|
[% ItemTypes.GetDescription(result.itemtype) | html %]
|
|
</td>
|
|
<td>
|
|
<span class="tdlabel">Collection</span>
|
|
[% AuthorisedValues.GetByCode('ccode', result.ccode, 1) | html %]
|
|
</td>
|
|
<td data-order="[% result.count | html %]">
|
|
<span class="tdlabel">Checkouts: </span>
|
|
[% result.count | html %]
|
|
</td>
|
|
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
|
|
<td>
|
|
[% IF Koha.Preference( 'OPACHoldRequests' ) == 1 %]
|
|
[% UNLESS ( result.norequests ) %]
|
|
<a class="btn btn-link btn-sm hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% result.biblionumber | uri %]"><i class="fa fa-fw fa-bookmark" aria-hidden="true"></i> Place hold</a>
|
|
[% END %]
|
|
[% END %]
|
|
</td>
|
|
[% END %]
|
|
<td></td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
[% ELSE %]
|
|
No results, try to change filters.
|
|
[% END # / IF results %]
|
|
</div> <!-- / #topissues -->
|
|
</div> <!-- / .col-lg-10 -->
|
|
</div> <!-- / .row -->
|
|
</div> <!-- / .container-fluid -->
|
|
</div> <!-- / .main -->
|
|
|
|
[% INCLUDE 'opac-bottom.inc' %]
|
|
[% BLOCK jsinclude %]
|
|
[% INCLUDE 'datatables.inc' %]
|
|
<script>
|
|
$(function() {
|
|
$("#topissuest").dataTable($.extend(true, {}, dataTablesDefaults, {
|
|
"autoWidth": false,
|
|
"sorting": [[3, "desc"]],
|
|
"columnDefs": [
|
|
{ "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] },
|
|
{ "type": "anti-the", "targets" : [ "anti-the" ] },
|
|
{ "className": 'dtr-control', "orderable": false, "targets": -1 },
|
|
],
|
|
"responsive": {
|
|
details: {
|
|
type: 'column',
|
|
target: -1
|
|
}
|
|
},
|
|
}));
|
|
});
|
|
</script>
|
|
[% END %]
|