View | Details | Raw Unified | Return to bug 14263
Collapse All | Expand All

(-)a/catalogue/itemsearch.pl (-1 / +4 lines)
Lines 303-309 if ($format eq 'csv') { Link Here
303
        type => 'text/csv',
303
        type => 'text/csv',
304
        attachment => 'items.csv',
304
        attachment => 'items.csv',
305
    });
305
    });
306
    print $template->output;
306
307
    for my $line ( split '\n', $template->output ) {
308
        print "$line\n" unless $line =~ m|^\s*$|;
309
    }
307
} else {
310
} else {
308
    output_with_http_headers $cgi, $cookie, $template->output, $content_type;
311
    output_with_http_headers $cgi, $cookie, $template->output, $content_type;
309
}
312
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.csv.inc (-1 / +1 lines)
Lines 1-4 Link Here
1
[%- USE Branches -%]
1
[%- USE Branches -%]
2
[%- biblio = item.biblio -%]
2
[%- biblio = item.biblio -%]
3
[%- biblioitem = item.biblioitem -%]
3
[%- biblioitem = item.biblioitem -%]
4
"[% biblio.title |html %] by [% biblio.author |html %]", "[% biblioitem.publicationyear |html %]", "[% biblioitem.publishercode |html %]", "[% biblioitem.collectiontitle |html %]", "[% item.barcode |html %]", "[% item.itemcallnumber |html %]", "[% Branches.GetName(item.homebranch) |html %]", "[% Branches.GetName(item.holdingbranch) |html %]", "[% item.location |html %]", "[% item.stocknumber |html %]", "[% item.status |html %]", "[% (item.issues || 0) |html %]"
4
"[% biblio.title |html %] by [% biblio.author |html %]", "[% biblioitem.publicationyear |html %]", "[% biblioitem.publishercode |html %]", "[% biblioitem.collectiontitle |html %]", "[% item.barcode |html %]", "[% item.itemcallnumber |html %]", "[% Branches.GetName(item.homebranch) |html %]", "[% Branches.GetName(item.holdingbranch) |html %]", "[% item.location |html %]", "[% item.stocknumber |html %]", "[% item.status |html %]", "[% (item.issues || 0) |html %]"[% INCLUDE 'empty_line.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/csv_headers/catalogue/itemsearch.tt (+1 lines)
Line 0 Link Here
1
Title, Publication Date, Publisher, Collection, Barcode, Call number, Home library, Current location, Shelving location, Inventory number, Status, Checkouts
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.csv.tt (-2 / +1 lines)
Lines 1-4 Link Here
1
Title, Publication Date, Publisher, Collection, Barcode, Call number, Home library, Current location, Shelving location, Inventory number, Status, Checkouts
1
[% INCLUDE csv_headers/catalogue/itemsearch.tt %]
2
[% FOREACH item IN results -%]
2
[% FOREACH item IN results -%]
3
  [%- INCLUDE 'catalogue/itemsearch_item.csv.inc' item = item -%]
3
  [%- INCLUDE 'catalogue/itemsearch_item.csv.inc' item = item -%]
4
[%- END -%]
4
[%- END -%]
5
- 

Return to bug 14263