Bugzilla – Attachment 97335 Details for
Bug 19793
Add email to batch patron modification
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19793 - Add a field for email in batch patron modification
Bug-19793---Add-a-field-for-email-in-batch-patron-.patch (text/plain), 3.74 KB, created by
David Roberts
on 2020-01-14 09:13:28 UTC
(
hide
)
Description:
Bug 19793 - Add a field for email in batch patron modification
Filename:
MIME Type:
Creator:
David Roberts
Created:
2020-01-14 09:13:28 UTC
Size:
3.74 KB
patch
obsolete
>From b8f3f177d4c3978331c5a18dc09515ffadbcdff4 Mon Sep 17 00:00:00 2001 >From: David Roberts <david.roberts@ptfs-europe.com> >Date: Mon, 13 Jan 2020 22:43:46 +0000 >Subject: [PATCH] Bug 19793 - Add a field for email in batch patron > modification > >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt | 4 ++++ > tools/modborrowers.pl | 8 +++++++- > 2 files changed, 11 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt >index 7a9333432e..0d5a8be4da 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt >@@ -149,6 +149,7 @@ > <th class="title-string">Expiry date</th> > <th>Circulation note</th> > <th>OPAC note</th> >+ <th>Email address</th> > <th>Restriction expiration</th> > <th>Restriction comment</th> > [% FOREACH attrh IN attributes_header %] >@@ -175,6 +176,7 @@ > <td><span title="[% borrower.dateexpiry | html %]">[% borrower.dateexpiry | $KohaDates %]</span></td> > <td>[% borrower.borrowernotes | html %]</td> > <td>[% borrower.opacnote | html %]</td> >+ <td>[% borrower.email | html %]</td> > <td><span title="[% borrower.debarred | html %]">[% borrower.debarred | $KohaDates %]</span></td> > <td>[% borrower.debarredcomment | html %]</td> > [% FOREACH pa IN borrower.patron_attributes %] >@@ -233,6 +235,8 @@ > Circulation note: > [% CASE 'opacnote' %] > OPAC note: >+ [% CASE 'email' %] >+ Email address: > [% CASE 'debarred' %] > Restriction expiration: > [% CASE 'debarredcomment' %] >diff --git a/tools/modborrowers.pl b/tools/modborrowers.pl >index eaa93eaf8f..a5bf5a0050 100755 >--- a/tools/modborrowers.pl >+++ b/tools/modborrowers.pl >@@ -264,6 +264,12 @@ if ( $op eq 'show' ) { > mandatory => ( grep /opacnote/, @mandatoryFields ) ? 1 : 0, > } > , >+ { >+ name => "email", >+ type => "text", >+ mandatory => ( grep /email/, @mandatoryFields ) ? 1 : 0, >+ } >+ , > { > name => "debarred", > type => "date", >@@ -288,7 +294,7 @@ if ( $op eq 'do' ) { > > my @disabled = $input->multi_param('disable_input'); > my $infos; >- for my $field ( qw/surname firstname branchcode categorycode city state zipcode country sort1 sort2 dateenrolled dateexpiry borrowernotes opacnote debarred debarredcomment/ ) { >+ for my $field ( qw/surname firstname branchcode categorycode city state zipcode country sort1 sort2 dateenrolled dateexpiry borrowernotes opacnote email/ ) { > my $value = $input->param($field); > $infos->{$field} = $value if $value; > $infos->{$field} = "" if grep { /^$field$/ } @disabled; >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19793
:
97335
|
97347
|
97647
|
97648