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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 365-367 INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( Link Here
365
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacBrowseResults','1','Disable/enable browsing and paging search results from the OPAC detail page.',NULL,'YesNo');
365
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacBrowseResults','1','Disable/enable browsing and paging search results from the OPAC detail page.',NULL,'YesNo');
366
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SvcMaxReportRows','10','Maximum number of rows to return via the report web service.',NULL,'Integer');
366
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SvcMaxReportRows','10','Maximum number of rows to return via the report web service.',NULL,'Integer');
367
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice');
367
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice');
368
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('GoogleBooksPreview','1','Display the ability to place multiple holds or not','','YesNo');
(-)a/installer/data/mysql/updatedatabase.pl (+7 lines)
Lines 5308-5313 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
5308
    SetVersion ($DBversion);
5308
    SetVersion ($DBversion);
5309
}
5309
}
5310
5310
5311
$DBversion = "3.09.00.XXX";
5312
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
5313
    $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('GoogleBooksPreview','1','Display the ability to place multiple holds or not','','YesNo')");
5314
    print "Upgrade to $DBversion done (Add GooglePreview syspref)\n";
5315
    SetVersion ($DBversion);
5316
}
5317
5311
=head1 FUNCTIONS
5318
=head1 FUNCTIONS
5312
5319
5313
=head2 TableExists($table)
5320
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref (+7 lines)
Lines 166-171 Enhanced Content: Link Here
166
                  yes: Add
166
                  yes: Add
167
                  no: "Don't add"
167
                  no: "Don't add"
168
            - cover images from Open Library to search results and item detail pages on the OPAC.
168
            - cover images from Open Library to search results and item detail pages on the OPAC.
169
    Google Books Preview:
170
        -
171
            - pref: GoogleBooksPreview
172
              choices:
173
                  yes: Add
174
                  no: "Don't add"
175
            - a Google Books preview link to the OPAC item details page when a matching ISBN is found.
169
    Library Thing:
176
    Library Thing:
170
        # Awkward syntax below, due to quoting conflicts
177
        # Awkward syntax below, due to quoting conflicts
171
        -
178
        -
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt (+9 lines)
Lines 295-300 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
295
    <div id="catalogue_detail_biblio">
295
    <div id="catalogue_detail_biblio">
296
296
297
    <div id="bookcover">
297
    <div id="bookcover">
298
299
    [% IF ( GoogleBooksPreview ) %]
300
        [% IF ( normalized_isbn ) %]
301
            <script type="text/javascript" src="http://books.google.com/books/previewlib.js"></script>
302
            <script type="text/javascript">GBS_insertPreviewButtonPopup('ISBN:' + [% normalized_isbn %] );</script>
303
            <br/>
304
        [% END %]
305
    [% END %]
306
298
    [% IF ( OPACLocalCoverImages ) %]<div style="block" title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>[% END %]
307
    [% IF ( OPACLocalCoverImages ) %]<div style="block" title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>[% END %]
299
    [% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonCoverImages ) %][% IF ( OPACurlOpenInNewWindow ) %]<a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link" target="_blank"><img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>[% ELSE %]<a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>[% END %][% END %][% END %]
308
    [% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonCoverImages ) %][% IF ( OPACurlOpenInNewWindow ) %]<a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link" target="_blank"><img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>[% ELSE %]<a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>[% END %][% END %][% END %]
300
309
(-)a/opac/opac-detail.pl (-2 / +4 lines)
Lines 75-81 if ( ! $record ) { Link Here
75
    print $query->redirect("/cgi-bin/koha/errors/404.pl"); # escape early
75
    print $query->redirect("/cgi-bin/koha/errors/404.pl"); # escape early
76
    exit;
76
    exit;
77
}
77
}
78
$template->param( biblionumber => $biblionumber );
78
$template->param(
79
    biblionumber => $biblionumber,
80
    GoogleBooksPreview => C4::Context->preference('GoogleBooksPreview'),
81
);
79
82
80
# get biblionumbers stored in the cart
83
# get biblionumbers stored in the cart
81
my @cart_list;
84
my @cart_list;
82
- 

Return to bug 5292