Lines 40-45
use C4::Serials qw( CountSubscriptionFromBiblionumber SearchSubscriptions GetLat
Link Here
|
40 |
use C4::XISBN qw( get_xisbns ); |
40 |
use C4::XISBN qw( get_xisbns ); |
41 |
use C4::External::Amazon qw( get_amazon_tld ); |
41 |
use C4::External::Amazon qw( get_amazon_tld ); |
42 |
use C4::Search qw( z3950_search_args enabled_staff_search_views new_record_from_zebra ); |
42 |
use C4::Search qw( z3950_search_args enabled_staff_search_views new_record_from_zebra ); |
|
|
43 |
use C4::External::BakerTaylor qw( image_url link_url ); |
43 |
use C4::Tags qw( get_tags ); |
44 |
use C4::Tags qw( get_tags ); |
44 |
use C4::XSLT qw( XSLTParse4Display ); |
45 |
use C4::XSLT qw( XSLTParse4Display ); |
45 |
use Koha::DateUtils qw( format_sqldatetime ); |
46 |
use Koha::DateUtils qw( format_sqldatetime ); |
Lines 504-509
foreach ( keys %{$dat} ) {
Link Here
|
504 |
# does not work: my %views_enabled = map { $_ => 1 } $template->query(loop => 'EnableViews'); |
505 |
# does not work: my %views_enabled = map { $_ => 1 } $template->query(loop => 'EnableViews'); |
505 |
# method query not found?!?! |
506 |
# method query not found?!?! |
506 |
$template->param( AmazonTld => get_amazon_tld() ) if ( C4::Context->preference("AmazonCoverImages")); |
507 |
$template->param( AmazonTld => get_amazon_tld() ) if ( C4::Context->preference("AmazonCoverImages")); |
|
|
508 |
|
509 |
if (C4::Context->preference("BakerTaylorEnabled")) { |
510 |
$template->param( |
511 |
BakerTaylorEnabled => 1, |
512 |
BakerTaylorImageURL => &image_url(), |
513 |
BakerTaylorLinkURL => &link_url(), |
514 |
BakerTaylorBookstoreURL => C4::Context->preference('BakerTaylorBookstoreURL'), |
515 |
); |
516 |
my ($bt_user, $bt_pass); |
517 |
if ($isbn and |
518 |
$bt_user = C4::Context->preference('BakerTaylorUsername') and |
519 |
$bt_pass = C4::Context->preference('BakerTaylorPassword') ) |
520 |
{ |
521 |
$template->param( |
522 |
BakerTaylorContentURL => |
523 |
sprintf("https://contentcafe2.btol.com/ContentCafeClient/ContentCafe.aspx?UserID=%s&Password=%s&ItemKey=%s&Options=Y", |
524 |
$bt_user,$bt_pass,$isbn) |
525 |
); |
526 |
} |
527 |
} |
528 |
|
507 |
$template->param( |
529 |
$template->param( |
508 |
itemloop => \@itemloop, |
530 |
itemloop => \@itemloop, |
509 |
otheritemloop => \@otheritemloop, |
531 |
otheritemloop => \@otheritemloop, |