Re: [dspace-tech] Re: Send email on bitstream download

2016-11-01 Thread Luiz dos Santos
Hi Andrea,

  I did a post in my blog about the old way to do a DSpace consumer (
http://luizclaudiosantos.me/the-most-useless-dspace-consumer-ever/),
however, I was not able to understand when exactly this event listener is
called in Spring, do you know that? I even saw this answer of yours in the
stackoverflow (http://stackoverflow.com/questions/30315988/dspace-
event-producer-consumer)

Best regards
Luiz

Luiz Claudio Santos
http://luizclaudiosantos.me/

Luiz Claudio Santos
http://luizclaudiosantos.me/

On Tue, Nov 1, 2016 at 4:14 PM, Andrea Schweer 
wrote:

> Hi Don,
>
> On 11/02/2016 01:54 AM, Donald Bynum wrote:
>
>> Thanks Andrea.  What I am really looking for is a way to send an email to
>> a logged on eperson when they download a bitstream.  In other words the
>> download event triggers the email.
>>
>
> You'd probably need to write code for a custom usage stats listener, like
> the one used to send information about bitstream downloads to Google
> Analytics. https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-api/
> src/main/java/org/dspace/google/GoogleRecorderEventListener.java which is
> activated (alongside the Solr usage stats listener) here:
> https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-xmlu
> i/src/main/webapp/WEB-INF/spring/applicationContext.xml#L55 (both links
> go to the 5.x code base).
>
> However, I'd actually caution against such an approach, especially if your
> repository is open to the public. Do your users really want to be spammed
> every time a random search engine bot / other automated script downloads
> their file? We sometimes have hundreds of downloads of the same file on the
> same day. A daily/weekly/monthly approach sounds like a much better user
> experience to me, unless you're in a very constrained environment where you
> can be sure that all downloads are genuine / you are sure you can filter
> out all the spammy ones.
>
> cheers,
> Andrea
>
> --
> Dr Andrea Schweer
> Lead Software Developer, ITS Information Systems
> The University of Waikato, Hamilton, New Zealand
> +64-7-837 9120
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Re: Send email on bitstream download

2016-11-01 Thread Andrea Schweer

Hi Don,

On 11/02/2016 01:54 AM, Donald Bynum wrote:
Thanks Andrea.  What I am really looking for is a way to send an email 
to a logged on eperson when they download a bitstream.  In other words 
the download event triggers the email.


You'd probably need to write code for a custom usage stats listener, 
like the one used to send information about bitstream downloads to 
Google Analytics. 
https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-api/src/main/java/org/dspace/google/GoogleRecorderEventListener.java 
which is activated (alongside the Solr usage stats listener) here: 
https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-xmlui/src/main/webapp/WEB-INF/spring/applicationContext.xml#L55 
(both links go to the 5.x code base).


However, I'd actually caution against such an approach, especially if 
your repository is open to the public. Do your users really want to be 
spammed every time a random search engine bot / other automated script 
downloads their file? We sometimes have hundreds of downloads of the 
same file on the same day. A daily/weekly/monthly approach sounds like a 
much better user experience to me, unless you're in a very constrained 
environment where you can be sure that all downloads are genuine / you 
are sure you can filter out all the spammy ones.


cheers,
Andrea

--
Dr Andrea Schweer
Lead Software Developer, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
+64-7-837 9120

--
You received this message because you are subscribed to the Google Groups "DSpace 
Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Re: Send email on bitstream download

2016-11-01 Thread Donald Bynum
Thanks Andrea.  What I am really looking for is a way to send an email to a 
logged on eperson when they download a bitstream.  In other words the 
download event triggers the email.

Regards,

Don.

On Tuesday, November 1, 2016 at 4:50:51 AM UTC-4, Bollini Andrea wrote:

