[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Altmetric badge plugin



CAUTION: This e-mail originated outside the University of Southampton.
Thanks Yuri,
I've updated the screenshot and some details about installation.

You are right - the cgi script can be called from anywhere.
I'm not sure what we could do about this, if we thought we did need to do something.

Normally some form of cookie / session variable would be used to lock-down this sort of thing, but as EPrints only uses sessions for authenticated users, that feels like a lot of work for this.

What are other people's thoughts on this?

Cheers,
John
PS I haven't had a response from Altmetric about the user-agent fix yet.

________________________________
From: eprints-tech-bounces at ecs.soton.ac.uk <eprints-tech-bounces at ecs.soton.ac.uk> on behalf of Yuri via Eprints-tech <eprints-tech at ecs.soton.ac.uk>
Sent: 10 August 2022 13:40
To: eprints-tech at ecs.soton.ac.uk <eprints-tech at ecs.soton.ac.uk>
Subject: Re: [EP-tech] Altmetric badge plugin

CAUTION: This e-mail originated outside the University of Southampton.

You can update the screenshot in the github repo (still mention Google+). Also mention that the plugin works OOTB without any config can help.


Note: am I wrong or the /cgi/altimetrics cgi can be called from everywhere? So others could use your installed cgi as proxy to get the data from altimetrics.





Il 10/08/22 14:14, John Salter via Eprints-tech ha scritto:
CAUTION: This e-mail originated outside the University of Southampton.
Hi Jens,
I was a bit worried by your first message... glad the real fix is a fix! ?

In the new release there will also be a few other small improvements, such as better internationalisation for this
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Faltmetric%2Fblob%2Fmaster%2Flib%2Fstatic%2Fjavascript%2Fauto%2F99_altmetric.js%23L90&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862276874%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=35UubvUZ3a2QhfiHbbP5yHb2b8RyprvqYSrzog2eVlg%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Faltmetric%2Fblob%2Fmaster%2Flib%2Fstatic%2Fjavascript%2Fauto%2F99_altmetric.js%23L90&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862276874%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=35UubvUZ3a2QhfiHbbP5yHb2b8RyprvqYSrzog2eVlg%3D&amp;reserved=0>

If anyone has any comments about the plugin, now is the time to tell me (or log them here: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Faltmetric%2Fissues&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862276874%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=uVjFb53Djtqetji2jgudP1uQslABp7CfYp%2Bk1f%2BIvuk%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Faltmetric%2Fissues&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862276874%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=uVjFb53Djtqetji2jgudP1uQslABp7CfYp%2Bk1f%2BIvuk%3D&amp;reserved=0>).

Cheers,
John

________________________________
From: Jens Witzel <jens.witzel at uzh.ch><mailto:jens.witzel at uzh.ch>
Sent: 10 August 2022 13:08
To: eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk> <eprints-tech at ecs.soton.ac.uk><mailto:eprints-tech at ecs.soton.ac.uk>; John Salter <J.Salter at leeds.ac.uk><mailto:J.Salter at leeds.ac.uk>
Subject: AW: Altmetric badge plugin


https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Faltmetric%2Fcommit%2Fa687fcce74a06312e02af25f275492079e5dc6ed&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862276874%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Fv4jD1ZCB3JL%2BdyEHcDWlzPFfpbuGPkyN9WuNBRWm%2Bc%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Faltmetric%2Fcommit%2Fa687fcce74a06312e02af25f275492079e5dc6ed&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862276874%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Fv4jD1ZCB3JL%2BdyEHcDWlzPFfpbuGPkyN9WuNBRWm%2Bc%3D&amp;reserved=0> worked for us. ?



Cheers
Jens



--
Jens Witzel
Zentrale Informatik
Universit?t Z?rich
Stampfenbachstrasse 73
CH-8006 Z?rich

mail:  jens.witzel at uzh.ch<mailto:jens.witzel at uzh.ch>
phone: +41 44 63 56777
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.zi.uzh.ch%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862276874%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EZmdIcEpWf6PzBjC5%2FQUDCLZmqta03jBHZickDpKWzc%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.zi.uzh.ch%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862276874%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EZmdIcEpWf6PzBjC5%2FQUDCLZmqta03jBHZickDpKWzc%3D&amp;reserved=0>



Von: Jens Witzel <jens.witzel at uzh.ch><mailto:jens.witzel at uzh.ch>
Gesendet: Mittwoch, 10. August 2022 14:05
An: eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>; John Salter <J.Salter at leeds.ac.uk><mailto:J.Salter at leeds.ac.uk>; eprints-uk-user-group at googlegroups.com<mailto:eprints-uk-user-group at googlegroups.com>
Betreff: AW: Altmetric badge plugin



Thanks John



Nope, we already changed the API URL some months ago from http to https - but still receive this error :-/



Cheers
Jens



--
Jens Witzel
Zentrale Informatik
Universit?t Z?rich
Stampfenbachstrasse 73
CH-8006 Z?rich

mail:  jens.witzel at uzh.ch<mailto:jens.witzel at uzh.ch>
phone: +41 44 63 56777
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.zi.uzh.ch%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862276874%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EZmdIcEpWf6PzBjC5%2FQUDCLZmqta03jBHZickDpKWzc%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.zi.uzh.ch%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862276874%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EZmdIcEpWf6PzBjC5%2FQUDCLZmqta03jBHZickDpKWzc%3D&amp;reserved=0>



Von: eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk> <eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk>> Im Auftrag von John Salter via Eprints-tech
Gesendet: Mittwoch, 10. August 2022 13:13
An: eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>; eprints-uk-user-group at googlegroups.com<mailto:eprints-uk-user-group at googlegroups.com>
Betreff: [EP-tech] Altmetric badge plugin



CAUTION: This e-mail originated outside the University of Southampton.

Hi All,

Some uses of the Altmetric badge plugin (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbazaar.eprints.org%2Fid%2Fepm%2Faltmetric&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862276874%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=2cONDXjtmB%2BlN%2BITilKGu5u5Fzu%2B5IJ3Ygy6A3R8NhY%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbazaar.eprints.org%2Fid%2Fepm%2Faltmetric&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862276874%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=2cONDXjtmB%2BlN%2BITilKGu5u5Fzu%2B5IJ3Ygy6A3R8NhY%3D&amp;reserved=0>) have reported that is has stopped working.

This appears to be a change at the Altmetric end of things (or possibly a threshold being reached), which is now blocking the request from the EPrints server to their API.



We have an initial fix for this:

https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Faltmetric%2Fcommit%2Fa687fcce74a06312e02af25f275492079e5dc6ed&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862276874%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Fv4jD1ZCB3JL%2BdyEHcDWlzPFfpbuGPkyN9WuNBRWm%2Bc%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Faltmetric%2Fcommit%2Fa687fcce74a06312e02af25f275492079e5dc6ed&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862433079%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=JEljzq2HK5VE2c1ddeyxEG1TFVVZyT5u1nwXxbVpyMo%3D&amp;reserved=0>

but are waiting for feedback from Altmetric before releasing a new version of the plugin.



I'll post here again when the new version has been released into the Bazaar.

Many thanks to David Newman for flagging this, diagnosing it, and suggesting a fix.



Cheers,

John

John Salter

https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Forcid.org%2F0000-0002-8611-8266&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862433079%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=O%2BXxIdhzWFIL%2B2OzcjJv0jD3Pn2DFgtL8fQJykuRIN0%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Forcid.org%2F0000-0002-8611-8266&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862433079%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=O%2BXxIdhzWFIL%2B2OzcjJv0jD3Pn2DFgtL8fQJykuRIN0%3D&amp;reserved=0>



White Rose Libraries Technical Officer

IT - Application Support (Research)

10.23B, IT Services Building

University of Leeds

Leeds

LS2 9JT



*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.ecs.soton.ac.uk%2Fmailman%2Flistinfo%2Feprints-tech&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862433079%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=RwAkr2NA0GdUP7Ks%2Fq37v2JuExX9HQmiPjZkE8WAsxo%3D&amp;reserved=0>
*** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862433079%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=FMJ0bNZEk3LQl2c8HtPVUeYL4HROEYtUmFDHT94TeGc%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862433079%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=FMJ0bNZEk3LQl2c8HtPVUeYL4HROEYtUmFDHT94TeGc%3D&amp;reserved=0>
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862433079%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=z2i525WzlBO2F3hLEYowut4Gn60vevwBmkWVJYtHOsA%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb198ede6eb044071faf108da7b74571f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637958036862433079%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=z2i525WzlBO2F3hLEYowut4Gn60vevwBmkWVJYtHOsA%3D&amp;reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20220811/af5ef7c1/attachment-0001.html