Koha/koha-tmpl/intranet-tmpl/prog/js
David Cook 855b8bc66e
Bug 35344: Warn on patron image upload if missing cardnumber
This change displays a warning message instead of the patron image
upload feature in the patron record when the patron is missing the
cardnumber.

Without this change, the staff user can try to upload a patron image
but it will silently fail. This change warns the staff user of the
cardnumber requirement for patron image upload.

Test plan:
0. Apply the patch
1. Enable the "patronimages" system preference
2. Go to http://localhost:8081/cgi-bin/koha/members/moremember.pl?borrowernumber=51
3. Click "Add" over the patron image placeholder
4. Note the "Upload photo" button and the ability to take a patron photo if your
device has a camera
5. Remove "cardnumber" from BorrowerMandatoryField
6. Go to http://localhost:8081/cgi-bin/koha/circ/circulation.pl?borrowernumber=51
7. Edit the patron to remove the cardnumber
8. Click "Add" over the patron image placeholder
9. Note that no patron image upload features appear. Instead, only
a warning appears stating that the patron needs a cardnumber before
the patron image upload can be performed

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2023-12-11 19:41:25 +01:00
..
modals Bug 35081: Make it possible to translate catalog concern status messages 2023-10-20 11:02:53 -03:00
pages Bug 35194: Remove obsoleted sortable function 2023-11-09 14:42:21 -03:00
vue Bug 35408: Fix import job link 2023-12-11 19:41:23 +01:00
acq.js
acquisitions-menu.js
additem.js Bug 35441: Fix typo 'UniqueItemsFields' system preference 2023-12-07 11:16:22 +01:00
addorderiso2709.js
admin-menu.js
ajax.js
audio_alerts.js
auth-finder-search.js Bug 31132: (follow-up) Reset dropdown values and style button 2023-06-23 11:00:59 -03:00
authorities-detail-modal.js Bug 34180: Template variable in JavaScript prevents authority MARC preview from displaying 2023-07-03 14:51:45 -03:00
authtype.js
automatic_item_modification_by_age.js
basket.js Bug 34553: Update send list and send cart popup footers 2023-09-22 11:35:46 -03:00
biblio_framework.js
browser.js Bug 28196: Insert searchid in URL correctly, so it doesn't follow the hash 2023-07-12 14:30:57 -03:00
calendar.js
cancel_booking_modal.js Bug 29002: (follow-up) Add bookings count to side menu 2023-11-03 12:04:14 -03:00
cart.js Bug 35072: Fix invalid usage of "&amp;" in JavaScript intranet-tmpl script redirects 2023-10-24 10:05:27 -03:00
cashup_modal.js Bug 31041: (follow-up) Clean up and generalise 2023-11-08 09:59:00 -03:00
catalog.js Bug 35072: Fix invalid usage of "&amp;" in JavaScript intranet-tmpl script redirects 2023-10-24 10:05:27 -03:00
cataloging.js Bug 35425: Optimize UX when dragging a tag or subfield 2023-12-11 19:41:25 +01:00
cataloging_additem.js
categories.js
charts.js
checkout_renewals_modal.js
checkouts.js Bug 35251: Update checkout count when refreshing issue table 2023-11-10 10:59:34 -03:00
cookieconsent.js Bug 27378: Introduce cookie consent to OPAC and staff client 2023-09-12 09:45:07 -03:00
datatables.js Bug 35284: Fix tests 2023-11-10 10:59:31 -03:00
desk_selection.js
elasticsearch-mappings.js Bug 34625: Fix search engine configuration tables header problem 2023-09-05 11:52:26 -03:00
file-upload.js
funds_sorts.js Bug 22712: Make 'Show inactive funds' button on addorderiso2907.pl work for item budgets 2023-10-30 09:02:18 -03:00
holds.js Bug 35072: Fix invalid usage of "&amp;" in JavaScript intranet-tmpl script redirects 2023-10-24 10:05:27 -03:00
ill-availability-partner.js
ill-availability.js
ill-batch-modal.js Bug 30719: (QA follow-up) Updating remaining naming 2023-10-17 14:45:23 -03:00
ill-batch-table.js Bug 30719: (QA follow-up) Updating remaining naming 2023-10-17 14:45:23 -03:00
ill-batch.js Bug 30719: (QA follow-up) Rename illbatches endpoint to ill/batches 2023-10-17 14:45:20 -03:00
ill-list-table.js Bug 34058: Use buildSearchPatronQuery when searching for patrons on left side filters 2023-11-09 14:42:20 -03:00
item_search_fields.js Bug 34401: Fix inconsistencies in Item search fields page titles, breadcrumbs, and headers 2023-10-17 14:45:29 -03:00
job_progress.js Bug 34468: Add progress callback to job_progress.js 2023-10-25 12:09:48 -03:00
letter.js
localcovers.js
mana.js
marc_modification_templates.js
marc_subfields_structure.js Bug 34114: Replace the use of jQueryUI sortable 2023-09-22 13:00:00 -03:00
members-menu.js Bug 35344: Warn on patron image upload if missing cardnumber 2023-12-11 19:41:25 +01:00
members.js Bug 33684: Make mandatory date fields required when editing a patron 2023-05-10 15:26:27 -03:00
merge-record.js
messaging-preference-form.js
modal_printer.js Bug 31041: (follow-up) Clean up and generalise 2023-11-08 09:59:00 -03:00
onboarding.js
patron-webcam.js Bug 35344: Warn on patron image upload if missing cardnumber 2023-12-11 19:41:25 +01:00
place_booking_modal.js Bug 29002: Empty select2 options for patron at modal close 2023-11-03 12:04:29 -03:00
recalls.js
register_selection.js
resolve_claim_modal.js
restrictiontypes.js Bug 16223: Add ability to define liftable restrictions 2023-10-11 12:13:06 -03:00
rotating-collections.js
select2.js
serials-toolbar.js
showpredictionpattern.js
sms_providers.js
staff-global.js Bug 34058: Preparation: buildPatronSearchQuery 2023-11-09 14:42:19 -03:00
subscription-add.js Bug 32910: (follow-up) Replace v4 icon names with v6 2023-06-12 11:52:10 -03:00
table_filters.js
tools-menu.js
upload-images.js Bug 32910: (follow-up) A few more icon name corrections 2023-06-12 11:52:11 -03:00
viewlog.js
xmlControlfield.js Bug 34565: Label mismatch in MARC21 006 and 008 cataloging plugins 2023-08-29 14:37:12 -03:00
z3950_search.js Bug 33655: z39.50 search no longer shows search in progress 2023-05-12 11:22:37 -03:00