> Hi,
>
> just to note that such functionalities are available in DSpace-CRIS
>
> https://github.com/4Science/DSpace
>
> Any registered user can subscribe update on any object in the system, 
> including the author profile, and receive daily, weekly or monthly emails 
> following his preference with usage statistics information (how many view 
> and download in the period, the increment/decrement against the previous 
> period).
>
> The script to configure in CRONTAB is
>
>
> https://github.com/4Science/DSpace/blob/dspace-cris-5.5.0/dspace-cris/api/src/main/java/org/dspace/app/cris/batch/ScriptCrisSubscribe.java
>
> Andrea
>
>
>
> Il 31/10/2016 17:01, Terry Brady ha scritto:
>
> Don, 
>
> Here is some information on the usage statistics component: 
> https://wiki.duraspace.org/display/DSDOC5x/SOLR+Statistics
>
> Here is the documentation on the configurable event system (for tracking 
> changes to items/bitstreams/etc): 
> https://wiki.duraspace.org/display/DSDOC5x/Configuration+Reference#ConfigurationReference-EventSystemConfiguration
>
> I do not believe that the functionality you describe exists in DSpace.  I 
> believe that you would need to develop your own process.
>
>- Query solr for usage events in the last day/week/hour 
>- Grab the object identifier from SOLR 
>- Look up the owner/creator of the object in the database 
>- Send e-mail 
>
> Terry
>
> On Sat, Oct 29, 2016 at 7:40 AM, Donald Bynum  > wrote:
>
>> My apologies - I am running DSpace 5.5 with the XMLUI interface using the 
>> Mirage theme. 
>>
>>
>> On Saturday, October 29, 2016 at 10:37:14 AM UTC-4, Donald Bynum wrote: 
>>>
>>> I would like to send an email to the logged in eperson when a bitstream 
>>> is downloaded.  If this is not possible, then I would cope with sending an 
>>> email to an eperson on item view.  My epersons usernames are their email 
>>> address.  Does anyone have a code excerpt that does this?  Currently an 
>>> email is sent to the logged in eperson after a successful submission.  If 
>>> someone could tell me which code page does that, perhaps I could use that 
>>> as a reference.
>>>
>>> Any help would be much appreciated.
>>>  
>>> Regards,
>>>
>>> Don.
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "DSpace Technical Support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to dspace-tech...@googlegroups.com .
>> To post to this group, send email to dspac...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/dspace-tech.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Terry Brady 
> Applications Programmer Analyst
> Georgetown University Library Information Technology
> http://georgetown-university-libraries.github.io/ 
> 
> 425-298-5498 (Seattle, WA)
> -- 
> You received this message because you are subscribed to the Google Groups 
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to dspace-tech...@googlegroups.com .
> To post to this group, send email to dspac...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>
>
> -- 
> Andrea Bollini
> Chief Technology and Innovation Officer
>
> 4Science,  www.4science.it
> office: Via Edoardo D'Onofrio 304, 00155 Roma, Italy
> mobile: +39 333 934 1808
> skype: a.bollini
> linkedin: andreabollini
> orcid: -0002-9029-1854
>
> an Itway Group Company
> Italy, France, Spain, Portugal, Greece, Turkey, Lebanon, Qatar, U.A.Emirates
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Re: Send email on bitstream download

2016-11-01 Thread Bollini Andrea
Hi,

just to note that such functionalities are available in DSpace-CRIS

https://github.com/4Science/DSpace

Any registered user can subscribe update on any object in the system, including 
the author profile, and receive daily, weekly or monthly emails following his 
preference with usage statistics information (how many view and download in the 
period, the increment/decrement against the previous period).

The script to configure in CRONTAB is

https://github.com/4Science/DSpace/blob/dspace-cris-5.5.0/dspace-cris/api/src/main/java/org/dspace/app/cris/batch/ScriptCrisSubscribe.java

Andrea


Il 31/10/2016 17:01, Terry Brady ha scritto:
Don,

Here is some information on the usage statistics component: 
https://wiki.duraspace.org/display/DSDOC5x/SOLR+Statistics

Here is the documentation on the configurable event system (for tracking 
changes to items/bitstreams/etc): 
https://wiki.duraspace.org/display/DSDOC5x/Configuration+Reference#ConfigurationReference-EventSystemConfiguration

