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

(-)a/serials/serials-edit.pl (-6 / +7 lines)
Lines 403-416 output_html_with_http_headers $query, $cookie, $template->output; Link Here
403
403
404
sub get_default_view {
404
sub get_default_view {
405
    my $defaultview = C4::Context->preference('IntranetBiblioDefaultView');
405
    my $defaultview = C4::Context->preference('IntranetBiblioDefaultView');
406
    my $views = { C4::Search::enabled_staff_search_views };
406
    my %views       = C4::Search::enabled_staff_search_views();
407
    if ($defaultview eq 'isbd' && $views->{can_view_ISBD}) {
407
    if ( $defaultview eq 'isbd' && $views{can_view_ISBD} ) {
408
        return 'ISBDdetail';
408
        return 'ISBDdetail';
409
    } elsif  ($defaultview eq 'marc' && $views->{can_view_MARC}) {
409
    }
410
    elsif ( $defaultview eq 'marc' && $views{can_view_MARC} ) {
410
        return 'MARCdetail';
411
        return 'MARCdetail';
411
    } elsif  ($defaultview eq 'labeled_marc' && $views->{can_view_labeledMARC}) {
412
    }
413
    elsif ( $defaultview eq 'labeled_marc' && $views{can_view_labeledMARC} ) {
412
        return 'labeledMARCdetail';
414
        return 'labeledMARCdetail';
413
    } else {
414
        return 'detail';
415
    }
415
    }
416
    return 'detail';
416
}
417
}
(-)a/serials/subscription-detail.pl (-7 / +7 lines)
Lines 143-156 output_html_with_http_headers $query, $cookie, $template->output; Link Here
143
143
144
sub get_default_view {
144
sub get_default_view {
145
    my $defaultview = C4::Context->preference('IntranetBiblioDefaultView');
145
    my $defaultview = C4::Context->preference('IntranetBiblioDefaultView');
146
    my $views = { C4::Search::enabled_staff_search_views };
146
    my %views       = C4::Search::enabled_staff_search_views();
147
    if ($defaultview eq 'isbd' && $views->{can_view_ISBD}) {
147
    if ( $defaultview eq 'isbd' && $views{can_view_ISBD} ) {
148
        return 'ISBDdetail';
148
        return 'ISBDdetail';
149
    } elsif  ($defaultview eq 'marc' && $views->{can_view_MARC}) {
149
    }
150
    elsif ( $defaultview eq 'marc' && $views{can_view_MARC} ) {
150
        return 'MARCdetail';
151
        return 'MARCdetail';
151
    } elsif  ($defaultview eq 'labeled_marc' && $views->{can_view_labeledMARC}) {
152
    }
153
    elsif ( $defaultview eq 'labeled_marc' && $views{can_view_labeledMARC} ) {
152
        return 'labeledMARCdetail';
154
        return 'labeledMARCdetail';
153
    } else {
154
        return 'detail';
155
    }
155
    }
156
    return 'detail';
156
}
157
}
157
- 

Return to bug 7546