From db4fddd31db1d7d3c3b38230d60511aec8b356a1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 14 Sep 2012 11:39:35 +0200 Subject: [PATCH] Bug 7986: Followup: Hide the export link unless sysprefs are set 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. Signed-off-by: Paul Poulain --- .../prog/en/modules/circ/circulation.tt | 32 ++++++++++++------- 1 file 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 c95002d4be..2be26b45d9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -763,7 +763,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' %] @@ -833,10 +835,12 @@ No patron matched [% message %] [% END %] [% END %] - + [% IF export_remove_fields OR export_with_csv_profile %] + - + + [% END %] [% END %] [% END %] @@ -912,10 +916,12 @@ No patron matched [% message %] [% END %] [% END %] - + [% IF export_remove_fields OR export_with_csv_profile %] + - + + [% END %] [% END %] [% END %] @@ -931,13 +937,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 %]