I do not believe that the functionality you describe exists in DSpace.  I 
believe that you would need to develop your own process.

  *   Query solr for usage events in the last day/week/hour
  *   Grab the object identifier from SOLR
  *   Look up the owner/creator of the object in the database
  *   Send e-mail

Terry

On Sat, Oct 29, 2016 at 7:40 AM, Donald Bynum 
mailto:byn...@gmail.com>> wrote:
My apologies - I am running DSpace 5.5 with the XMLUI interface using the 
Mirage theme.


On Saturday, October 29, 2016 at 10:37:14 AM UTC-4, Donald Bynum wrote:
I would like to send an email to the logged in eperson when a bitstream is 
downloaded.  If this is not possible, then I would cope with sending an email 
to an eperson on item view.  My epersons usernames are their email address.  
Does anyone have a code excerpt that does this?  Currently an email is sent to 
the logged in eperson after a successful submission.  If someone could tell me 
which code page does that, perhaps I could use that as a reference.

Any help would be much appreciated.

Regards,

Don.
--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to 
dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.



--
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
http://georgetown-university-libraries.github.io/
425-298-5498 (Seattle, WA)
--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to 
dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


--
Andrea Bollini
Chief Technology and Innovation Officer

4Science,  www.4science.it
office: Via Edoardo D'Onofrio 304, 00155 Roma, Italy
mobile: +39 333 934 1808
skype: a.bollini
linkedin: andreabollini
orcid: -0002-9029-1854

an Itway Group Company
Italy, France, Spain, Portugal, Greece, Turkey, Lebanon, Qatar, U.A.Emirates

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Re: Send email on bitstream download

2016-10-31 Thread Terry Brady
Don,

Here is some information on the usage statistics component:
https://wiki.duraspace.org/display/DSDOC5x/SOLR+Statistics

Here is the documentation on the configurable event system (for tracking
changes to items/bitstreams/etc):
https://wiki.duraspace.org/display/DSDOC5x/Configuration+Reference#ConfigurationReference-EventSystemConfiguration

I do not believe that the functionality you describe exists in DSpace.  I
believe that you would need to develop your own process.

   - Query solr for usage events in the last day/week/hour
   - Grab the object identifier from SOLR
   - Look up the owner/creator of the object in the database
   - Send e-mail

Terry

On Sat, Oct 29, 2016 at 7:40 AM, Donald Bynum  wrote:

> My apologies - I am running DSpace 5.5 with the XMLUI interface using the
> Mirage theme.
>
>
> On Saturday, October 29, 2016 at 10:37:14 AM UTC-4, Donald Bynum wrote:
>>
>> I would like to send an email to the logged in eperson when a bitstream
>> is downloaded.  If this is not possible, then I would cope with sending an
>> email to an eperson on item view.  My epersons usernames are their email
>> address.  Does anyone have a code excerpt that does this?  Currently an
>> email is sent to the logged in eperson after a successful submission.  If
>> someone could tell me which code page does that, perhaps I could use that
>> as a reference.
>>
>> Any help would be much appreciated.
>>
>> Regards,
>>
>> Don.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
http://georgetown-university-libraries.github.io/

425-298-5498 (Seattle, WA)

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


[dspace-tech] Re: Send email on bitstream download

2016-10-29 Thread Donald Bynum
My apologies - I am running DSpace 5.5 with the XMLUI interface using the 
Mirage theme.

On Saturday, October 29, 2016 at 10:37:14 AM UTC-4, Donald Bynum wrote:
>
> I would like to send an email to the logged in eperson when a bitstream is 
> downloaded.  If this is not possible, then I would cope with sending an 
> email to an eperson on item view.  My epersons usernames are their email 
> address.  Does anyone have a code excerpt that does this?  Currently an 
> email is sent to the logged in eperson after a successful submission.  If 
> someone could tell me which code page does that, perhaps I could use that 
> as a reference.
>
> Any help would be much appreciated.
>  
> Regards,
>
> Don.
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.