Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Mark Tompsett 370a10c512 Bug 6815: Capture member photo via webcam
This patch builds on a patch by Mark Tompsett, adding the option to take
a patron's picture using the computer's webcam. The photo can then be
saved to the patron's account.

To test, apply the patch and rebuild the staff interface CSS
(https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client).

- Go to Administration -> System preferences and enable the
  'patronimages' preference.
- View a patron record. In the sidebar, hover your mouse over the blank
  patron image. Click the "Edit" button which appears.
- A modal window should appear with two sections, "Upload patron photo"
  and "Take patron photo."
  - If your computer has a webcam, your browser should ask permission to
    access it. Grant access.
  - You should see the view of your webcam shown under the "Take photo"
    button.
  - Click the "Take photo" button. The captured photo should be shown in
    place of the live video from the webcam.
  - You should now see three buttons: "Retake photo," "Download photo,"
    and "Upload photo."
    - Clicking "Retake photo" should hide those buttons and return you
      to a live video view.
    - Clicking "Download" should make your browser download the image.
    - Clicking "Upload" should cause the page to redirect back to the
      patron detail page where you should see the new patron image
      displayed in the sidebar.
    - Trigger the modal again and click the "cancel" button. The
      modal should disappear and camera access should stop.
- If your computer has no webcam the modal should appear correctly but
  there should be a banner at the bottom indicating that a camera is not
  available.
- Try the test again but this time deny your browser access to the
  webcam. You may need to reset the camera permissions in your browser's
  settings. When the modal appears you should see a message saying
  access to the camera is denied.
- The patron image edit modal should be available on all pages which
  show the patron image in the sidebar: Check out, Batch check out,
  Details, Accounting, Routing lists, Circulation history, Holds
  history, Modification log, Notices, Statistics, Files, Purchase
  suggestions, Discharges, Housebound, and ILL requests history.
- Test adding an image to a patron record using the "Upload photo"
  option. It should still work correctly.
- If the patron has an image attached, the "Upload photo" section should
  have a "Delete" button. Test that it works correctly.

Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-03-24 14:22:10 -10:00
..
acqui Bug 30161: Remove duplicate z3950_search include 2022-03-22 10:17:34 -10:00
admin Bug 30000: Replace the use of jQueryUI tabs on the search engine configuration page 2022-03-24 14:22:09 -10:00
authorities Bug 29965: (follow-up) Use a new class for the preview 2022-02-23 22:05:33 -10:00
basket
batch Bug 29244: Add dialog class where missing in print-notices.tt 2021-10-21 12:24:04 +02:00
catalogue Bug 22605: Preselect subtype limits and don't allow multiple 2022-03-24 14:22:09 -10:00
cataloguing Bug 30161: Remove duplicate z3950_search include 2022-03-22 10:17:34 -10:00
circ Bug 19532: Recalls on intranet 2022-03-14 22:45:51 -10:00
clubs Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
common
course_reserves
errors
ill Bug 30212: Make Select2 available for ILL backends 2022-03-17 11:22:56 -10:00
installer Bug 27823: List upcoming steps during installation process 2021-11-03 15:40:52 +01:00
labels Bug 29824: Allow editing of quick spine labels 2022-02-24 14:35:36 -10:00
mana
members Bug 6815: Capture member photo via webcam 2022-03-24 14:22:10 -10:00
offline_circ
onboarding Bug 28982: Use Flatpickr on onboarding pages 2021-11-03 15:40:53 +01:00
patron_lists Bug 16446: (follow-up) Fix translation and adjust radio buttons 2021-10-21 12:24:04 +02:00
patroncards Bug 28576: Update the maximum size of an image. 2022-02-14 21:41:38 -10:00
plugins Bug 25285: Fix wrong message about required Koha version in plugins 2022-03-17 11:22:56 -10:00
pos Bug 27801: Fix javascript price calculations 2021-12-15 12:15:00 -10:00
recalls Bug 19532: (follow-up) Fixing OPAC display and staff client errors 2022-03-14 22:45:51 -10:00
reports Bug 29876: (follow-up) Change "Report number" to "Report ID" 2022-02-22 22:27:29 -10:00
reserve Bug 19532: Recalls on intranet 2022-03-14 22:45:51 -10:00
reviews
rotating_collections
serials Bug 26257: Move translatable strings out of subscription-add.tt and into subscription-add.js 2022-02-14 21:41:38 -10:00
services Bug 29496: (bug 27526 follow-up) Fix item form validation 2021-11-19 15:07:10 +01:00
suggestion Bug 24370: (QA follow-up) Make new suggestions default to the library you re viewing 2021-11-02 14:57:04 +01:00
tags Bug 29240: Rename start_for with date_to 2021-10-19 14:08:09 +02:00
test
tools Bug 19532: Recalls on intranet 2022-03-14 22:45:51 -10:00
virtualshelves Bug 28782: Use query param list instead of splitting elements using '/' 2022-03-03 16:11:50 -10:00
about.tt Bug 29960: Remove Modernizr dependency in the OPAC 2022-02-16 21:52:51 -10:00
auth.tt Bug 29915: Add selenium tests 2022-03-22 10:17:33 -10:00
intranet-main.tt Bug 29571: Display all pending suggestions even if none from logged in library 2022-01-03 20:58:36 -10:00