Bug 23540 - Gender 'N' is not translatable
Summary: Gender 'N' is not translatable
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: paxed
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-05 07:38 UTC by paxed
Modified: 2024-03-18 20:27 UTC (History)
1 user (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 %]