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