[Koha-patches] [PATCH] in export.tmpl if IndependantBranches is on automatically check remove non-l
Michael Hafen
mdhafen at tech.washk12.org
Tue Sep 29 22:03:18 CEST 2009
If IndependantBranches is on this option should always be checked. So have
checked automatically.
---
.../prog/en/modules/tools/export.tmpl | 4 ++++
tools/export.pl | 1 +
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tmpl
index 68a2cf1..33387e2 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tmpl
@@ -107,7 +107,11 @@ Calendar.setup(
</li>
<li>
<label for="strip_nonlocal_items">Remove non-local items</label>
+ <!-- TMPL_IF NAME="Independant_Branches" -->
+ <input id="strip_nonlocal_items" type="checkbox" name="strip_nonlocal_items" checked="checked" />
+ <!-- TMPL_ELSE -->
<input id="strip_nonlocal_items" type="checkbox" name="strip_nonlocal_items" />
+ <!-- /TMPL_IF -->
</li>
<li>
<label for="dont_export_fields">Don't export fields</label>
diff --git a/tools/export.pl b/tools/export.pl
index 6123494..5195bac 100755
--- a/tools/export.pl
+++ b/tools/export.pl
@@ -183,6 +183,7 @@ else {
branchloop => $branchloop,
itemtypeloop => \@itemtypesloop,
DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(),
+ Independant_Branches => $limit_ind_branch,
);
output_html_with_http_headers $query, $cookie, $template->output;
--
1.6.0.4
More information about the Koha-patches
mailing list