diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt
index f57ee6a92f..a0e1490cdf 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt
@@ -39,7 +39,17 @@
Clear all
| Actions:
- Export selected items
+ [% IF csv_profiles.count %]
+ Export selected items
+ Using the following CSV profile:
+
+ [% ELSE %]
+ Export selected items
+ [% END %]
@@ -180,7 +190,8 @@
itemnumbers.push($(this).val());
});
if (itemnumbers.length > 0) {
- var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
+ var csv_profile_id = $("#csv_profile_id option:selected").val();
+ var url = '/cgi-bin/koha/reports/itemslost.pl?op=export&csv_profile_id='+csv_profile_id;
url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
$('a.itemselection_action_export').attr('href', url);
} else {
@@ -203,6 +214,9 @@
$("input[name='itemnumber'][type='checkbox']").change(function() {
itemSelectionBuildActionLinks();
});
+ $("#csv_profile_id").change(function() {
+ itemSelectionBuildActionLinks();
+ });
$(".SelectAll").on("click",function(e){
e.preventDefault();
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt
index 04fbca834e..06d21cea66 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt
@@ -91,6 +91,7 @@
[% IF used_for_code == 'export_records' %] Export records
[% ELSIF used_for_code == 'late_issues' %] Late serial issues claims
[% ELSIF used_for_code == 'export_basket' %] Basket export in acquisition
+ [% ELSIF used_for_code == 'export_lost_items' %] Export lost items in report
[% ELSE %] Unknown usage
[% END %]
[% END %]
@@ -131,7 +132,7 @@