diff --git a/Repositories/otago_eprints/otago_eprints/cfg/ArchiveConfig.pm b/Repositories/otago_eprints/otago_eprints/cfg/ArchiveConfig.pm index 73a9aea..f1dbb17 100755 --- a/Repositories/otago_eprints/otago_eprints/cfg/ArchiveConfig.pm +++ b/Repositories/otago_eprints/otago_eprints/cfg/ArchiveConfig.pm @@ -916,5 +916,35 @@ } +###################################################################### +# +# email_for_doc_request( $session, $eprint ) +# +# Determines who to email the request for an eprint to. +# The method first checks the contact email field. +# If this is not set then it looks for the email address of +# the depositing user. Finally, it falls back to the archive +# administrator's email. +# +###################################################################### + +# sub email_for_doc_request { +# my ( $session, $eprint ) = @_; +# # To turn off this feature, uncomment the line below +# #return undef; +# if( $eprint->is_set("contact_email") ) +# { +# return $eprint->get_value("contact_email"); +# } +# # my $user = $eprint->get_user; +# # if( $user->is_set("email") ) +# # { +# # return $user->get_value("email"); +# # } +# # return $session->get_repository->get_conf("adminemail"); +# return undef; +# } + + # Return true to indicate the module loaded OK. 1;