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

(-)a/opac/opac-downloadcart.pl (+6 lines)
Lines 66-71 if ($bib_list && $format) { Link Here
66
    # CSV   
66
    # CSV   
67
    if ($format =~ /^\d+$/) {
67
    if ($format =~ /^\d+$/) {
68
68
69
        my $csv_profile = Koha::CsvProfiles->find($format);
70
        if ( not $csv_profile or $csv_profile->staff_only ) {
71
            print $query->redirect('/cgi-bin/koha/errors/404.pl');
72
            exit;
73
        }
74
69
        $output = marc2csv(\@bibs, $format);
75
        $output = marc2csv(\@bibs, $format);
70
76
71
        # Other formats
77
        # Other formats
(-)a/opac/opac-downloadshelf.pl (-1 / +7 lines)
Lines 75-80 if ( $shelf and $shelf->can_be_viewed( $borrowernumber ) ) { Link Here
75
75
76
       # CSV
76
       # CSV
77
        if ($format =~ /^\d+$/) {
77
        if ($format =~ /^\d+$/) {
78
79
            my $csv_profile = Koha::CsvProfiles->find($format);
80
            if ( not $csv_profile or $csv_profile->staff_only ) {
81
                print $query->redirect('/cgi-bin/koha/errors/404.pl');
82
                exit;
83
            }
84
78
            my @biblios;
85
            my @biblios;
79
            while ( my $content = $contents->next ) {
86
            while ( my $content = $contents->next ) {
80
                push @biblios, $content->biblionumber;
87
                push @biblios, $content->biblionumber;
81
- 

Return to bug 5087