Lines 91-96
$(document).ready(function() {
Link Here
|
91 |
} |
91 |
} |
92 |
}); |
92 |
}); |
93 |
|
93 |
|
|
|
94 |
$('#duplicate').on('click', function() { |
95 |
$("input[name='op']").val('modify'); |
96 |
$("input[name='borrowernumber']").val('[% check_member %]'); |
97 |
$('#entryform').submit(); |
98 |
}); |
99 |
|
100 |
$('#not-duplicate').on('click', function() { |
101 |
$("input[name='nodouble']").val('1'); |
102 |
$('#entryform').submit(); |
103 |
}); |
94 |
}); |
104 |
}); |
95 |
|
105 |
|
96 |
var MSG_SEPARATOR = _("Separator must be / in field %s"); |
106 |
var MSG_SEPARATOR = _("Separator must be / in field %s"); |
Lines 151-168
$(document).ready(function() {
Link Here
|
151 |
<div class="dialog alert"> |
161 |
<div class="dialog alert"> |
152 |
<h3>Duplicate patron record?</h3> |
162 |
<h3>Duplicate patron record?</h3> |
153 |
<p><a class="popup" href="#" onclick="Dopop('moremember.pl?print=brief&borrowernumber=[% check_member %]');return false;" >View existing record</a></p> |
163 |
<p><a class="popup" href="#" onclick="Dopop('moremember.pl?print=brief&borrowernumber=[% check_member %]');return false;" >View existing record</a></p> |
154 |
<form action="/cgi-bin/koha/members/memberentry.pl" method="get"> |
164 |
<button id="duplicate" type="submit" class="new"><i class="fa fa-pencil"></i> It is a duplicate. |
155 |
<input type="hidden" name="op" value="modify" /> |
165 |
Edit existing record</button> |
156 |
<input type="hidden" name="borrowernumber" value="[% check_member %]" /> |
|
|
157 |
<input type="hidden" name="csrf_token" value="[% csrf_token %]" /> |
158 |
<button type="submit" class="new"><i class="fa fa-pencil"></i> It is a duplicate. |
159 |
Edit existing record</button> |
160 |
</form> |
161 |
|
166 |
|
162 |
<form name="form" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off"> |
167 |
<button type="submit" id="not-duplicate" class="new"><i class="fa fa-plus"></i> Not a duplicate. |
163 |
<input type="hidden" name="nodouble" value="1" /> |
|
|
164 |
<input type="hidden" name="csrf_token" value="[% csrf_token %]" /> |
165 |
<button type="submit" class="new"><i class="fa fa-plus"></i> Not a duplicate. |
166 |
Save as new record</button> |
168 |
Save as new record</button> |
167 |
</div> |
169 |
</div> |
168 |
[% END %] |
170 |
[% END %] |
Lines 241-248
$(document).ready(function() {
Link Here
|
241 |
[% END %] |
243 |
[% END %] |
242 |
</div> |
244 |
</div> |
243 |
|
245 |
|
244 |
[% UNLESS ( check_member ) %]<form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off" class="toggler" > |
246 |
<form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off" class="toggler" > |
245 |
<input type="hidden" name="nodouble" value="[% nodouble %]" /> [% END %] |
247 |
[% UNLESS ( check_member ) %] |
|
|
248 |
<input type="hidden" name="nodouble" value="[% nodouble %]" /> |
249 |
[% END %] |
246 |
<!-- field always hidden in different form (1,2,3) --> |
250 |
<!-- field always hidden in different form (1,2,3) --> |
247 |
<input type="hidden" name="BorrowerMandatoryField" value="[% BorrowerMandatoryField %]" /> |
251 |
<input type="hidden" name="BorrowerMandatoryField" value="[% BorrowerMandatoryField %]" /> |
248 |
<input type="hidden" name="category_type" value="[% category_type %]" /> |
252 |
<input type="hidden" name="category_type" value="[% category_type %]" /> |
249 |
- |
|
|