Lines 557-569
for (my $i=0;$i<@servers;$i++) {
Link Here
|
557 |
my $defaultview = C4::Context->preference('IntranetBiblioDefaultView'); |
557 |
my $defaultview = C4::Context->preference('IntranetBiblioDefaultView'); |
558 |
my $views = { C4::Search::enabled_staff_search_views }; |
558 |
my $views = { C4::Search::enabled_staff_search_views }; |
559 |
if ($defaultview eq 'isbd' && $views->{can_view_ISBD}) { |
559 |
if ($defaultview eq 'isbd' && $views->{can_view_ISBD}) { |
560 |
print $cgi->redirect("/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=$biblionumber"); |
560 |
print $cgi->redirect("/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=$biblionumber&found1=1"); |
561 |
} elsif ($defaultview eq 'marc' && $views->{can_view_MARC}) { |
561 |
} elsif ($defaultview eq 'marc' && $views->{can_view_MARC}) { |
562 |
print $cgi->redirect("/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=$biblionumber"); |
562 |
print $cgi->redirect("/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=$biblionumber&found1=1"); |
563 |
} elsif ($defaultview eq 'labeled_marc' && $views->{can_view_labeledMARC}) { |
563 |
} elsif ($defaultview eq 'labeled_marc' && $views->{can_view_labeledMARC}) { |
564 |
print $cgi->redirect("/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=$biblionumber"); |
564 |
print $cgi->redirect("/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=$biblionumber&found1=1"); |
565 |
} else { |
565 |
} else { |
566 |
print $cgi->redirect("/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber"); |
566 |
print $cgi->redirect("/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber&found1=1"); |
567 |
} |
567 |
} |
568 |
exit; |
568 |
exit; |
569 |
} |
569 |
} |