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

(-)a/installer/data/mysql/atomicupdate/bug_14242-autofill_syspref.sql (-1 / +1 lines)
Line 1 Link Here
1
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`,`type`) VALUES ('OPACAutoFill', '0', NULL, 'Automaticly fill forms with data from Google Books API','YesNo');
1
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`,`type`) VALUES ('OPACSuggestionAutoFill', '0', NULL, 'Automaticly fill forms with data from Google Books API','YesNo');
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 358-364 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
358
('OAI-PMH:DeletedRecord','persistent','Koha\'s deletedbiblio table will never be deleted (persistent), might be deleted (transient), or will never have any data in it (no)','transient|persistent|no','Choice'),
358
('OAI-PMH:DeletedRecord','persistent','Koha\'s deletedbiblio table will never be deleted (persistent), might be deleted (transient), or will never have any data in it (no)','transient|persistent|no','Choice'),
359
('OAI-PMH:MaxCount','50',NULL,'OAI-PMH maximum number of records by answer to ListRecords and ListIdentifiers queries','Integer'),
359
('OAI-PMH:MaxCount','50',NULL,'OAI-PMH maximum number of records by answer to ListRecords and ListIdentifiers queries','Integer'),
360
('OPACAcquisitionDetails','0','','Show the acquisition details at the OPAC','YesNo'),
360
('OPACAcquisitionDetails','0','','Show the acquisition details at the OPAC','YesNo'),
361
('OPACAutoFill','0',NULL,'Automaticly fill forms with data from Google Books API','YesNo'),
361
('OPACSuggestionAutoFill','0',NULL,'Automaticly fill forms with data from Google Books API','YesNo'),
362
('OpacAddMastheadLibraryPulldown','0','','Adds a pulldown menu to select the library to search on the opac masthead.','YesNo'),
362
('OpacAddMastheadLibraryPulldown','0','','Adds a pulldown menu to select the library to search on the opac masthead.','YesNo'),
363
('OpacAdvSearchMoreOptions','pubdate,itemtype,language,subtype,sorting,location','Show search options for the expanded view (More options)','pubdate|itemtype|language|subtype|sorting|location','multiple'),
363
('OpacAdvSearchMoreOptions','pubdate,itemtype,language,subtype,sorting,location','Show search options for the expanded view (More options)','pubdate|itemtype|language|subtype|sorting|location','multiple'),
364
('OpacAdvSearchOptions','pubdate,itemtype,language,sorting,location','Show search options','pubdate|itemtype|language|subtype|sorting|location','multiple'),
364
('OpacAdvSearchOptions','pubdate,itemtype,language,sorting,location','Show search options','pubdate|itemtype|language|subtype|sorting|location','multiple'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +1 lines)
Lines 562-568 OPAC: Link Here
562
                  no: Don't display
562
                  no: Don't display
563
            - a branch selection list for news items in the OPAC.
563
            - a branch selection list for news items in the OPAC.
564
        -
564
        -
565
            - pref: OPACAutoFill
565
            - pref: OPACSuggestionAutoFill
566
              default: 0
566
              default: 0
567
              choices:
567
              choices:
568
                  yes: Enable
568
                  yes: Enable
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-1 / +1 lines)
Lines 267-273 $.widget.bridge('uitooltip', $.ui.tooltip); Link Here
267
    </script>
267
    </script>
268
[% END %]
268
[% END %]
269
269
270
[% IF ( Koha.Preference('OPACAutoFill') ) %]
270
[% IF ( Koha.Preference('OPACSuggestionAutoFill') ) %]
271
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/autofill.js"></script>
271
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/autofill.js"></script>
272
[% END %]
272
[% END %]
273
273
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (-5 / +4 lines)
Lines 55-66 Link Here
55
                            [% END %]
55
                            [% END %]
56
56
57
                            <form action="/cgi-bin/koha/opac-suggestions.pl" method="post" id="add_suggestion_form">
57
                            <form action="/cgi-bin/koha/opac-suggestions.pl" method="post" id="add_suggestion_form">
58
                                [% IF Koha.Preference( 'OPACAutoFill' ) %]
58
                                [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %]
59
                                <fieldset class="rows well" style="margin-bottom: 3em;padding-top: 5px;">
59
                                <fieldset class="rows well" style="margin-bottom: 3em;padding-top: 5px;">
60
                                    <label for="isbn">Standard number (ISBN, ISSN or other):</label><input type="text" id="isbn" name="isbn"  maxlength="80" />
60
                                    <label for="isbn">Standard number (ISBN, ISSN or other):</label><input type="text" id="isbn" name="isbn"  maxlength="80" />
61
                                </fieldset>
61
                                </fieldset>
62
                                [% END %]
62
                                [% END %]
63
                                    <fieldset class="rows [% IF Koha.Preference( 'OPACAutoFill' ) %]well[% END %]">
63
                                    <fieldset class="rows [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %]well[% END %]">
64
                                    <ol>
64
                                    <ol>
65
                                        <li>
65
                                        <li>
66
                                            [% IF ( title_required ) %]
66
                                            [% IF ( title_required ) %]
Lines 94-100 Link Here
94
                                                [% END %]
94
                                                [% END %]
95
                                            </div>
95
                                            </div>
96
                                        </li>
96
                                        </li>
97
                                        [% UNLESS Koha.Preference( 'OPACAutoFill' ) %]
97
                                        [% UNLESS Koha.Preference( 'OPACSuggestionAutoFill' ) %]
98
                                            <li>
98
                                            <li>
99
                                                [% IF ( isbn_required ) %]
99
                                                [% IF ( isbn_required ) %]
100
                                                    <label for="isbn" class="required">Standard number (ISBN, ISSN or other):</label>
100
                                                    <label for="isbn" class="required">Standard number (ISBN, ISSN or other):</label>
Lines 442-448 Link Here
442
        }
442
        }
443
    [% END %]
443
    [% END %]
444
444
445
    [% IF Koha.Preference( 'OPACAutoFill' ) %]
445
    [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %]
446
    $(function() {
446
    $(function() {
447
        $('#isbn').autofill({
447
        $('#isbn').autofill({
448
            'volumeInfo.title': {target: 'title', effect: 'flash'},
448
            'volumeInfo.title': {target: 'title', effect: 'flash'},
449
- 

Return to bug 14242