View | Details | Raw Unified | Return to bug 5429
Collapse All | Expand All

(-)a/installer/data/mysql/updatedatabase.pl (+7 lines)
Lines 4370-4375 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
4370
    SetVersion($DBversion);
4370
    SetVersion($DBversion);
4371
}
4371
}
4372
4372
4373
$DBversion = "3.05.00.XXX";
4374
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
4375
    $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpenLibraryCovers',0,'If ON Openlibrary book covers will be show',NULL,'YesNo');");
4376
    print "Upgrade to $DBversion done (Add syspref OpenLibraryCovers)\n";
4377
    SetVersion($DBversion);
4378
}
4379
4373
=head1 FUNCTIONS
4380
=head1 FUNCTIONS
4374
4381
4375
=head2 DropAllForeignKeys($table)
4382
=head2 DropAllForeignKeys($table)
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt (-3 / +9 lines)
Lines 21-28 Link Here
21
    dateFormat: 'uk',[% END %]
21
    dateFormat: 'uk',[% END %]
22
            widgets : ['zebra'],
22
            widgets : ['zebra'],
23
            sortList: [[0,0]]
23
            sortList: [[0,0]]
24
        });[% IF ( GoogleJackets ) %]
24
        });
25
        KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);[% END %][% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]
25
	[% IF ( GoogleJackets ) %]
26
        KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
27
	[% END %]
28
	[% IF OpenLibraryCovers %]
29
	KOHA.OpenLibrary.GetCoverFromIsbn();
30
	[% END %]
31
	[% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]
26
        $(".tagbutton").click(KOHA.Tags.add_tag_button);[% END %][% END %][% END %]
32
        $(".tagbutton").click(KOHA.Tags.add_tag_button);[% END %][% END %][% END %]
27
33
28
});
34
});
Lines 72-77 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
72
    [% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %][% END %]
78
    [% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %][% END %]
73
79
74
    [% IF ( GoogleJackets ) %]<div style="block" title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>[% END %]
80
    [% IF ( GoogleJackets ) %]<div style="block" title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>[% END %]
81
    [% IF OpenLibraryCovers %]<div style="block" title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div>[% END %]
75
    [% IF ( BakerTaylorEnabled ) %][% IF ( normalized_isbn ) %][% IF ( OPACurlOpenInNewWindow ) %]<a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]" target="_blank"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a>[% ELSE %]<a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a>[% END %][% END %][% END %]
82
    [% IF ( BakerTaylorEnabled ) %][% IF ( normalized_isbn ) %][% IF ( OPACurlOpenInNewWindow ) %]<a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]" target="_blank"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a>[% ELSE %]<a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a>[% END %][% END %][% END %]
76
    </div>
83
    </div>
77
84
78
- 

Return to bug 5429