Add option to omit patron email from LookupUser
authorJeff Godin <jgodin@tadl.org>
Wed, 14 Aug 2013 20:23:17 +0000 (16:23 -0400)
committerJeff Godin <jgodin@tadl.org>
Wed, 14 Aug 2013 20:23:17 +0000 (16:23 -0400)
Add option to omit the patron email address in a LookupUserResponse
message.

To omit patron email addresses, specify the following in the config
file:

[behavior]
omit_patron_email = yes

The default is to include patron email addresses in the
LookupUserResponse message.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
iNCIPit.cgi
iNCIPit.ini-example

index 6df58fb..c004b4a 100644 (file)
@@ -837,7 +837,7 @@ sub lookupUser {
             </BlockOrTrap>);
     }
 
-    if ( defined( $patron->email ) ) {
+    if ( defined( $patron->email ) && $conf->{behavior}->{omit_patron_email} !~ m/^y/i ) {
         $email = qq(
             <UserAddressInformation>
                 <ElectronicAddress>
index 629fe51..5a2d3e8 100644 (file)
@@ -9,6 +9,7 @@ password = EXAMPLE
 
 [behavior]
 #no_item_agency_holds = no
+#omit_patron_email    = no
 
 [copy]
 circ_modifier = DCB