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

(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +1 lines)
Lines 368-374 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
368
('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'),
368
('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'),
369
('OAI-PMH:MaxCount','50',NULL,'OAI-PMH maximum number of records by answer to ListRecords and ListIdentifiers queries','Integer'),
369
('OAI-PMH:MaxCount','50',NULL,'OAI-PMH maximum number of records by answer to ListRecords and ListIdentifiers queries','Integer'),
370
('OPACAcquisitionDetails','0','','Show the acquisition details at the OPAC','YesNo'),
370
('OPACAcquisitionDetails','0','','Show the acquisition details at the OPAC','YesNo'),
371
('OPACAutoFill','0',NULL,'Automaticly fill forms with data from Google Books API','YesNo'),
371
('OPACSuggestionAutoFill','0',NULL,'Automaticly fill forms with data from Google Books API','YesNo'),
372
('OpacAddMastheadLibraryPulldown','0','','Adds a pulldown menu to select the library to search on the opac masthead.','YesNo'),
372
('OpacAddMastheadLibraryPulldown','0','','Adds a pulldown menu to select the library to search on the opac masthead.','YesNo'),
373
('OpacAdvSearchMoreOptions','pubdate,itemtype,language,subtype,sorting,location','Show search options for the expanded view (More options)','pubdate|itemtype|language|subtype|sorting|location','multiple'),
373
('OpacAdvSearchMoreOptions','pubdate,itemtype,language,subtype,sorting,location','Show search options for the expanded view (More options)','pubdate|itemtype|language|subtype|sorting|location','multiple'),
374
('OpacAdvSearchOptions','pubdate,itemtype,language,sorting,location','Show search options','pubdate|itemtype|language|subtype|sorting|location','multiple'),
374
('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 531-537 OPAC: Link Here
531
                  no: Don't display
531
                  no: Don't display
532
            - a library selection list for news items in the OPAC.
532
            - a library selection list for news items in the OPAC.
533
        -
533
        -
534
            - pref: OPACAutoFill
534
            - pref: OPACSuggestionAutoFill
535
              default: 0
535
              default: 0
536
              choices:
536
              choices:
537
                  yes: Enable
537
                  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 107-113 Link Here
107
                                                </div>
107
                                                </div>
108
                                            </li>
108
                                            </li>
109
                                        [% END %]
109
                                        [% END %]
110
                                        [% UNLESS ( isbn_hidden && Koha.Preference('OPACAutoFill' )%]
110
                                        [% UNLESS ( isbn_hidden && Koha.Preference('OPACSuggestionAutoFill' )%]
111
                                            <li>
111
                                            <li>
112
                                                [% IF ( isbn_required ) %]
112
                                                [% IF ( isbn_required ) %]
113
                                                    <label for="isbn" class="required">Standard number (ISBN, ISSN or other):</label>
113
                                                    <label for="isbn" class="required">Standard number (ISBN, ISSN or other):</label>
Lines 487-493 Link Here
487
        }
487
        }
488
    [% END %]
488
    [% END %]
489
489
490
    [% IF Koha.Preference( 'OPACAutoFill' ) %]
490
    [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %]
491
    $(function() {
491
    $(function() {
492
        $('#isbn').autofill({
492
        $('#isbn').autofill({
493
            'volumeInfo.title': {target: 'title', effect: 'flash'},
493
            'volumeInfo.title': {target: 'title', effect: 'flash'},
494
- 

Return to bug 14242