use strict;
#use warnings; FIXME - Bug 2505
use HTML::Entities;
use C4::Auth;
use C4::Context;
use C4::Output;
my $dbh = C4::Context->dbh;
my $biblionumber = $query->param('biblionumber');
$biblionumber = HTML::Entities::encode($biblionumber);
# open template
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
use CGI qw ( -utf8 );
use C4::Koha;
use MARC::Record;
use C4::Biblio;
my $query = new CGI;
my $frameworkcode = $query->param('frameworkcode');
$frameworkcode = GetFrameworkCode( $biblionumber ) unless ($frameworkcode);
my $popup =
use Modern::Perl;
use C4::Acquisition qw( GetHistory );
);
my $record = GetMarcBiblio($biblionumber);
if ( not defined $record ) {
use warnings;
use C4::Items;
use C4::Branch;
# get variables
my $biblionumber=$query->param('biblionumber');
my $title=$query->param('title');
my $bi=$query->param('bi');
$bi = $biblionumber unless $bi;
-