use C4::Items;
use C4::Auth;
use C4::Output;
+use C4::Csv;
my $query = new CGI;
my ( $template, $borrowernumber, $cookie ) = get_template_and_user (
{
- template_name => "basket/basket.tmpl",
+ template_name => "basket/basket.tt",
query => $query,
type => "intranet",
flagsrequired => { borrow => 1 },
my $marcsubjctsarray = GetMarcSubjects( $record, $marcflavour );
my $marcseriesarray = GetMarcSeries ($record,$marcflavour);
my $marcurlsarray = GetMarcUrls ($record,$marcflavour);
- my @items = &GetItemsInfo( $biblionumber, 'opac' );
+ my @items = GetItemsInfo( $biblionumber );
my $hasauthors = 0;
if($dat->{'author'} || @$marcauthorsarray) {
$hasauthors = 1;
}
- my $shelflocations =GetKohaAuthorisedValues('items.location',$dat->{'frameworkcode'}, 'opac');
- my $collections = GetKohaAuthorisedValues('items.ccode',$dat->{'frameworkcode'}, 'opac');
+ my $shelflocations =GetKohaAuthorisedValues('items.location',$dat->{'frameworkcode'});
+ my $collections = GetKohaAuthorisedValues('items.ccode',$dat->{'frameworkcode'});
for my $itm (@items) {
if ($itm->{'location'}){
$dat->{MARCURLS} = $marcurlsarray;
$dat->{HASAUTHORS} = $hasauthors;
- if ( C4::Context->preference("BiblioDefaultView") eq "normal" ) {
+ if ( C4::Context->preference("IntranetBiblioDefaultView") eq "normal" ) {
$dat->{dest} = "/cgi-bin/koha/catalogue/detail.pl";
}
- elsif ( C4::Context->preference("BiblioDefaultView") eq "marc" ) {
+ elsif ( C4::Context->preference("IntranetBiblioDefaultView") eq "marc" ) {
$dat->{dest} = "/cgi-bin/koha/catalogue/MARCdetail.pl";
}
else {
$template->param(
BIBLIO_RESULTS => $resultsarray,
+ csv_profiles => GetCsvProfilesLoop('marc'),
+ bib_list => $bib_list,
);
output_html_with_http_headers $query, $cookie, $template->output;