[EP-tech] Add User Data in IRStats2

MOHD.IZWAN SALIM mohdizwan8733 at uitm.edu.my
Thu Jan 20 10:21:43 GMT 2022


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<mailto: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%7C872ec7295fd94216c43e08d9dbfeaf89%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782710523662574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=EYK4SliHvJrl0swohRzLqiokyvGboRMAd5Lp0RZT%2Fvs%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%7C872ec7295fd94216c43e08d9dbfeaf89%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782710523662574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=0yXHNXaoie%2Bw7AZEWa1jjfYxvnGLvt7za%2BWJjlb%2Fdoc%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%7C872ec7295fd94216c43e08d9dbfeaf89%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782710523662574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=Vq1L69QQv4xW42wI%2FrHTyQhaR5ud4l%2Bo3lo3bn9DijI%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%7C872ec7295fd94216c43e08d9dbfeaf89%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782710523662574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=XQDPN7DLr%2B1ON3Ne%2FTMoiRpVP5UVexPjVhAFFw4%2FqwM%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%7C872ec7295fd94216c43e08d9dbfeaf89%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782710523662574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=XQDPN7DLr%2B1ON3Ne%2FTMoiRpVP5UVexPjVhAFFw4%2FqwM%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%7C872ec7295fd94216c43e08d9dbfeaf89%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782710523662574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=w1LM2h1ThI1CKkGKrVczPBD4bwyBfpZm40XLnd9G09o%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%7C872ec7295fd94216c43e08d9dbfeaf89%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782710523662574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=w1LM2h1ThI1CKkGKrVczPBD4bwyBfpZm40XLnd9G09o%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%7C872ec7295fd94216c43e08d9dbfeaf89%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782710523662574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=ggJw%2FUrNAb9uU525%2BK7%2Fzx0Ykw63v1J6dT1qbilxANw%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%7C872ec7295fd94216c43e08d9dbfeaf89%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782710523662574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=ggJw%2FUrNAb9uU525%2BK7%2Fzx0Ykw63v1J6dT1qbilxANw%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%7C872ec7295fd94216c43e08d9dbfeaf89%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782710523662574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=aWP%2BFBawlESrArRie7csuZmJIAtMIfbLbhUE8h%2F27xA%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%7C872ec7295fd94216c43e08d9dbfeaf89%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782710523662574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=tsQl2mWwuU3l%2FQpukihcLn9EgdF0%2BXhFjxGoX4VaqYc%3D&amp;reserved=0

[https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fipmcdn.avast.com%2Fimages%2Ficons%2Ficon-envelope-tick-green-avg-v1.png&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C872ec7295fd94216c43e08d9dbfeaf89%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782710523662574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=PI4lAtcSyub2iMRpIMyWBqbylT4duderWkeMyWo6RSY%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%7C872ec7295fd94216c43e08d9dbfeaf89%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782710523662574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=BWOYn5d2jQApmdEdLwSgPsAiBpvh4PfbpeHZtoX2IAc%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%7C872ec7295fd94216c43e08d9dbfeaf89%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782710523662574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=hdw8P%2FiTstjQMp1I%2F3FJ5TQ5zJDGUUXLktN6Ge7VusI%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%7C872ec7295fd94216c43e08d9dbfeaf89%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782710523662574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=BWOYn5d2jQApmdEdLwSgPsAiBpvh4PfbpeHZtoX2IAc%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%7C872ec7295fd94216c43e08d9dbfeaf89%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782710523662574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=ggJw%2FUrNAb9uU525%2BK7%2Fzx0Ykw63v1J6dT1qbilxANw%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%7C872ec7295fd94216c43e08d9dbfeaf89%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637782710523662574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=ggJw%2FUrNAb9uU525%2BK7%2Fzx0Ykw63v1J6dT1qbilxANw%3D&amp;reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20220120/18dc9f91/attachment-0001.html 


More information about the Eprints-tech mailing list