diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-sex-label.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-sex-label.inc new file mode 100644 index 0000000000..e32ec12fd5 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-sex-label.inc @@ -0,0 +1,8 @@ +[%# The variable sex must be passed, containing a patron's gender code (F, M, O, or blank) -%] +[%- IF sex == 'F' -%] + Female +[%- ELSIF sex == 'M' -%] + Male +[%- ELSIF sex == 'O' -%] + [% tp('gender', 'Other') | html %] +[%- END -%] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt index 9867a8e63d..3781659fbf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt @@ -258,15 +258,7 @@ [% borrower.cardnumber | html %] [% borrower.surname | html %] [% borrower.firstname | html %] - - [% IF borrower.sex == 'F' %] - Female - [% ELSIF borrower.sex == 'M' %] - Male - [% ELSIF borrower.sex == 'O' %] - [% tp('gender', 'Other') | html %] - [% END %] - + [% INCLUDE 'patron-sex-label.inc' sex = borrower.sex %] [% Branches.GetName( borrower.branchcode ) | html %] [% Categories.GetName(borrower.categorycode) | html %] [% borrower.streetnumber | html %] @@ -422,12 +414,8 @@