@@ -, +, @@
---------
must be set to 'Allow'.
-- it is in the text area on the right, and not the
hover over the image area. Adding here would require
CSS changes, which are now difficult and ugly to do.
-- new tab should open. If you have a working webcam,
you should see it playing 'live'.
-- this should download a photo SamplePhoto.jpg or some
variation of that.
the patron image.
-- the webcam photo should now be used.
---
.../prog/en/modules/members/member-webcam.tt | 107 +++++++++++++++++++++
.../prog/en/modules/members/moremember.tt | 4 +
members/webcam.pl | 37 +++++++
3 files changed, 148 insertions(+)
create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/members/member-webcam.tt
create mode 100755 members/webcam.pl
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-webcam.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-webcam.tt
@@ -0,0 +1,107 @@
+
+
+
+
+
+ Koha Patron Image Via Webcam
+
+
+
+
+
Koha Patron Image Taker
+
Ask the patron to face the webcam to take their picture.
+
WARNING: If your machine does not have a webcam,
+ your browser is not allowed camera access, your operating
+ system blocks the browser app from accessing the camera,
+ or your browser does not support the javascript used
+ in this page, this may not work and likely looks like
+ a empty page. If this is working you will see a video
+ playing of what the webcam sees.
[% # /div#manage-patron-image %]
[% END %]
[% END %]
--- a/members/webcam.pl
+++ a/members/webcam.pl
@@ -0,0 +1,37 @@
+#!/usr/bin/perl
+
+# This file is part of Koha.
+#
+# Copyright 2019 Mark Tompsett
+#
+# Koha is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# Koha is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Koha; if not, see .
+
+use Modern::Perl;
+
+use CGI qw ( -utf8 );
+use C4::Auth;
+use C4::Output;
+
+my $input = new CGI;
+
+my ( $template, $loggedinuser, $cookie, $staff_flags ) = get_template_and_user(
+ { template_name => "members/member-webcam.tt",
+ query => $input,
+ type => "intranet",
+ authnotrequired => 0,
+ flagsrequired => { borrowers => 'edit_borrowers' },
+ }
+);
+
+output_html_with_http_headers( $input, $cookie, $template->output );
--