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

(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 365-371 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
365
('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'),
365
('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'),
366
('OAI-PMH:MaxCount','50',NULL,'OAI-PMH maximum number of records by answer to ListRecords and ListIdentifiers queries','Integer'),
366
('OAI-PMH:MaxCount','50',NULL,'OAI-PMH maximum number of records by answer to ListRecords and ListIdentifiers queries','Integer'),
367
('OPACAcquisitionDetails','0','','Show the acquisition details at the OPAC','YesNo'),
367
('OPACAcquisitionDetails','0','','Show the acquisition details at the OPAC','YesNo'),
368
('OPACAutoFill','0',NULL,'Automaticly fill forms with data from Google Books API','YesNo'),
368
('OPACSuggestionAutoFill','0',NULL,'Automaticly fill forms with data from Google Books API','YesNo'),
369
('OpacAddMastheadLibraryPulldown','0','','Adds a pulldown menu to select the library to search on the opac masthead.','YesNo'),
369
('OpacAddMastheadLibraryPulldown','0','','Adds a pulldown menu to select the library to search on the opac masthead.','YesNo'),
370
('OpacAdvSearchMoreOptions','pubdate,itemtype,language,subtype,sorting,location','Show search options for the expanded view (More options)','pubdate|itemtype|language|subtype|sorting|location','multiple'),
370
('OpacAdvSearchMoreOptions','pubdate,itemtype,language,subtype,sorting,location','Show search options for the expanded view (More options)','pubdate|itemtype|language|subtype|sorting|location','multiple'),
371
('OpacAdvSearchOptions','pubdate,itemtype,language,sorting,location','Show search options','pubdate|itemtype|language|subtype|sorting|location','multiple'),
371
('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 527-533 OPAC: Link Here
527
                  no: Don't display
527
                  no: Don't display
528
            - a library selection list for news items in the OPAC.
528
            - a library selection list for news items in the OPAC.
529
        -
529
        -
530
            - pref: OPACAutoFill
530
            - pref: OPACSuggestionAutoFill
531
              default: 0
531
              default: 0
532
              choices:
532
              choices:
533
                  yes: Enable
533
                  yes: Enable
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-1 / +1 lines)
Lines 279-285 $.widget.bridge('uitooltip', $.ui.tooltip); Link Here
279
    </script>
279
    </script>
280
[% END %]
280
[% END %]
281
281
282
[% IF ( Koha.Preference('OPACAutoFill') ) %]
282
[% IF ( Koha.Preference('OPACSuggestionAutoFill') ) %]
283
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/autofill.js"></script>
283
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/autofill.js"></script>
284
[% END %]
284
[% END %]
285
285
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (-5 / +4 lines)
Lines 64-75 Link Here
64
                            [% END %]
64
                            [% END %]
65
65
66
                            <form action="/cgi-bin/koha/opac-suggestions.pl" method="post" id="add_suggestion_form">
66
                            <form action="/cgi-bin/koha/opac-suggestions.pl" method="post" id="add_suggestion_form">
67
                                [% IF Koha.Preference( 'OPACAutoFill' ) %]
67
                                [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %]
68
                                <fieldset class="rows well" style="margin-bottom: 3em;padding-top: 5px;">
68
                                <fieldset class="rows well" style="margin-bottom: 3em;padding-top: 5px;">
69
                                    <label for="isbn">Standard number (ISBN, ISSN or other):</label><input type="text" id="isbn" name="isbn"  maxlength="80" />
69
                                    <label for="isbn">Standard number (ISBN, ISSN or other):</label><input type="text" id="isbn" name="isbn"  maxlength="80" />
70
                                </fieldset>
70
                                </fieldset>
71
                                [% END %]
71
                                [% END %]
72
                                    <fieldset class="rows [% IF Koha.Preference( 'OPACAutoFill' ) %]well[% END %]">
72
                                    <fieldset class="rows [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %]well[% END %]">
73
                                    <ol>
73
                                    <ol>
74
                                        <li>
74
                                        <li>
75
                                            [% IF ( title_required ) %]
75
                                            [% IF ( title_required ) %]
Lines 103-109 Link Here
103
                                                [% END %]
103
                                                [% END %]
104
                                            </div>
104
                                            </div>
105
                                        </li>
105
                                        </li>
106
                                        [% UNLESS Koha.Preference( 'OPACAutoFill' ) %]
106
                                        [% UNLESS Koha.Preference( 'OPACSuggestionAutoFill' ) %]
107
                                            <li>
107
                                            <li>
108
                                                [% IF ( isbn_required ) %]
108
                                                [% IF ( isbn_required ) %]
109
                                                    <label for="isbn" class="required">Standard number (ISBN, ISSN or other):</label>
109
                                                    <label for="isbn" class="required">Standard number (ISBN, ISSN or other):</label>
Lines 469-475 Link Here
469
        }
469
        }
470
    [% END %]
470
    [% END %]
471
471
472
    [% IF Koha.Preference( 'OPACAutoFill' ) %]
472
    [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %]
473
    $(function() {
473
    $(function() {
474
        $('#isbn').autofill({
474
        $('#isbn').autofill({
475
            'volumeInfo.title': {target: 'title', effect: 'flash'},
475
            'volumeInfo.title': {target: 'title', effect: 'flash'},
476
- 

Return to bug 14242