|
Lines 39-44
use C4::Serials qw( CountSubscriptionFromBiblionumber SearchSubscriptions GetLat
Link Here
|
| 39 |
use C4::XISBN qw( get_xisbns ); |
39 |
use C4::XISBN qw( get_xisbns ); |
| 40 |
use C4::External::Amazon qw( get_amazon_tld ); |
40 |
use C4::External::Amazon qw( get_amazon_tld ); |
| 41 |
use C4::Search qw( z3950_search_args enabled_staff_search_views new_record_from_zebra ); |
41 |
use C4::Search qw( z3950_search_args enabled_staff_search_views new_record_from_zebra ); |
|
|
42 |
use C4::External::BakerTaylor qw( image_url link_url ); |
| 42 |
use C4::Tags qw( get_tags ); |
43 |
use C4::Tags qw( get_tags ); |
| 43 |
use C4::XSLT qw( XSLTParse4Display ); |
44 |
use C4::XSLT qw( XSLTParse4Display ); |
| 44 |
use Koha::DateUtils qw( format_sqldatetime ); |
45 |
use Koha::DateUtils qw( format_sqldatetime ); |
|
Lines 576-581
foreach ( keys %{$dat} ) {
Link Here
|
| 576 |
# does not work: my %views_enabled = map { $_ => 1 } $template->query(loop => 'EnableViews'); |
577 |
# does not work: my %views_enabled = map { $_ => 1 } $template->query(loop => 'EnableViews'); |
| 577 |
# method query not found?!?! |
578 |
# method query not found?!?! |
| 578 |
$template->param( AmazonTld => get_amazon_tld() ) if ( C4::Context->preference("AmazonCoverImages")); |
579 |
$template->param( AmazonTld => get_amazon_tld() ) if ( C4::Context->preference("AmazonCoverImages")); |
|
|
580 |
|
| 581 |
if (C4::Context->preference("BakerTaylorEnabled")) { |
| 582 |
$template->param( |
| 583 |
BakerTaylorEnabled => 1, |
| 584 |
BakerTaylorImageURL => &image_url(), |
| 585 |
BakerTaylorLinkURL => &link_url(), |
| 586 |
BakerTaylorBookstoreURL => C4::Context->preference('BakerTaylorBookstoreURL'), |
| 587 |
); |
| 588 |
my ($bt_user, $bt_pass); |
| 589 |
if ($isbn and |
| 590 |
$bt_user = C4::Context->preference('BakerTaylorUsername') and |
| 591 |
$bt_pass = C4::Context->preference('BakerTaylorPassword') ) |
| 592 |
{ |
| 593 |
$template->param( |
| 594 |
BakerTaylorContentURL => |
| 595 |
sprintf("https://contentcafe2.btol.com/ContentCafeClient/ContentCafe.aspx?UserID=%s&Password=%s&ItemKey=%s&Options=Y", |
| 596 |
$bt_user,$bt_pass,$isbn) |
| 597 |
); |
| 598 |
} |
| 599 |
} |
| 600 |
|
| 579 |
$template->param( |
601 |
$template->param( |
| 580 |
itemloop => \@itemloop, |
602 |
itemloop => \@itemloop, |
| 581 |
otheritemloop => \@otheritemloop, |
603 |
otheritemloop => \@otheritemloop, |