diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt
index bf42a7072f..9328ac4857 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt
@@ -208,7 +208,18 @@
-
-
-
-
-

Loading
-
-
-
-
+
@@ -1044,6 +1050,13 @@ $(function() {
);
});
+ $(".download-list").on("click", function(e){
+ e.preventDefault();
+ var format = $(this).data("format");
+ $("#download_format").val( format );
+ $("#download_list").submit();
+ });
+
}); // document.ready
function sortMenu( sorting_form ){
diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl
index 0bcd273798..b94b4126ea 100755
--- a/opac/opac-shelves.pl
+++ b/opac/opac-shelves.pl
@@ -33,6 +33,7 @@ use C4::XSLT;
use Koha::Biblios;
use Koha::Biblioitems;
use Koha::CirculationRules;
+use Koha::CsvProfiles;
use Koha::Items;
use Koha::ItemTypes;
use Koha::Patrons;
@@ -385,6 +386,11 @@ if ( $op eq 'view' ) {
itemsloop => \@items,
sortfield => $sortfield,
direction => $direction,
+ csv_profiles => [
+ Koha::CsvProfiles->search(
+ { type => 'marc', used_for => 'export_records', staff_only => 0 }
+ )
+ ],
);
if ( $page ) {
my $pager = $contents->pager;