Lines 56-63
Link Here
|
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( 'OPACSuggestionAutoFill' ) %] |
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: 5px;"> |
60 |
<label for="isbn">Standard number (ISBN, ISSN or other):</label><input type="text" id="isbn" name="isbn" maxlength="80" /> |
60 |
<ol><li> |
|
|
61 |
<label for="isbn">Standard number (ISBN, ISSN or other):</label> |
62 |
<input type="text" id="isbn" name="isbn" maxlength="80" style="margin-right:10px;margin-top:10px;" size="15"/> |
63 |
</li></ol> |
61 |
</fieldset> |
64 |
</fieldset> |
62 |
[% END %] |
65 |
[% END %] |
63 |
<fieldset class="rows [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %]well[% END %]"> |
66 |
<fieldset class="rows [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %]well[% END %]"> |
Lines 86-96
Link Here
|
86 |
<div title="Copyright or publication year, for example: 2016"> |
89 |
<div title="Copyright or publication year, for example: 2016"> |
87 |
[% IF ( copyrightdate_required ) %] |
90 |
[% IF ( copyrightdate_required ) %] |
88 |
<label for="copyrightdate" class="required">Copyright date:</label> |
91 |
<label for="copyrightdate" class="required">Copyright date:</label> |
89 |
<input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="4" maxlength="4" value="[% copyrightdate | html %]" required="required" /> |
92 |
<input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="10" maxlength="4" value="[% copyrightdate | html %]" required="required" /> |
90 |
<span class="required">Required</span> |
93 |
<span class="required">Required</span> |
91 |
[% ELSE %] |
94 |
[% ELSE %] |
92 |
<label for="copyrightdate">Copyright date:</label> |
95 |
<label for="copyrightdate">Copyright date:</label> |
93 |
<input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="4" maxlength="4" value="[% copyrightdate | html %]" /> |
96 |
<input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="10" maxlength="4" value="[% copyrightdate | html %]" /> |
94 |
[% END %] |
97 |
[% END %] |
95 |
</div> |
98 |
</div> |
96 |
</li> |
99 |
</li> |
Lines 439-444
Link Here
|
439 |
|
442 |
|
440 |
[% INCLUDE 'opac-bottom.inc' %] |
443 |
[% INCLUDE 'opac-bottom.inc' %] |
441 |
[% BLOCK jsinclude %] |
444 |
[% BLOCK jsinclude %] |
|
|
445 |
[% IF ( Koha.Preference("OPACSuggestionAutoFill") ) %] |
446 |
[% Asset.js("js/autofill.js") | $raw %] |
447 |
[% END %] |
442 |
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] |
448 |
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] |
443 |
[% INCLUDE 'datatables.inc' %] |
449 |
[% INCLUDE 'datatables.inc' %] |
444 |
<script> |
450 |
<script> |
Lines 464-469
Link Here
|
464 |
'volumeInfo.title': {target: 'title', effect: 'flash'}, |
470 |
'volumeInfo.title': {target: 'title', effect: 'flash'}, |
465 |
'volumeInfo.authors': {target: 'author', effect: 'flash'}, |
471 |
'volumeInfo.authors': {target: 'author', effect: 'flash'}, |
466 |
'volumeInfo.publisher': {target: 'publishercode', effect: 'flash'}, |
472 |
'volumeInfo.publisher': {target: 'publishercode', effect: 'flash'}, |
|
|
473 |
'volumeInfo.publishedDate': {target: 'copyrightdate', effect: 'flash'}, |
467 |
/* google books api seem to only have books, so if we got a result |
474 |
/* google books api seem to only have books, so if we got a result |
468 |
* item, type will be a book, so set to BK (book). */ |
475 |
* item, type will be a book, so set to BK (book). */ |
469 |
'kind': {target: 'itemtype', handle: function(t,v) { t.val('BK'); },}, |
476 |
'kind': {target: 'itemtype', handle: function(t,v) { t.val('BK'); },}, |