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 |
- |
|
|