From 8343ecd72223cfaf7900be3eec42a22e35c59ab9 Mon Sep 17 00:00:00 2001 From: phette23 Date: Wed, 1 May 2024 14:54:56 -0700 Subject: [PATCH] feat: disable first/surname edits in catalog we regularly update patrons names from Workday so its fruitless for them to suggest changes here --- catalog-js/memberentry.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/catalog-js/memberentry.js b/catalog-js/memberentry.js index 0b2210b..2f5dde2 100644 --- a/catalog-js/memberentry.js +++ b/catalog-js/memberentry.js @@ -6,4 +6,6 @@ if (path.match('/cgi-bin/koha/opac-memberentry.pl')) { // we do not show "other phone" (mobile) or fax to patrons // so we remove them from the "main contact method" dropdown $('#borrower_primary_contact_method').find('option[value="mobile"], option[value="fax"]').remove() + // patron names come from Workday, so we don't want them to be editable + $('#borrower_surname, #borrower_firstname').prop('disabled', true).prop('title', 'Update your preferred name in Workday.') }