From 94ffe2a6195e1968270976ed44a43e4a2dd49832 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 26 Feb 2014 16:15:13 +0100 Subject: [PATCH] Bug 11169: Hide the date_due column The date due information is useless for in order items. --- 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 @@

Acquisition details

[% 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 ) %]Copy[% END %] Status [% IF ( itemdata_itemnotes ) %]Notes[% END %] - Date due + [% IF without != "date_due" %] + Date due + [% ELSE %] + Date due + [% END %] [% IF ( OPACShowBarcode ) %]Barcode[% END %] [% IF holds_count.defined %] Item holds @@ -1211,7 +1215,11 @@ [% IF ( itemdata_copynumber ) %][% ITEM_RESULT.copynumber %][% END %] [% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %] [% IF ( itemdata_itemnotes ) %][% ITEM_RESULT.itemnotes %][% END %] - [% ITEM_RESULT.datedue | $KohaDates %] + [% IF without != "date_due" %] + [% ITEM_RESULT.datedue | $KohaDates %] + [% ELSE %] + [% ITEM_RESULT.datedue | $KohaDates %] + [% END %] [% IF ( OPACShowBarcode ) %][% ITEM_RESULT.barcode %][% END %] [% IF holds_count.defined || show_priority %] 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 () {

Acquisition details

[% 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 ) %]Copy[% END %] Status [% IF ( itemdata_itemnotes ) %]Notes[% END %] - Date due + [% IF without != "date_due" %] + Date due + [% ELSE %] + Date due + [% END %] [% IF ( OPACShowBarcode ) %]Barcode[% END %] [% IF holds_count.defined %] Item holds @@ -1585,7 +1589,12 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% IF ( itemdata_copynumber ) %][% ITEM_RESULT.copynumber %][% END %] [% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %] [% IF ( itemdata_itemnotes ) %][% ITEM_RESULT.itemnotes %][% END %] - [% ITEM_RESULT.datedue | $KohaDates %] + + [% IF without != "date_due" %] + [% ITEM_RESULT.datedue | $KohaDates %] + [% ELSE %] + [% ITEM_RESULT.datedue | $KohaDates %] + [% END %] [% IF ( OPACShowBarcode ) %][% ITEM_RESULT.barcode %][% END %] [% IF holds_count.defined || show_priority %] -- 1.7.10.4