Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members
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
..
tables Bug 26102: Prevent XSS when To.json is used: guarantor_search.tt 2022-02-02 21:05:29 -10:00
accountline-details.tt Bug 22435: Update accountline-details page to show all history 2021-08-04 14:06:43 +02:00
apikeys.tt Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
boraccount.tt Bug 28663: Prevent discounts against void lines 2022-03-01 22:47:46 -10:00
deletemem.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
discharge.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
discharges.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
files.tt Bug 27846: (follow-up) Add id back to breadcrumbs container 2021-04-01 18:51:38 +02:00
holdshistory.tt Bug 27990: Replace obsolete title-string sorting: Patrons 2021-04-06 15:56:31 +02:00
housebound.tt Bug 6815: Capture member photo via webcam 2022-03-24 14:22:10 -10:00
ill-requests.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
mancredit.tt Bug 27636: (QA follow-up) Fix tests and validate 2021-04-30 17:07:31 +02:00
maninvoice.tt Bug 27636: (QA follow-up) Fix tests and validate 2021-04-30 17:07:31 +02:00
member-flags.tt Bug 28882: Disable select/hide all links 2021-09-09 10:59:37 +02:00
member-password.tt Bug 28428: Capitalization: Password Updated 2021-06-21 12:07:28 +02:00
member.tt Bug 30325: (Bug 30098 follow-up) Fix broken patron search redirect when one result 2022-03-22 10:17:33 -10:00
memberentrygen.tt Bug 29684: (QA follow-up) add lost borrower_data. prefix in memberentrygen.tt for: - primary_contact_method - autorenew_checkouts - sort1 - sort2 2022-03-15 22:30:50 -10:00
members-update.tt Bug 28073: Patron modifications should auto-open panel for referring patron record 2021-07-26 12:46:32 +02:00
merge-patrons.tt Bug 29513: Convert remaining breadcrumbs div blocks into nav 2021-12-01 21:38:12 -10:00
moremember-brief.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
moremember-patronimage.tt Bug 6815: Capture member photo via webcam 2022-03-24 14:22:10 -10:00
moremember-print.tt Bug 29820: Set paging option using boolean instead of string 2022-01-18 21:15:05 -10:00
moremember.tt Bug 6815: Capture member photo via webcam 2022-03-24 14:22:10 -10:00
notices.tt Bug 29491: Improve display of notices in patron details 2022-01-13 16:37:32 -10:00
pay.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
paycollect.tt Bug 29684: (QA follow-up) paycollect.pl don't needs borrower_data at all 2022-03-15 22:30:50 -10:00
printfeercpt.tt Bug 26734: Convert printfeercpt/printinvoice to use GetPreparedLetter 2021-04-27 16:23:49 +02:00
printinvoice.tt Bug 26734: Convert printfeercpt/printinvoice to use GetPreparedLetter 2021-04-27 16:23:49 +02:00
purchase-suggestions.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
readingrec.tt Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
recallshistory.tt Bug 19532: Recalls on intranet 2022-03-14 22:45:51 -10:00
routing-lists.tt Bug 27846: (follow-up) Add id back to breadcrumbs container 2021-04-01 18:51:38 +02:00
statistics.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
update-child.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00