+ bibliotitle => $biblio->title,
+) if $tagslib->{$bt_tag}->{$bt_subtag}->{hidden} <= 0 && # <=0 OPAC visible.
+ $tagslib->{$bt_tag}->{$bt_subtag}->{hidden} > -8; # except -8;
+
+# get biblionumbers stored in the cart
+if(my $cart_list = $query->cookie("bib_list")){
+ my @cart_list = split(/\//, $cart_list);
+ if ( grep {$_ eq $biblionumber} @cart_list) {
+ $template->param( incart => 1 );
+ }
+}
+
+my $allow_onshelf_holds;
+my $patron = Koha::Patrons->find( $loggedinuser );
+for my $itm (@all_items) {
+ my $item = Koha::Items->find( $itm->{itemnumber} );
+ $allow_onshelf_holds = Koha::IssuingRules->get_onshelfholds_policy( { item => $item, patron => $patron } );
+ last if $allow_onshelf_holds;
+}