Lines 10-18
Link Here
|
10 |
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] |
10 |
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] |
11 |
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] |
11 |
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] |
12 |
[% SET OpacMySummaryNote = AdditionalContents.get( location => "OpacMySummaryNote", lang => lang, library => branchcode ) %] |
12 |
[% SET OpacMySummaryNote = AdditionalContents.get( location => "OpacMySummaryNote", lang => lang, library => branchcode ) %] |
13 |
|
|
|
14 |
[% SET borrower_club_enrollments = logged_in_user.get_club_enrollments %] |
13 |
[% SET borrower_club_enrollments = logged_in_user.get_club_enrollments %] |
15 |
[% SET borrower_enrollable_clubs = logged_in_user.get_enrollable_clubs(1) %] <!-- 1 => OPAC --> |
14 |
[% SET borrower_enrollable_clubs = logged_in_user.get_enrollable_clubs(1) %] <!-- 1 => OPAC --> |
|
|
15 |
[% SET OverDriveEnabled = ( Koha.Preference( "OPACOverDrive" ) && Koha.Preference('OverDriveLibraryID') && Koha.Preference('OverDriveClientKey') && Koha.Preference('OverDriveClientSecret') ) %] |
16 |
[% SET OverDriveCirculation = ( OverDriveEnabled && Koha.Preference( "OverDriveCirculation" ) ) %] |
16 |
|
17 |
|
17 |
[% INCLUDE 'doc-head-open.inc' %] |
18 |
[% INCLUDE 'doc-head-open.inc' %] |
18 |
<title>Your library home › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title> |
19 |
<title>Your library home › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title> |
Lines 1463-1489
Link Here
|
1463 |
[% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %] |
1464 |
[% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %] |
1464 |
[% Asset.js("js/ratings.js") | $raw %] |
1465 |
[% Asset.js("js/ratings.js") | $raw %] |
1465 |
[% END %] |
1466 |
[% END %] |
1466 |
[% IF Koha.Preference('OverDriveCirculation') %] |
1467 |
[% IF OverDriveCirculation %] |
1467 |
[% Asset.js("js/overdrive.js") | $raw %] |
1468 |
[% Asset.js("js/overdrive.js") | $raw %] |
1468 |
<script> |
1469 |
<script> |
1469 |
[%- IF Koha.Preference('OverDrivePasswordRequired') -%] |
1470 |
[%- IF Koha.Preference('OverDrivePasswordRequired') -%] |
1470 |
var OD_password_required = 1; |
1471 |
var OD_password_required = 1; |
1471 |
[%- ELSE -%] |
1472 |
[%- ELSE -%] |
1472 |
var OD_password_required = 0; |
1473 |
var OD_password_required = 0; |
1473 |
[%- END -%] |
1474 |
[%- END -%] |
1474 |
$(document).ready(function() { |
1475 |
$(document).ready(function() { |
1475 |
[% IF ( overdrive_error ) %] |
1476 |
[% IF ( overdrive_error ) %] |
1476 |
KOHA.OverDriveCirculation.display_error("#opac-user-overdrive_panel", "[% overdrive_error.dquote | html %]"); |
1477 |
KOHA.OverDriveCirculation.display_error("#opac-user-overdrive_panel", "[% overdrive_error.dquote | html %]"); |
1477 |
[% END %] |
1478 |
[% END %] |
1478 |
|
1479 |
|
1479 |
[% IF ( overdrive_tab ) %] |
1480 |
[% IF ( overdrive_tab ) %] |
1480 |
$("#opac-user-views a[href='#opac-user-overdrive_panel']").tab("show"); |
1481 |
$("#opac-user-views a[href='#opac-user-overdrive_panel']").tab("show"); |
1481 |
[% END %] |
1482 |
[% END %] |
1482 |
|
1483 |
|
1483 |
$("#opac-user-overdrive_panel").each( function() { |
1484 |
$("#opac-user-overdrive_panel").each( function() { |
1484 |
KOHA.OverDriveCirculation.display_account_details(this); |
1485 |
KOHA.OverDriveCirculation.display_account_details(this); |
1485 |
} ); |
1486 |
} ); |
1486 |
}); |
1487 |
}); |
1487 |
</script> |
1488 |
</script> |
1488 |
[% END %] |
1489 |
[% END %] |
1489 |
[% END %] |
1490 |
[% END %] |