Koha-clms/tools
Martin Renvoize 1e0442b847
Bug 41105: (QA follow-up) DRY out gender label rendering
The gender-code-to-label mapping (F/M/O -> Female/Male/Other) was
duplicated between the results table cell and the edit-form select
options in modborrowers.tt. Extract it into a shared
patron-sex-label.inc so there is a single place defining the mapping,
and drop the now-unused "lib" values from the sex options in
tools/modborrowers.pl (labels are supplied by the include, keyed on
the option value, rather than by Perl).

Test plan:
1. Navigate to Patrons and click Search, to display a list of patrons.
2. Select all results and click "Batch patron modification".
3. Verify the "Gender" column displays Female/Male/Other correctly.
4. Verify the "Gender" edit dropdown still offers Female/Male/Other
   and saves correctly.

Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-08-14 12:09:18 +00:00
..
csv-profiles
…
access_files.pl
…
additional-contents.pl Bug 41614: available options template params also needed for op=list 2026-03-24 07:48:24 +01:00
ajax-inventory.pl
…
automatic_item_modification_by_age.pl Bug 42746: (QA follow-up) Sanitize agefield and substitution field at the sink too 2026-08-11 12:39:38 +00:00
batchMod.pl
…
batch_delete_records.pl
…
batch_extend_due_dates.pl
…
batch_modify_holds.pl Bug 41882: Enforce pickup location rules 2026-04-29 09:09:20 -06:00
batch_record_modification.pl
…
batch_records_ajax.pl
…
cleanborrowers.pl
…
copy-holidays.pl
…
csv-profiles.pl
…
exceptionHolidays.pl
…
export.pl
…
holidays.pl
…
import_borrowers.pl
…
inventory.pl Bug 38946: Add enumchron to inventory table 2026-02-27 11:38:33 -07:00
letter.pl Bug 40659: (follow-up) include substitutions in the possible options for template 2026-04-23 16:04:12 -06:00
manage-marc-import.pl
…
marc_modification_templates.pl Bug 16994: Import and export MARC modification templates 2026-04-17 09:18:16 -06:00
modborrowers.pl Bug 41105: (QA follow-up) DRY out gender label rendering 2026-08-14 12:09:18 +00:00
newHolidays.pl
…
overduerules.pl
…
page.pl Bug 43019: Prevent access to pages belonging to another library (staff side) 2026-08-11 12:39:48 +00:00
picture-upload.pl
…
problem-reports.pl
…
quotes-upload.pl
…
quotes.pl
…
restore-records.pl Bug 17387: (follow-up) move records_restore under editcatalogue permission 2026-04-15 14:10:27 -06:00
scheduler.pl Bug 16631: Institute library limits 2026-07-28 14:32:25 +00:00
showdiffmarc.pl
…
stage-marc-import.pl
…
stockrotation.pl Bug 41076: Adjust our perl tidiness for v20250105 2026-02-05 09:03:51 -07:00
tools-home.pl
…
upload-cover-image.pl Bug 8088: (follow-up) Tidy 2026-04-15 14:10:15 -06:00
upload-file.pl
…
upload.pl
…
viewlog.pl Bug 41358: Apply consistent JSON logging to holds (Bug 40866) 2026-07-16 10:54:22 +00:00