|
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 516-521
foreach ( keys %{$dat} ) {
Link Here
|
| 516 |
# does not work: my %views_enabled = map { $_ => 1 } $template->query(loop => 'EnableViews'); |
517 |
# does not work: my %views_enabled = map { $_ => 1 } $template->query(loop => 'EnableViews'); |
| 517 |
# method query not found?!?! |
518 |
# method query not found?!?! |
| 518 |
$template->param( AmazonTld => get_amazon_tld() ) if ( C4::Context->preference("AmazonCoverImages")); |
519 |
$template->param( AmazonTld => get_amazon_tld() ) if ( C4::Context->preference("AmazonCoverImages")); |
|
|
520 |
|
| 521 |
if (C4::Context->preference("BakerTaylorEnabled")) { |
| 522 |
$template->param( |
| 523 |
BakerTaylorEnabled => 1, |
| 524 |
BakerTaylorImageURL => &image_url(), |
| 525 |
BakerTaylorLinkURL => &link_url(), |
| 526 |
BakerTaylorBookstoreURL => C4::Context->preference('BakerTaylorBookstoreURL'), |
| 527 |
); |
| 528 |
my ($bt_user, $bt_pass); |
| 529 |
if ($isbn and |
| 530 |
$bt_user = C4::Context->preference('BakerTaylorUsername') and |
| 531 |
$bt_pass = C4::Context->preference('BakerTaylorPassword') ) |
| 532 |
{ |
| 533 |
$template->param( |
| 534 |
BakerTaylorContentURL => |
| 535 |
sprintf("https://contentcafe2.btol.com/ContentCafeClient/ContentCafe.aspx?UserID=%s&Password=%s&ItemKey=%s&Options=Y", |
| 536 |
$bt_user,$bt_pass,$isbn) |
| 537 |
); |
| 538 |
} |
| 539 |
} |
| 540 |
|
| 519 |
$template->param( |
541 |
$template->param( |
| 520 |
itemloop => \@itemloop, |
542 |
itemloop => \@itemloop, |
| 521 |
otheritemloop => \@otheritemloop, |
543 |
otheritemloop => \@otheritemloop, |