|
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 575-580
foreach ( keys %{$dat} ) {
Link Here
|
| 575 |
# does not work: my %views_enabled = map { $_ => 1 } $template->query(loop => 'EnableViews'); |
576 |
# does not work: my %views_enabled = map { $_ => 1 } $template->query(loop => 'EnableViews'); |
| 576 |
# method query not found?!?! |
577 |
# method query not found?!?! |
| 577 |
$template->param( AmazonTld => get_amazon_tld() ) if ( C4::Context->preference("AmazonCoverImages")); |
578 |
$template->param( AmazonTld => get_amazon_tld() ) if ( C4::Context->preference("AmazonCoverImages")); |
|
|
579 |
|
| 580 |
if (C4::Context->preference("BakerTaylorEnabled")) { |
| 581 |
$template->param( |
| 582 |
BakerTaylorEnabled => 1, |
| 583 |
BakerTaylorImageURL => &image_url(), |
| 584 |
BakerTaylorLinkURL => &link_url(), |
| 585 |
BakerTaylorBookstoreURL => C4::Context->preference('BakerTaylorBookstoreURL'), |
| 586 |
); |
| 587 |
my ($bt_user, $bt_pass); |
| 588 |
if ($isbn and |
| 589 |
$bt_user = C4::Context->preference('BakerTaylorUsername') and |
| 590 |
$bt_pass = C4::Context->preference('BakerTaylorPassword') ) |
| 591 |
{ |
| 592 |
$template->param( |
| 593 |
BakerTaylorContentURL => |
| 594 |
sprintf("https://contentcafe2.btol.com/ContentCafeClient/ContentCafe.aspx?UserID=%s&Password=%s&ItemKey=%s&Options=Y", |
| 595 |
$bt_user,$bt_pass,$isbn) |
| 596 |
); |
| 597 |
} |
| 598 |
} |
| 599 |
|
| 578 |
$template->param( |
600 |
$template->param( |
| 579 |
itemloop => \@itemloop, |
601 |
itemloop => \@itemloop, |
| 580 |
otheritemloop => \@otheritemloop, |
602 |
otheritemloop => \@otheritemloop, |