Bugzilla – Attachment 33599 Details for
Bug 13234
Make on-site checkouts visible in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 13234 [Follow-up] Make on-site checkouts visible in OPAC
PASSED-QA-Bug-13234-Follow-up-Make-on-site-checkou.patch (text/plain), 19.83 KB, created by
Katrin Fischer
on 2014-11-16 09:29:12 UTC
(
hide
)
Description:
[PASSED QA] Bug 13234 [Follow-up] Make on-site checkouts visible in OPAC
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2014-11-16 09:29:12 UTC
Size:
19.83 KB
patch
obsolete
>From dd3b09bd8e1879c4c2f43e729f324f9dcbd1c803 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 12 Nov 2014 11:40:14 -0500 >Subject: [PATCH] [PASSED QA] Bug 13234 [Follow-up] Make on-site checkouts > visible in OPAC > >This follow-up makes a few changes to the template: > >1. The "show all" / "show 50" links have been modified to show the > current state. >2. The tabs are only shown if the OnSiteCheckouts preference is turned > on. >3. The DataTables configuration has been modified so that title sorting > ignores articles, sorting on the the first column is disabled, and > sorting by date works regardless of your dateformat preference. >4. Some indentation has been corrected and markup comments added. > >To test the opacreadinghistory preference must be enabled. Log in to >the OPAC as a patron who has some on-site checkouts as well as regular >checkouts. With OnSiteCheckouts enabled, view the reading history page >and confirm that the tabs work correctly. Test the table sorting >controls. > >With OnSiteCheckouts disabled, confirm that the tabs do not appear. > >Test the "Show all items"/"Show last 50 items" links and confirm that >the behavior is correct. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >Works as described, passes tests and QA script. >Good addition to the new on-site feature. > >Note: It would be nice to show the 'on-site' note also in the >liste of checkouts on the summary page! >--- > .../bootstrap/en/modules/opac-readingrecord.tt | 184 +++++++++++---------- > 1 file changed, 99 insertions(+), 85 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 9a57af8..6a65000 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 %] >- <div id="opac-user-readingrec" class="statictabs2"> >+ <div id="opac-user-readingrec"> > <div class="resultscontrol resort"> > <form id="sortform" action="/cgi-bin/koha/opac-readingrecord.pl" method="get"> > [% UNLESS ( limit ) %]<input type="hidden" name="limit" value="full" />[% END %] >@@ -44,115 +44,124 @@ > </div> > > [% IF limit %] >- <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=full[% IF ( orderbytitle ) %]&order=title[% END %]">Show all items</a> >+ <p> >+ Showing last 50 items. <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=full[% IF ( orderbytitle ) %]&order=title[% END %]">Show all items</a> >+ </p> > [% ELSE %] >- <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=50[% IF ( orderbytitle ) %]&order=title[% END %]">Showing last 50 items</a> >+ <p> >+ Showing all items. <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=50[% IF ( orderbytitle ) %]&order=title[% END %]">Show last 50 items</a> >+ </p> > [% END %] > >+ [% IF Koha.Preference( 'OnSiteCheckouts' ) == 1 %] > <div id="tabs" class="toptabs"> > <ul> > <li><a href="#tabs-container" id="tab_all">All</a></li> > <li><a href="#tabs-container" id="tab_checkout">Checkouts</a></li> > <li><a href="#tabs-container" id="tab_onsite_checkout">On-site checkouts</a></li> > </ul> >+ [% END %] > <div id="tabs-container" style="overflow:hidden"> > <table id="readingrec" class="table table-bordered table-striped"> > <thead> > <tr> > <th style="display:none;">Type</th> >- <th></th> >- <th>Title</th> >+ <th class="nosort"></th> >+ <th class="anti-the">Title</th> > <th>Item type</th> > <th>Call no.</th> >- <th>Date</th> >+ <th class="title-string">Date</th> > [% IF ( OPACMySummaryHTML ) %] > <th>Links</th> > [% END %] > </tr> > </thead> > <tbody> >- [% FOREACH issue IN READING_RECORD %] >- <tr> >- <td style="display:none;"> >- [% IF issue.onsite_checkout %] >- onsite >- [% ELSE %] >- checkout >- [% END %] >- </td> >- <td> >- [% IF OPACAmazonCoverImages %] >- [% IF issue.normalized_isbn %] >- <a href="http://www.amazon.com/gp/reader/[% issue.normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% issue.normalized_isbn %].01.THUMBZZZ.jpg" alt="" class="item-thumbnail" /></a> >- [% ELSE %] >- <span class="no-image">No cover image available</span> >- [% END %] >- [% END %] >+ [% FOREACH issue IN READING_RECORD %] >+ <tr> >+ <td style="display:none;"> >+ [% IF issue.onsite_checkout %] >+ onsite >+ [% ELSE %] >+ checkout >+ [% END %] >+ </td> >+ <td> >+ [% IF OPACAmazonCoverImages %] >+ [% IF issue.normalized_isbn %] >+ <a href="http://www.amazon.com/gp/reader/[% issue.normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% issue.normalized_isbn %].01.THUMBZZZ.jpg" alt="" class="item-thumbnail" /></a> >+ [% ELSE %] >+ <span class="no-image">No cover image available</span> >+ [% END %] >+ [% END %] > >- [% IF GoogleJackets %] >- [% IF issue.normalized_isbn %] >- <div title="[% issue.biblionumber |url %]" class="[% issue.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div> >- [% ELSE %] >- <span class="no-image">No cover image available</span> >- [% END %] >- [% END %] >+ [% IF GoogleJackets %] >+ [% IF issue.normalized_isbn %] >+ <div title="[% issue.biblionumber |url %]" class="[% issue.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div> >+ [% ELSE %] >+ <span class="no-image">No cover image available</span> >+ [% END %] >+ [% END %] > >- [% IF BakerTaylorEnabled %] >- [% IF issue.normalized_isbn %] >- <a href="https://[% BakerTaylorBookstoreURL |html %][% issue.normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% issue.normalized_isbn %]" /></a> >- [% ELSE %] >- <span class="no-image">No cover image available</span> >- [% END %] >- [% END %] >+ [% IF BakerTaylorEnabled %] >+ [% IF issue.normalized_isbn %] >+ <a href="https://[% BakerTaylorBookstoreURL |html %][% issue.normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% issue.normalized_isbn %]" /></a> >+ [% ELSE %] >+ <span class="no-image">No cover image available</span> >+ [% END %] >+ [% END %] > >- [% IF SyndeticsEnabled && SyndeticsCoverImages %] >- [% IF using_https %] >- <img src="https://secure.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% issue.normalized_upc %]&oclc=[% issue.normalized_oclc %]" alt="" class="item-thumbnail" /> >- [% ELSE %] >- <img src="http://www.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% issue.normalized_upc %]&oclc=[% issue.normalized_oclc %]" alt="" class="item-thumbnail" /> >- [% END %] >- [% END %] >- </td> >- <td> >- [% IF issue.BiblioDefaultViewmarc %] >- <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title |html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield %][% END %][% END %]</a> >- [% ELSIF issue.BiblioDefaultViewisbd %] >- <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title |html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield %][% END %][% END %]</a> >- [% ELSE %] >- <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title |html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield %][% END %][% END %]</a> >- [% END %] >- <span class="item-details">[% issue.author %]</span> >- </td> >- <td> >- [% UNLESS ( noItemTypeImages ) %] >- [% IF ( issue.imageurl ) %] >- <img src="[% issue.imageurl %]" alt="" /> >- [% END %] >- [% END %] >- <span class="tdlabel">Item type:</span> >- [% issue.description %]</td> >- <td> >- <span class="tdlabel">Call number:</span> >- [% issue.itemcallnumber %] >- </td> >- <td> >- [% IF issue.returndate %] >- <span class="tdlabel">Check-in date:</span> >- [% issue.returndate | $KohaDates %] >- [% ELSE %] >- <em>(Checked out)</em> >- [% END %] >- </td> >- [% IF OPACMySummaryHTML %] >- <td>[% issue.MySummaryHTML %]</td> >- [% END %] >- </tr> >- [% END %] >- </tbody> >- </table> >- </div> <!-- / .tabs-container --> >- </div> <!-- / .opac-user-readingrec --> >- [% END %] >+ [% IF SyndeticsEnabled && SyndeticsCoverImages %] >+ [% IF using_https %] >+ <img src="https://secure.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% issue.normalized_upc %]&oclc=[% issue.normalized_oclc %]" alt="" class="item-thumbnail" /> >+ [% ELSE %] >+ <img src="http://www.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% issue.normalized_upc %]&oclc=[% issue.normalized_oclc %]" alt="" class="item-thumbnail" /> >+ [% END %] >+ [% END %] >+ </td> >+ <td> >+ [% IF issue.BiblioDefaultViewmarc %] >+ <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title |html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield %][% END %][% END %]</a> >+ [% ELSIF issue.BiblioDefaultViewisbd %] >+ <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title |html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield %][% END %][% END %]</a> >+ [% ELSE %] >+ <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title |html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield %][% END %][% END %]</a> >+ [% END %] >+ <span class="item-details">[% issue.author %]</span> >+ </td> >+ <td> >+ [% UNLESS ( noItemTypeImages ) %] >+ [% IF ( issue.imageurl ) %] >+ <img src="[% issue.imageurl %]" alt="" /> >+ [% END %] >+ [% END %] >+ <span class="tdlabel">Item type:</span> >+ [% issue.description %]</td> >+ <td> >+ <span class="tdlabel">Call number:</span> >+ [% issue.itemcallnumber %] >+ </td> >+ <td> >+ [% IF issue.returndate %] >+ <span class="tdlabel">Check-in date:</span> >+ <span title="[% issue.returndate %]">[% issue.returndate | $KohaDates %]</span> >+ [% ELSE %] >+ <span title="Checked out"><em>(Checked out)</em></span> >+ [% END %] >+ </td> >+ [% IF OPACMySummaryHTML %] >+ <td>[% issue.MySummaryHTML %]</td> >+ [% END %] >+ </tr> >+ [% END # / FOREACH issue %] >+ </tbody> >+ </table> >+ </div> <!-- / .tabs-container --> >+ [% IF ( Koha.Preference( 'OnSiteCheckouts' ) == 1 ) %] >+ </div> <!-- /#tabs --> >+ [% END %] >+ </div> <!-- / .opac-user-readingrec --> >+ [% END # / IF READING_RECORD.size %] > </div> <!-- / .userreadingrecord --> > </div> <!-- / .span10 --> > </div> <!-- / .row-fluid --> >@@ -173,6 +182,11 @@ > > var table = $("#readingrec").dataTable($.extend(true, {}, dataTablesDefaults, { > "sPaginationType": "four_button", >+ "aoColumnDefs": [ >+ { "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false }, >+ { "sType": "anti-the", "aTargets" : [ "anti-the" ] }, >+ { "sType": "title-string", "aTargets" : [ "title-string" ] } >+ ] > })); > var tabs = $("#tabs").tabs({ > select: function(e, ui) { >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13234
:
33488
|
33497
|
33498
|
33515
|
33516
|
33598
| 33599