Skip to content

Commit

Permalink
feat: disable first/surname edits in catalog
Browse files Browse the repository at this point in the history
we regularly update patrons names from Workday so its fruitless for them to suggest changes here
  • Loading branch information
phette23 committed May 1, 2024
1 parent fcfc674 commit 8343ecd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions catalog-js/memberentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
}

0 comments on commit 8343ecd

Please sign in to comment.