[Koha-bugs] [Bug 23540] New: Gender 'N' is not translatable
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Sep 5 09:38:07 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23540
Bug ID: 23540
Summary: Gender 'N' is not translatable
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Templates
Assignee: oleonard at myacpl.org
Reporter: pasi.kallinen at koha-suomi.fi
QA Contact: testopia at bugs.koha-community.org
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 %]
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list