From 39d505e9d61a7e7a51d91974f39d4daa960dd1e7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 12 Nov 2014 11:52:46 +0100 Subject: [PATCH] [SIGNED-OFF] Bug 13234: On-site checkouts - OPAC Content-Type: text/plain; charset="utf-8" This patch introduces the code lost in bug 10860 for the OPAC side. Test plan: Go on opac-readingrecord.pl and verify the tabs work as expected and the "show all items" and "show 50 items" links. Signed-off-by: Owen Leonard --- .../bootstrap/en/modules/opac-readingrecord.tt | 103 +++++++++++++------- opac/opac-readingrecord.pl | 1 - 2 files changed, 66 insertions(+), 38 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt index e23fb91..9a57af8 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt @@ -31,7 +31,7 @@ [% IF READING_RECORD.size == 0 %] You have never borrowed anything from this library. [% ELSE %] -
+
[% UNLESS ( limit ) %][% END %] @@ -43,32 +43,43 @@
- - -
- - - - - - - [% IF ( OPACMySummaryHTML ) %] - - [% END %] - + [% IF limit %] + Show all items + [% ELSE %] + Showing last 50 items + [% END %] +
TitleItem typeCall no.DateLinks
+ + + + + + + + + [% IF ( OPACMySummaryHTML ) %] + + [% END %] + + + [% FOREACH issue IN READING_RECORD %] - [% IF loop.even %][% ELSE %][% END %] + + - + - + - - + - [% IF OPACMySummaryHTML %] - + + [% IF OPACMySummaryHTML %] + + [% END %] + [% END %] - - [% END %] +
TypeTitleItem typeCall no.DateLinks
+ [% IF issue.onsite_checkout %] + onsite + [% ELSE %] + checkout + [% END %] + [% IF OPACAmazonCoverImages %] [% IF issue.normalized_isbn %] @@ -101,8 +112,8 @@ [% END %] [% END %] - + [% IF issue.BiblioDefaultViewmarc %] [% issue.title |html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield %][% END %][% END %] [% ELSIF issue.BiblioDefaultViewisbd %] @@ -111,8 +122,8 @@ [% issue.title |html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield %][% END %][% END %] [% END %] [% issue.author %] - + [% UNLESS ( noItemTypeImages ) %] [% IF ( issue.imageurl ) %] @@ -120,23 +131,24 @@ [% END %] Item type: [% issue.description %] + Call number: [% issue.itemcallnumber %] - + [% IF issue.returndate %] Check-in date: [% issue.returndate | $KohaDates %] [% ELSE %] (Checked out) [% END %] - [% issue.MySummaryHTML %][% issue.MySummaryHTML %]
@@ -149,6 +161,7 @@ [% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] +[% INCLUDE 'datatables.inc' %] diff --git a/opac/opac-readingrecord.pl b/opac/opac-readingrecord.pl index 6d9e2fc..6e38cfd 100755 --- a/opac/opac-readingrecord.pl +++ b/opac/opac-readingrecord.pl @@ -139,7 +139,6 @@ for(qw(AmazonCoverImages GoogleJackets)) { # BakerTaylorEnabled handled above $template->param( READING_RECORD => $issues, limit => $limit, - showfulllink => 1, readingrecview => 1, OPACMySummaryHTML => $opac_summary_html ? 1 : 0, ); -- 1.7.9.5