Bugzilla – Attachment 68507 Details for
Bug 16759
Make OPAC holdings table configurable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16759: (Alternative followup) Handle otherholdings gracefuly
Bug-16759-Alternative-followup-Handle-otherholding.patch (text/plain), 3.03 KB, created by
Tomás Cohen Arazi (tcohen)
on 2017-10-24 22:19:34 UTC
(
hide
)
Description:
Bug 16759: (Alternative followup) Handle otherholdings gracefuly
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2017-10-24 22:19:34 UTC
Size:
3.03 KB
patch
obsolete
>From e2b565bba9b94e1ad9ba74485fd8b4eb7c709269 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 24 Oct 2017 19:19:09 -0300 >Subject: [PATCH] Bug 16759: (Alternative followup) Handle otherholdings > gracefuly > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../opac-tmpl/bootstrap/en/modules/opac-detail.tt | 18 ++++++++++++++---- > 1 file changed, 14 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index 528d7d29d2..af77f55660 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -654,7 +654,7 @@ > [% IF too_many_items %] > <p>This record has many physical items ([% items_count %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | html %]&viewallitems=1">Click here to view them all.</a></p> > [% ELSIF ( itemloop.size ) %] >- [% INCLUDE items_table items=itemloop tab="holdings" %] >+ [% INCLUDE items_table items=itemloop tab="holdings" table_id="holdingst" %] > [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %] > [% IF acquisition_details.total_quantity == 1 %] > <span>1 item is on order.</span> >@@ -701,7 +701,7 @@ > [% IF (SeparateHoldings) %] > <div id="otherholdings"> > [% IF (otheritemloop.size) %] >- [% INCLUDE items_table items=otheritemloop tab="otherholdings" %] >+ [% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %] > [% ELSE %] > <span>No other items.</span> > [% END %] >@@ -1177,7 +1177,7 @@ > [%# End of template %] > > [% BLOCK items_table %] >- <table class="holdingst table table-bordered table-striped"> >+ <table class="table table-bordered table-striped" id="[% table_id %]"> > <thead> > <tr> > [% IF ( item_level_itypes ) %] >@@ -1437,7 +1437,17 @@ > }); > > var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) %]; >- KohaTable(".holdingst", { >+ >+ KohaTable("#holdingst", { >+ dom: 'B<"clearfix">t', >+ "columnDefs": [ >+ { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, >+ { "sType": "title-string", "aTargets" : [ "title-string" ] } >+ ], >+ "bKohaColumnsUseNames": true >+ }, columns_settings); >+ >+ KohaTable("#otherholdingst", { > dom: 'B<"clearfix">t', > "columnDefs": [ > { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, >-- >2.14.3
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 16759
:
65401
|
65512
|
65513
|
65563
|
65564
|
68342
|
68343
|
68344
|
68345
|
68346
|
68464
|
68465
| 68507 |
68528