Bugzilla – Attachment 25654 Details for
Bug 11169
OPAC: Display acquisition details
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
MT12445: Hide the date_due column
MT12445-Hide-the-datedue-column.patch (text/plain), 6.18 KB, created by
Jonathan Druart
on 2014-02-26 15:23:28 UTC
(
hide
)
Description:
MT12445: Hide the date_due column
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-02-26 15:23:28 UTC
Size:
6.18 KB
patch
obsolete
>From 2f6f1b2bd82aff680e478ad281a55d7bd85d1638 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 26 Feb 2014 16:15:13 +0100 >Subject: [PATCH] MT12445: Hide the date_due column > >The date due information is useless for in order items. > >http://bugs.koha-community.org/show_bug.cgi?id=11169 >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 14 +++++++++++--- > koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 15 ++++++++++++--- > 2 files changed, 23 insertions(+), 6 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 a8b5fc0..d56013d 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -832,7 +832,7 @@ > <h2>Acquisition details</h2> > [% IF Koha.Preference('AcqCreateItem') == 'ordering' %] > The following items are on order. >- [% INCLUDE items_table items=acquisition_details.items tab="acquisition_details" noshelfbrowser=1 %] >+ [% INCLUDE items_table items=acquisition_details.items tab="acquisition_details" noshelfbrowser=1 without="date_due" %] > [% ELSE %] > [% acquisition_details.total_quantity %] items are on order. > [% END %] >@@ -1137,7 +1137,11 @@ > [% IF ( itemdata_copynumber ) %]<th id="item_copy" class="copynumber">Copy</th>[% END %] > <th id="item_status" class="status">Status</th> > [% IF ( itemdata_itemnotes ) %]<th id="item_notes" class="notes">Notes</th>[% END %] >- <th id="item_datedue" class="date_due">Date due</th> >+ [% IF without != "date_due" %] >+ <th id="item_datedue" class="date_due">Date due</th> >+ [% ELSE %] >+ <th id="item_datedue" class="date_due" style="display:none;">Date due</th> >+ [% END %] > [% IF ( OPACShowBarcode ) %]<th id="item_barcode" class="barcode">Barcode</th>[% END %] > [% IF holds_count.defined %] > <th>Item holds</th> >@@ -1211,7 +1215,11 @@ > [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %] > <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td> > [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %] >- <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates %]</span></td> >+ [% IF without != "date_due" %] >+ <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates %]</span></td> >+ [% ELSE %] >+ <td class="date_due" style="display:none;"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates %]</span></td> >+ [% END %] > [% IF ( OPACShowBarcode ) %]<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>[% END %] > [% IF holds_count.defined || show_priority %] > <td class="holds_count"> >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt >index 538942f..e580425 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt >@@ -1244,7 +1244,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () { > <h2>Acquisition details</h2> > [% IF Koha.Preference('AcqCreateItem') == 'ordering' %] > The following items are on order. >- [% INCLUDE items_table items=acquisition_details.items tab="acquisition_details" noshelfbrowser=1 %] >+ [% INCLUDE items_table items=acquisition_details.items tab="acquisition_details" noshelfbrowser=1 without="date_due" %] > [% ELSE %] > [% acquisition_details.total_quantity %] items are on order. > [% END %] >@@ -1527,7 +1527,11 @@ YAHOO.util.Event.onContentReady("furtherm", function () { > [% IF ( itemdata_copynumber ) %]<th id="item_copy" class="copynumber">Copy</th>[% END %] > <th id="item_status" class="status">Status</th> > [% IF ( itemdata_itemnotes ) %]<th id="item_notes" class="notes">Notes</th>[% END %] >- <th id="item_datedue" class="date_due">Date due</th> >+ [% IF without != "date_due" %] >+ <th id="item_datedue" class="date_due">Date due</th> >+ [% ELSE %] >+ <th id="item_datedue" class="date_due" style="display:none;">Date due</th> >+ [% END %] > [% IF ( OPACShowBarcode ) %]<th id="item_barcode" class="barcode">Barcode</th>[% END %] > [% IF holds_count.defined %] > <th>Item holds</th> >@@ -1585,7 +1589,12 @@ YAHOO.util.Event.onContentReady("furtherm", function () { > [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %] > <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td> > [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %] >- <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates %]</span></td> >+ >+ [% IF without != "date_due" %] >+ <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates %]</span></td> >+ [% ELSE %] >+ <td class="date_due" style="display:none;"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates %]</span></td> >+ [% END %] > [% IF ( OPACShowBarcode ) %]<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>[% END %] > [% IF holds_count.defined || show_priority %] > <td class="holds_count"> >-- >1.7.10.4
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 11169
:
22594
|
22595
|
25654
|
25657
|
26082
|
26083
|
26084
|
26330
|
26331
|
26332
|
26343
|
26344
|
26345
|
27018
|
27019
|
27020
|
28045
|
28419
|
28483
|
28511
|
28512
|
28522
|
28523
|
28524
|
33522