[EP-tech] Add User Data in IRStats2

David R Newman drn at ecs.soton.ac.uk
Thu Jan 20 10:32:23 GMT 2022


Hi Izwan,

Having had a chance to look into this further, there would first need to 
be a change to the core codebase that includes the code stores the 
access records that are then you by IRStats2 to generate the download 
statistics.  I have logged a provisional issue against the EPrints 3.4 
GitHub codebase:

https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fissues%2F195&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=b7r8hpzLQKqBPzoIE3iq%2BNREW%2FAWvMXPJpoOk6ur9EA%3D&reserved=0

Regards

David Newman

On 20/01/2022 10:21, MOHD.IZWAN SALIM wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
> Dear David
>
> I have no problem install and generate the default available report. I 
> want to generate data download by user login since the repo is only 
> for login users. I guess no one ever create those report yet.
>
> I'll request that on irstats2 github.
>
> Regards
>
> On Thu, Jan 20, 2022, 5:38 PM David R Newman <drn at ecs.soton.ac.uk> wrote:
>
>     Hi Izwan,
>
>     I am not sure if you need instructions of how to install IRStats 2
>     or just advice with configuration.  If you do need the former, you
>     can install IRStats2 from the EPrints Bazaar.  This can be
>     accessed through your repository by going to the Admin menu and
>     going to the System Tools tab and clicking on the EPrints Bazaar
>     button.  Once there under the Available tab scroll down to find
>     the IRStats2 plugin or type IRStats2 into the search box at the
>     top and then click the Install button next to it.
>
>     Once installed, you are best working from your server's command
>     line.  First to install some dependencies you may need before the
>     IRStats2 can start being used:
>
>     https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FIRStats2%23Dependencies&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=%2FkWiav25%2BTfWFQpPMfMYuyo9GTAP%2FZpLzbTQ%2FgirIVs%3D&amp;reserved=0
>     <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FIRStats2%23Dependencies&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=%2FkWiav25%2BTfWFQpPMfMYuyo9GTAP%2FZpLzbTQ%2FgirIVs%3D&amp;reserved=0>
>
>     Then to start the initial processing and setting a cron job so
>     statistics are updated each night:
>
>     https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FIRStats2%23Processing&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=U86xEGyHZhR%2F90hZ5V4%2Bmo19jv%2Bp%2BSlXsRSoMSCfbHI%3D&amp;reserved=0
>     <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FIRStats2%23Processing&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=U86xEGyHZhR%2F90hZ5V4%2Bmo19jv%2Bp%2BSlXsRSoMSCfbHI%3D&amp;reserved=0>
>
>     What you want to do is something slightly bespoke and group
>     statistics based on the specific logged in users who is
>     downloading items.  The data that generates IRStats2 statistics
>     does not include that, as typically most repositories care about
>     downloads from users whether they are logged in or not and the
>     vast majority will not be.  Other information about the user who
>     has downloaded an item is recorded (IP address, user agent string,
>     referrer, etc.) but not anything that would reliably tell you who
>     the logged in user was.
>
>     If you need this requirement, it may be worth requesting this on
>     the IRStats2 GitHub issues page:
>
>     https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Firstats2%2Fissues&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=Ra08tMPcn0jT5DkbSnpgRhzRz5ED63%2BsSU15RfmxcA8%3D&amp;reserved=0
>     <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Firstats2%2Fissues&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=Ra08tMPcn0jT5DkbSnpgRhzRz5ED63%2BsSU15RfmxcA8%3D&amp;reserved=0>
>
>     Regards
>
>     David Newman
>
>     On 20/01/2022 08:58, MOHD.IZWAN SALIM via Eprints-tech wrote:
>>     *CAUTION:* This e-mail originated outside the University of
>>     Southampton.
>>     Dear all
>>
>>     I've just created an internal repo that required users to login
>>     1st as this site -
>>     https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FLogin-Only_Repository&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=whBopYyXXFmbrI4tioWCsyWlkSMwygJ2g%2BPyYgzPkT0%3D&amp;reserved=0
>>     <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FLogin-Only_Repository&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=whBopYyXXFmbrI4tioWCsyWlkSMwygJ2g%2BPyYgzPkT0%3D&amp;reserved=0>
>>
>>     I'm thinking to generate download data *by the user login.*
>>
>>     As I read here https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Feprints.github.io%2Firstats2%2Fconfig.html&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=azpblIugySUmJxkVrkgYg%2FxF3fXepG6Q6B%2FftC%2BnIrg%3D&amp;reserved=0
>>     <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Feprints.github.io%2Firstats2%2Fconfig.html&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=azpblIugySUmJxkVrkgYg%2FxF3fXepG6Q6B%2FftC%2BnIrg%3D&amp;reserved=0>,
>>     it required Stats::Processor module that associates with those data.
>>
>>     Can someone guide / share the required code.
>>
>>     *Izwan*
>>     Librarian
>>     UiTM Digital Library
>>
>>     *PENAFIAN: *E-mel ini dan apa-apa fail yang dihantar
>>     bersama-samanya ("Mesej") adalah dihasratkan hanya untuk kegunaan
>>     penerima yang dinyatakan di atas dan mungkin mengandungi maklumat
>>     yang tidak umum, bermilik, istimewa, sulit dan dikecualikan dari
>>     penzahiran di bawah undang-undang yang terpakai termasuklah Akta
>>     Rahsia Rasmi 1972. BACA SELANJUTNYA...
>>     <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.uitm.edu.my%2Findex.php%2Fcomponent%2Fcontent%2Farticle%3Fid%3D2%26Itemid%3D103&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=YoAu0Y%2FgZ%2BEkBZ9V01orLTg2lsb2av%2BvuZITu50mCxE%3D&amp;reserved=0>
>>
>>     ------------------------------------------------------------------------
>>     *DISCLAIMER :*/This e-mail and any files transmitted with it
>>     ("Message") is intended only for the use of the recipient(s)
>>     named above and may contain information that is non-public, 
>>     proprietary,  privileged, confidential  and  exempt  from 
>>     disclosure under applicable law including the Official Secrets
>>     Act 1972. /READ MORE...
>>     <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.uitm.edu.my%2Findex.php%2Fcomponent%2Fcontent%2Farticle%3Fid%3D2%26Itemid%3D103&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=YoAu0Y%2FgZ%2BEkBZ9V01orLTg2lsb2av%2BvuZITu50mCxE%3D&amp;reserved=0>
>>
>>     *** Options:http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>>     *** Archive:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=ekVPwLwhHuZXhNeSu2NEhm9V7owiuENUS%2BouFREFyjs%3D&amp;reserved=0  <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=ekVPwLwhHuZXhNeSu2NEhm9V7owiuENUS%2BouFREFyjs%3D&amp;reserved=0>
>>     *** EPrints community wiki:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=chmVNW6lfY1KnH8t%2FE3DH4NHYcjYFYtJ5wrWt8q67%2BM%3D&amp;reserved=0  <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=chmVNW6lfY1KnH8t%2FE3DH4NHYcjYFYtJ5wrWt8q67%2BM%3D&amp;reserved=0>
>
>     <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=vKcM5Nedx8z%2BwAk%2FaAdp%2FHcU4sp0dHEXrLq8h5OBCv0%3D&amp;reserved=0>
>     	Virus-free. https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=s0vh%2BuqXGxSv3kDwsmf4Wil8%2Fl0St1TcV3Xp6SG67%2Fk%3D&amp;reserved=0
>     <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=vKcM5Nedx8z%2BwAk%2FaAdp%2FHcU4sp0dHEXrLq8h5OBCv0%3D&amp;reserved=0>
>
>
>
> *PENAFIAN: *E-mel ini dan apa-apa fail yang dihantar bersama-samanya 
> ("Mesej") adalah dihasratkan hanya untuk kegunaan penerima yang 
> dinyatakan di atas dan mungkin mengandungi maklumat yang tidak umum, 
> bermilik, istimewa, sulit dan dikecualikan dari penzahiran di bawah 
> undang-undang yang terpakai termasuklah Akta Rahsia Rasmi 1972. BACA 
> SELANJUTNYA... 
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.uitm.edu.my%2Findex.php%2Fcomponent%2Fcontent%2Farticle%3Fid%3D2%26Itemid%3D103&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=YoAu0Y%2FgZ%2BEkBZ9V01orLTg2lsb2av%2BvuZITu50mCxE%3D&amp;reserved=0>
>
> ------------------------------------------------------------------------
> *DISCLAIMER :*/This e-mail and any files transmitted with it 
> ("Message") is intended only for the use of the recipient(s) named 
> above and may contain information that is non-public, proprietary,  
> privileged,  confidential  and  exempt  from disclosure under 
> applicable law including the Official Secrets Act 1972. /READ MORE... 
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.uitm.edu.my%2Findex.php%2Fcomponent%2Fcontent%2Farticle%3Fid%3D2%26Itemid%3D103&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23e966dbedf14c2e321108d9dc00250b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782715434854167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=YoAu0Y%2FgZ%2BEkBZ9V01orLTg2lsb2av%2BvuZITu50mCxE%3D&amp;reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20220120/0cc3c8cb/attachment-0001.html 


More information about the Eprints-tech mailing list