From 75e4bce0bcbff0f054fd92528c9b40c61b08c9d1 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 328c870..895faf4 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -834,7 +834,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 %] @@ -1141,7 +1141,11 @@ [% IF ( itemdata_copynumber ) %]Copy number[% 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 @@ -1215,7 +1219,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 8b6441f..d556c28 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -1247,7 +1247,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 %] @@ -1542,7 +1542,11 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% IF ( itemdata_copynumber ) %]Copy number[% 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 @@ -1600,7 +1604,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