+
+} else {
+ my $private_shelves = Koha::Virtualshelves->search(
+ { public => 0,
+ owner => $loggedinuser,
+ allow_change_from_owner => 1,
+ },
+ { order_by => 'shelfname' }
+ );
+ my $shelves_shared_with_me = Koha::Virtualshelves->search(
+ { public => 0,
+ 'virtualshelfshares.borrowernumber' => $loggedinuser,
+ allow_change_from_others => 1,
+ },
+ { join => 'virtualshelfshares', }
+ );
+ my $public_shelves = Koha::Virtualshelves->search(
+ { public => 1,
+ -or => [
+ -and => {
+ allow_change_from_owner => 1,
+ owner => $loggedinuser,
+ },
+ allow_change_from_others => 1,
+ ],
+ },
+ { order_by => 'shelfname' }
+ );
+ $template->param(
+ private_shelves => $private_shelves,
+ private_shelves_shared_with_me => $shelves_shared_with_me,
+ public_shelves => $public_shelves,
+ );
+
+}
+
+my @biblios;
+for my $biblionumber (@biblionumbers) {
+ my $biblio = Koha::Biblios->find( $biblionumber );
+ push(
+ @biblios,
+ { biblionumber => $biblionumber,
+ title => $biblio->title,
+ author => $biblio->author,
+ }
+ );