<div id="breadcrumbs">
<a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
[% UNLESS blocking_error %]
- ›[% IF (firstname || surname ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | html %]">[% IF (firstname) %][% firstname | html %] [% END %][% IF (surname) %][% surname | html %] [% END %]</a> ›[% END %]
+ ›[% IF (firstname || surname ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | uri %]">[% IF (firstname) %][% firstname | html %] [% END %][% IF (surname) %][% surname | html %] [% END %]</a> ›[% END %]
<strong>[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron ([%IF ( categoryname ) %][% categoryname | html %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])</strong>
[% END %]
</div>
[% INCLUDE 'blocking_errors.inc' %]
[% IF error_alert %]
[% IF ( error_alert == "no_email" ) %]
- <div class="error">This member has no email</div>
+ <div class="dialog alert">This member has no email</div>
[% ELSE %]
- <div class="error">[% error_alert | html %]</div>
+ <div class="dialog alert">[% error_alert | html %]</div>
[% END %]
[% END %]
[% IF info_alert %]
[% ELSE %]
<li id="contact-details" style="display: none">
[% END %]
- <span class="label">Organization #:</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid | html %]" target="blank">[% guarantorid | html %]</a>[% END %]
+ <span class="label">Organization #:</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid | uri %]" target="blank">[% guarantorid | html %]</a>[% END %]
</li>
<li>
<label for="contactname">Organization name: </label>
<span class="label">Patron #:</span>
[% IF guarantorid %]
[% IF logged_in_user.can_see_patron_infos( guarantor ) %]
- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid | html %]" target="blank">[% guarantorid | html %]</a>
+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid | uri %]" target="blank">[% guarantorid | html %]</a>
[% ELSE %]
[% guarantorid | html %]
[% END %]
[% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %]
</li>
[% END %]
- [% IF ( Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 ) %]
- <li>
- <label for="sort2">Sync with the Norwegian national patron database:</label>
- [% IF ( sync == 0 ) %]
- <input type="radio" id="sync" name="sync" value="1"> Yes
- <input type="radio" id="sync" name="sync" value="0" checked> No
- [% ELSE %]
- <input type="radio" id="sync" name="sync" value="1" checked> Yes
- <input type="radio" id="sync" name="sync" value="0"> No
- [% END %]
- </li>
- [% END %]
[% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
<li><label for="checkprevcheckout">Check for previous checkouts: </label>
<select name="checkprevcheckout" id="checkprevcheckout">
<legend id="manual_restriction_lgd">Add manual restriction</legend>
<ol>
<li><label for="debarred_comment">Comment: </label><input type="text" id="debarred_comment" name="debarred_comment" onchange="$('#add_debarment').val(1);" /></li>
- <li><label for="debarred_expiration">Expiration: </label><input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" onchange="$('#add_debarment').val(1);" />
+ <li><label for="debarred_expiration">Expiration: </label><input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" onchange="$('#add_debarment').val(1);" type="text" />
<a href='javascript:void(0)' onclick="$('#debarred_expiration').val('');">Clear date</a></li>
</ol>
<legend id="patron_attributes_lgd">Additional attributes and identifiers</legend>
<input type="hidden" name="setting_extended_patron_attributes" value="1" />
[% FOREACH pa_loo IN patron_attributes %]
- [% IF pa_loo.class %]
- <fieldset id="aai_[% pa_loo.class | html %]">
- <legend id="[% pa_loo.class | html %]_lgd">[% pa_loo.lib | html %]</legend>
- [% END %]
<ol class="attributes_table">
+ [% IF pa_loo.class %]
+ <fieldset id="aai_[% pa_loo.class | html %]">
+ <legend id="[% pa_loo.class | html %]_lgd">[% pa_loo.lib | html %]</legend>
+ [% END %]
[% FOREACH patron_attribute IN pa_loo.items %]
<li data-category_code="[% patron_attribute.category_code | html %]">
<label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label>
[% END %]
</li>
[% END %]
+ [% IF pa_loo.class %]</fieldset>[% END %]
</ol>
- [% IF pa_loo.class %]</fieldset>[% END %]
[% END %]
</fieldset>
[% END %][% END %][% END %]
[% IF ( step_5 ) %][% IF ( EnhancedMessagingPreferences ) %]
<fieldset class="rows" id="memberentry_messaging_prefs">
<legend id="patron_messaging_prefs_lgd">Patron messaging preferences</legend>
- [% IF ( opadd ) %]
- <!-- handle changing prefs if creating new patron and changing
- the patron category
- -->
- <script type="text/javascript">//<![CDATA[
- $(document).ready(function(){
- var message_prefs_dirty = false;
- $('#memberentry_messaging_prefs > *').change(function() {
- message_prefs_dirty = true;
- });
- $('#categorycode_entry').change(function() {
- var categorycode = $(this).val();
- if (message_prefs_dirty) {
- if (!confirm(_("Change messaging preferences to default for this category?"))) {
- return;
- }
- }
- $.getJSON('/cgi-bin/koha/members/default_messageprefs.pl?categorycode=' + categorycode,
- function(data) {
- $.each(data.messaging_preferences, function(i, item) {
- var attrid = item.message_attribute_id;
- var transports = ['email', 'rss', 'sms'];
- $.each(transports, function(j, transport) {
- if (item['transports_' + transport] == 1) {
- $('#' + transport + attrid).prop('checked', true);
- } else {
- $('#' + transport + attrid).prop('checked', false);
- }
- });
- if (item.digest && item.digest != ' ') {
- $('#digest' + attrid).prop('checked', true);
- } else {
- $('#digest' + attrid).prop('checked', false);
- }
- if (item.takes_days == '1') {
- $('[name=' + attrid + '-DAYS]').val('' + item.days_in_advance);
- }
- });
- message_prefs_dirty = false;
- }
- );
- });
- });
- //]]>
- </script>
- [% END %]
+ <div id="messaging_prefs_loading" class="form-message" style="display:none">
+ <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading new messaging defaults
+ </div>
<input type="hidden" name="setting_messaging_prefs" value="1" />
[% INCLUDE 'messaging-preference-form.inc' %]
[% IF ( SMSSendDriver ) %]
</div>
[% UNLESS ( opadd ) %]<div class="yui-b">
-[% INCLUDE 'members-menu.inc' %]
+[% INCLUDE 'circ-menu.inc' %]
</div>[% END %]
[% END %]
</div>
var LABEL_CHANGE = _("Change");
var LABEL_SET_TO_PATRON = _("Set to patron");
var LABEL_AGE = _("Age");
+ var MSG_MESSAGING_DFEAULTS = _("Change messaging preferences to default for this category?");
[% IF quickadd && opadd && !check_member %]
$(document).ready(function () {
$("#entryform,#saverecord").hide();
- [% q_add_f = Koha.Preference('PatronQuickAddFields').split('\|') | html %]
+ [% q_add_f = Koha.Preference('PatronQuickAddFields').split('\|') %]
var qaddfields = [[% FOREACH field IN q_add_f.unique %]"[% field | html %]",[% END %]];
var skipped_fields = ["contactname","contactfirstname","relationship"]; //Guarantor form is pulled as a whole, ignore individual fields
$("#entryform label").each(function () {