From 9dfd62e3af16e3ceb729942b66ad6693851a2326 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 14 Sep 2012 11:39:35 +0200 Subject: [PATCH] [SIGNED-OFF] Bug 7986: Followup: Hide the export link unless sysprefs are set Content-Type: text/plain; charset="utf-8" If at least one of both sysprefs (ExportRemoveFields and ExportWithCsvProfile) is filled, the export link is displayed Signed-off-by: Marc Veron Tested with both sysprefs filled/not filled, patch behaves as expected. --- .../prog/en/modules/circ/circulation.tt | 32 ++++++++++++------- 1 files changed, 20 insertions(+), 12 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index db17ced..652cbf8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -774,7 +774,9 @@ No patron matched [% message %] Price Renew

select all | none

Check in

select all | none

- Export

select all | none

+ [% IF export_remove_fields OR export_with_csv_profile %] + Export

select all | none

+ [% END %] [% IF ( todayissues ) %] [% INCLUDE 'checkouts-table-footer.inc' %] @@ -844,10 +846,12 @@ No patron matched [% message %] [% END %] [% END %] - + [% IF export_remove_fields OR export_with_csv_profile %] + - + + [% END %] [% END %] [% END %] @@ -923,10 +927,12 @@ No patron matched [% message %] [% END %] [% END %] - + [% IF export_remove_fields OR export_with_csv_profile %] + - + + [% END %] [% END %] [% END %] @@ -942,13 +948,15 @@ No patron matched [% message %] [% END %] -

- Don't export fields : - Export - - - - + [% IF export_remove_fields OR export_with_csv_profile %] +

+ Don't export fields : + Export + + + + + [% END %] [% END %] -- 1.7.2.5