Bug 23540

Summary: Gender 'N' is not translatable
Product: Koha Reporter: paxed <pasi.kallinen>
Component: TemplatesAssignee: paxed <pasi.kallinen>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: andrew
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description paxed 2019-09-05 07:38:07 UTC
Patrons of type 'I' (institution) automatically get their sex/gender set to 'N' (which is short for "None"), but the 'N' is not translatable and actually shows up in the patron details page.

Relevant code in memberentrygen.tt:
 [% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %]


The template code for showing the gender text should be unified into single included file, instead of spread over multiple places like:

koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt:                                                    [% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSE %][% patron.sex | html %][% END %]
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-brief.tt:                [% IF ( patron.sex ) %]<li><span class="label">Gender:</span>[% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSE %][% patron.sex | html %][% END %]</li>[% END %]