use Koha::Biblios;
use Koha::Biblioitems;
use Koha::CirculationRules;
+use Koha::CsvProfiles;
use Koha::Items;
use Koha::ItemTypes;
use Koha::Patrons;
use constant ANYONE => 2;
-my $query = new CGI;
+my $query = CGI->new;
my $template_name = $query->param('rss') ? "opac-shelves-rss.tt" : "opac-shelves.tt";
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;
listsview => 1,
);
-output_html_with_http_headers $query, $cookie, $template->output;
+my $content_type = $query->param('rss')? 'rss' : 'html';
+output_with_http_headers $query, $cookie, $template->output, $content_type;