use Koha::Biblios;
use Koha::MetadataRecord::Authority;
+use Koha::Virtualshelves;
my $input = new CGI;
our $dbh = C4::Context->dbh;
exit;
}
+my @lists = Koha::Virtualshelves->search({});
+$template->param( lists => \@lists );
+
my @templates = GetModificationTemplates( $mmtid );
unless ( @templates ) {
$op = 'error';
$content =~ s/[\r\n]*$//;
push @record_ids, $content if $content;
}
+ } elsif ( my $shelf_number = $input->param('shelf_number') ) {
+ my $shelf = Koha::Virtualshelves->find($shelf_number);
+ my $contents = $shelf->get_contents;
+ while ( my $content = $contents->next ) {
+ my $biblionumber = $content->biblionumber;
+ push @record_ids, $biblionumber;
+ }
} else {
# The user enters manually the list of id
push @record_ids, split( /\s\n/, $input->param('recordnumber_list') );