@@ -, +, @@ form exists. You should get a confirmation message on screen which asks if the patron is a duplicte. Test the link which shows the existing record. It should trigger a popup window with details about the patron. date should trigger the display of the patron's age immedately below the field. precedes the date in the registration date field. that the "Clear date" link works correctly. attributes and identifiers. display of available attributes and identifiers: The attribute you have associated with a particular patron category should only show if that category is selected under "Category." --- .../prog/en/modules/members/memberentrygen.tt | 79 +++++++++++-------- 1 file changed, 48 insertions(+), 31 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -99,13 +99,9 @@ legend:hover { [% IF ( check_member ) %]

Duplicate patron record?

-

View existing record

- - +

View existing record

+ +
[% END %] @@ -321,7 +317,7 @@ legend:hover { [% END %] Date of birth: - + [% IF ( mandatorydateofbirth ) %] Required [% END %] @@ -817,7 +813,7 @@ legend:hover {
  • - [% FOREACH typeloo IN typeloop %] [% FOREACH categoryloo IN typeloo.categoryloop %] [% IF ( loop.first ) %] @@ -935,11 +931,7 @@ legend:hover { [% END %] Registration date: - [% IF ( dateformat == "metric" ) %] - - [% ELSE %] - - [% END %] + [% IF ( mandatorydateenrolled ) %] Required [% END %] @@ -962,19 +954,11 @@ legend:hover { [% END %] Expiry date (leave blank for auto calc): - [% IF ( dateformat == "metric" ) %] - [% UNLESS ( opadd ) %] - - [% ELSE %] - - [% END %] + [% UNLESS ( opadd ) %] + [% ELSE %] - [% UNLESS ( opadd ) %] - - [% ELSE %] - - [% END %] - [% END # /IF ( dateformat == "metric" ) %] + + [% END %] [% IF ( mandatorydateexpiry ) %] Required [% END %] @@ -1261,12 +1245,12 @@ legend:hover {
    1. - +
    2. - - Clear date + + Clear date

    @@ -1354,9 +1338,9 @@ legend:hover { [% END # /IF ( patron_attribute.use_dropdown ) %] - Clear + Clear [% IF ( patron_attribute.repeatable ) %] - New + New [% END %]

  • [% END # /FOREACH patron_attribute %] @@ -1619,6 +1603,39 @@ legend:hover { $("input[name='nodouble']").val('1'); $('#entryform').submit(); }); + + $(".popup_patronview").on("click", function(e){ + e.preventDefault(); + var url = $(this).attr("href"); + openWindow( url, "patronview" ); + }); + + $("#dateofbirth").on("change", function(){ + write_age(); + }); + + $("#debarred_comment, #debarred_expiration").on("change", function(){ + $("#add_debarment").val(1); + }); + + $("#clear_debarred_expiration").on("click", function(e){ + e.preventDefault(); + $('#debarred_expiration').val(""); + }); + + $(".clear_attribute").on("click", function(e){ + e.preventDefault(); + clear_entry( this ); + }); + + $(".clone_attribute").on("click", function(e){ + e.preventDefault(); + clone_entry( this ); + }); + + $("#categorycode_entry").on("change", function(){ + update_category_code(this); + }); }); var MSG_SEPARATOR = _("Separator must be / in field %s"); --