Lines 65-72
Link Here
|
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( 'OPACSuggestionAutoFill' ) %] |
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: 5px;"> |
69 |
<label for="isbn">Standard number (ISBN, ISSN or other):</label><input type="text" id="isbn" name="isbn" maxlength="80" /> |
69 |
<ol><li> |
|
|
70 |
<label for="isbn">Standard number (ISBN, ISSN or other):</label> |
71 |
<input type="text" id="isbn" name="isbn" maxlength="80" style="margin-right:10px;margin-top:10px;" size="15"/> |
72 |
</li></ol> |
70 |
</fieldset> |
73 |
</fieldset> |
71 |
[% END %] |
74 |
[% END %] |
72 |
<fieldset class="rows [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %]well[% END %]"> |
75 |
<fieldset class="rows [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %]well[% END %]"> |
Lines 98-108
Link Here
|
98 |
<div title="Copyright or publication year, for example: 2016"> |
101 |
<div title="Copyright or publication year, for example: 2016"> |
99 |
[% IF ( copyrightdate_required ) %] |
102 |
[% IF ( copyrightdate_required ) %] |
100 |
<label for="copyrightdate" class="required">Copyright date:</label> |
103 |
<label for="copyrightdate" class="required">Copyright date:</label> |
101 |
<input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="4" maxlength="4" value="[% copyrightdate | html %]" required="required" /> |
104 |
<input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="10" maxlength="4" value="[% copyrightdate | html %]" required="required" /> |
102 |
<span class="required">Required</span> |
105 |
<span class="required">Required</span> |
103 |
[% ELSE %] |
106 |
[% ELSE %] |
104 |
<label for="copyrightdate">Copyright date:</label> |
107 |
<label for="copyrightdate">Copyright date:</label> |
105 |
<input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="4" maxlength="4" value="[% copyrightdate | html %]" /> |
108 |
<input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="10" maxlength="4" value="[% copyrightdate | html %]" /> |
106 |
[% END %] |
109 |
[% END %] |
107 |
</div> |
110 |
</div> |
108 |
</li> |
111 |
</li> |
Lines 470-475
Link Here
|
470 |
|
473 |
|
471 |
[% INCLUDE 'opac-bottom.inc' %] |
474 |
[% INCLUDE 'opac-bottom.inc' %] |
472 |
[% BLOCK jsinclude %] |
475 |
[% BLOCK jsinclude %] |
|
|
476 |
[% IF ( Koha.Preference("OPACSuggestionAutoFill") ) %] |
477 |
[% Asset.js("js/autofill.js") | $raw %] |
478 |
[% END %] |
473 |
[% INCLUDE 'datatables.inc' %] |
479 |
[% INCLUDE 'datatables.inc' %] |
474 |
<script> |
480 |
<script> |
475 |
var MSG_UNDO_AUTOFILL_SUGGESTION = _("Undo"); |
481 |
var MSG_UNDO_AUTOFILL_SUGGESTION = _("Undo"); |
Lines 494-499
Link Here
|
494 |
'volumeInfo.title': {target: 'title', effect: 'flash'}, |
500 |
'volumeInfo.title': {target: 'title', effect: 'flash'}, |
495 |
'volumeInfo.authors': {target: 'author', effect: 'flash'}, |
501 |
'volumeInfo.authors': {target: 'author', effect: 'flash'}, |
496 |
'volumeInfo.publisher': {target: 'publishercode', effect: 'flash'}, |
502 |
'volumeInfo.publisher': {target: 'publishercode', effect: 'flash'}, |
|
|
503 |
'volumeInfo.publishedDate': {target: 'copyrightdate', effect: 'flash'}, |
497 |
/* google books api seem to only have books, so if we got a result |
504 |
/* google books api seem to only have books, so if we got a result |
498 |
* item, type will be a book, so set to BK (book). */ |
505 |
* item, type will be a book, so set to BK (book). */ |
499 |
'kind': {target: 'itemtype', handle: function(t,v) { t.val('BK'); },}, |
506 |
'kind': {target: 'itemtype', handle: function(t,v) { t.val('BK'); },}, |