|
Lines 125-131
Libraries › Administration › Koha
Link Here
|
| 125 |
|
125 |
|
| 126 |
[% IF op == 'add_form' %] |
126 |
[% IF op == 'add_form' %] |
| 127 |
<h3>[% IF library %]Modify library[% ELSE %]New library[% END %]</h3> |
127 |
<h3>[% IF library %]Modify library[% ELSE %]New library[% END %]</h3> |
| 128 |
<form action="/cgi-bin/koha/admin/branches.pl" id="Aform" name="Aform" class="validated" method="post"> |
128 |
<form action="/cgi-bin/koha/admin/branches.pl" id="Aform" name="Aform" method="post"> |
| 129 |
<fieldset class="rows"> |
129 |
<fieldset class="rows"> |
| 130 |
<input type="hidden" name="op" value="add_validate" /> |
130 |
<input type="hidden" name="op" value="add_validate" /> |
| 131 |
[% IF library %] |
131 |
[% IF library %] |
|
Lines 182-192
Libraries › Administration › Koha
Link Here
|
| 182 |
<li><label for="branchcountry">Country: </label><input type="text" name="branchcountry" id="branchcountry" size="60" value="[% library.branchcountry | html %]" /></li> |
182 |
<li><label for="branchcountry">Country: </label><input type="text" name="branchcountry" id="branchcountry" size="60" value="[% library.branchcountry | html %]" /></li> |
| 183 |
<li><label for="branchphone">Phone: </label><input type="text" name="branchphone" id="branchphone" size="60" value="[% library.branchphone | html %]" /></li> |
183 |
<li><label for="branchphone">Phone: </label><input type="text" name="branchphone" id="branchphone" size="60" value="[% library.branchphone | html %]" /></li> |
| 184 |
<li><label for="branchfax">Fax: </label><input type="text" name="branchfax" id="branchfax" size="60" value="[% library.branchfax | html %]" /></li> |
184 |
<li><label for="branchfax">Fax: </label><input type="text" name="branchfax" id="branchfax" size="60" value="[% library.branchfax | html %]" /></li> |
| 185 |
<li><label for="branchemail">Email: </label><input type="text" name="branchemail" id="branchemail" class="email" size="80" value="[% library.branchemail | html %]" /></li> |
185 |
<li><label for="branchemail">Email: </label><input type="email" name="branchemail" id="branchemail" class="email" size="80" value="[% library.branchemail | html %]" /></li> |
| 186 |
[% IF (Koha.Preference('ILLModule')) %] |
186 |
[% IF (Koha.Preference('ILLModule')) %] |
| 187 |
<li> |
187 |
<li> |
| 188 |
<label for="branchillemail">ILL staff email: </label> |
188 |
<label for="branchillemail">ILL staff email: </label> |
| 189 |
<input type="text" name="branchillemail" id="branchillemail" class="email" size="80" value="[% library.branchillemail | html %]" /> |
189 |
<input type="email" name="branchillemail" id="branchillemail" class="email" size="80" value="[% library.branchillemail | html %]" /> |
| 190 |
<div class="hint"> |
190 |
<div class="hint"> |
| 191 |
[% IF ( CAN_user_parameters_manage_sysprefs ) %] |
191 |
[% IF ( CAN_user_parameters_manage_sysprefs ) %] |
| 192 |
Default: <a target="_blank" href="/cgi-bin/koha/admin/preferences.pl?tab=&op=search&searchfield=ILLDefaultStaffEmail">ILLDefaultStaffEmail</a> system preference |
192 |
Default: <a target="_blank" href="/cgi-bin/koha/admin/preferences.pl?tab=&op=search&searchfield=ILLDefaultStaffEmail">ILLDefaultStaffEmail</a> system preference |
|
Lines 198-204
Libraries › Administration › Koha
Link Here
|
| 198 |
[% END %] |
198 |
[% END %] |
| 199 |
<li> |
199 |
<li> |
| 200 |
<label for="branchreplyto">Reply-To: </label> |
200 |
<label for="branchreplyto">Reply-To: </label> |
| 201 |
<input type="text" name="branchreplyto" id="branchreplyto" class="email" size="80" value="[% library.branchreplyto | html %]" /> |
201 |
<input type="email" name="branchreplyto" id="branchreplyto" class="email" size="80" value="[% library.branchreplyto | html %]" /> |
| 202 |
<div class="hint"> |
202 |
<div class="hint"> |
| 203 |
[% IF ( CAN_user_parameters_manage_sysprefs ) %] |
203 |
[% IF ( CAN_user_parameters_manage_sysprefs ) %] |
| 204 |
Default: <a target="_blank" href="/cgi-bin/koha/admin/preferences.pl?tab=&op=search&searchfield=ReplyToDefault">ReplyToDefault</a> system preference |
204 |
Default: <a target="_blank" href="/cgi-bin/koha/admin/preferences.pl?tab=&op=search&searchfield=ReplyToDefault">ReplyToDefault</a> system preference |
|
Lines 209-215
Libraries › Administration › Koha
Link Here
|
| 209 |
</li> |
209 |
</li> |
| 210 |
<li> |
210 |
<li> |
| 211 |
<label for="branchreturnpath">Return-Path: </label> |
211 |
<label for="branchreturnpath">Return-Path: </label> |
| 212 |
<input type="text" name="branchreturnpath" id="branchreturnpath" class="email" size="80" value="[% library.branchreturnpath | html %]" /> |
212 |
<input type="email" name="branchreturnpath" id="branchreturnpath" class="email" size="80" value="[% library.branchreturnpath | html %]" /> |
| 213 |
<div class="hint"> |
213 |
<div class="hint"> |
| 214 |
[% IF ( CAN_user_parameters_manage_sysprefs ) %] |
214 |
[% IF ( CAN_user_parameters_manage_sysprefs ) %] |
| 215 |
Default: <a target="_blank" href="/cgi-bin/koha/admin/preferences.pl?tab=&op=search&searchfield=ReturnpathDefault">ReturnpathDefault</a> system preference |
215 |
Default: <a target="_blank" href="/cgi-bin/koha/admin/preferences.pl?tab=&op=search&searchfield=ReturnpathDefault">ReturnpathDefault</a> system preference |
|
Lines 328-333
Libraries › Administration › Koha
Link Here
|
| 328 |
[% Asset.js("lib/tiny_mce/tinymce.min.js") | $raw %] |
328 |
[% Asset.js("lib/tiny_mce/tinymce.min.js") | $raw %] |
| 329 |
[% INCLUDE 'str/tinymce_i18n.inc' %] |
329 |
[% INCLUDE 'str/tinymce_i18n.inc' %] |
| 330 |
<script> |
330 |
<script> |
|
|
331 |
jQuery.validator.addMethod( "letters_numbers", function(value,element){ |
| 332 |
var patt = /^[a-zA-Z0-9]+$/g; |
| 333 |
if (patt.test(element.value)) { |
| 334 |
return true; |
| 335 |
} else { |
| 336 |
return false; |
| 337 |
} |
| 338 |
}, _("Library code can only contain letters and numbers.") |
| 339 |
); |
| 340 |
|
| 331 |
var columns_settings = [% TablesSettings.GetColumns( 'admin', 'libraries', 'libraries', 'json' ) | $raw %]; |
341 |
var columns_settings = [% TablesSettings.GetColumns( 'admin', 'libraries', 'libraries', 'json' ) | $raw %]; |
| 332 |
$(document).ready(function() { |
342 |
$(document).ready(function() { |
| 333 |
|
343 |
|
|
Lines 496-512
Libraries › Administration › Koha
Link Here
|
| 496 |
] |
506 |
] |
| 497 |
}, columns_settings); |
507 |
}, columns_settings); |
| 498 |
|
508 |
|
| 499 |
[% UNLESS library %] |
509 |
$("#Aform").validate({ |
| 500 |
$("#Aform").on("submit", function( event ) { |
510 |
rules: { |
| 501 |
if ( $("#branchcode").val().match(/\s/) ) { |
511 |
branchcode: { |
| 502 |
event.preventDefault(); |
512 |
required: true, |
| 503 |
alert(_("The library code entered contains whitespace characters. Please remove any whitespace characters from the library code")); |
513 |
letters_numbers: true |
| 504 |
return false; |
|
|
| 505 |
} else { |
| 506 |
return true; |
| 507 |
} |
514 |
} |
| 508 |
}); |
515 |
} |
| 509 |
[% END %] |
516 |
}); |
|
|
517 |
|
| 510 |
}); |
518 |
}); |
| 511 |
|
519 |
|
| 512 |
tinyMCE.init({ |
520 |
tinyMCE.init({ |
| 513 |
- |
|
|