[EP-tech] Altmetrics

John Salter J.Salter at leeds.ac.uk
Wed May 27 10:30:08 BST 2020


Hi Mary,
It looks like your server is struggling to server pages over HTTPS:
This works:
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fubir.bolton.ac.uk%2F1009%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C342a0c8fad644fb939c908d802208e65%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=%2FdSTURQ8hlzoA6ytgqevbSKUjI0o7XIyCg5mkANOAn4%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fubir.bolton.ac.uk%2F1009%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C342a0c8fad644fb939c908d802208e65%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=8ggC58KHPpJjF5YHHoTzLnmGRFa9y%2BvsVM5Fjkw0VV8%3D&amp;reserved=0>
this fails (for me at least):
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fubir.bolton.ac.uk%2F1009%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C342a0c8fad644fb939c908d802208e65%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=8ggC58KHPpJjF5YHHoTzLnmGRFa9y%2BvsVM5Fjkw0VV8%3D&amp;reserved=0

There is a line in the code that checks whether the page is 'secure'.
On the server, this is [EPRINTS_ROOT]/lib/plugins/EPrints/Plugin/Screen/EPrint/Box/Altmetric.pm
- or
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Faltmetric%2Fblob%2Fmaster%2Flib%2Fplugins%2FEPrints%2FPlugin%2FScreen%2FEPrint%2FBox%2FAltmetric.pm%23L11&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C342a0c8fad644fb939c908d802208e65%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=fEOkykFiDgN%2Bd7vCQ1ArISWfLBkE7NkyOm7QHy%2BrITU%3D&amp;reserved=0

If you comment-out this line (put a '#' at the start of the line), and try to regenerate an abstract (for an item with a DOI), it might work.


I'm not sure what the intention of the 'get_secure' check is - it was there before I made the last edits to the Altmetric plugin - maybe we should remove it?

Cheers,
John
________________________________
From: eprints-tech-bounces at ecs.soton.ac.uk <eprints-tech-bounces at ecs.soton.ac.uk> on behalf of David R Newman via Eprints-tech <eprints-tech at ecs.soton.ac.uk>
Sent: 26 May 2020 14:47
To: eprints-tech at ecs.soton.ac.uk <eprints-tech at ecs.soton.ac.uk>; Barden-McEachern, Mary <M.E.Barden at bolton.ac.uk>
Subject: Re: [EP-tech] Altmetrics


Hi Mary,

Looking at your repository (assuming it is ubir.bolton.ac.uk) I can see that you have the lastest (v1.2.0) version of the Altmetric plugin installed.  This uses a different URL (to lookup DOIs or ISSNs to get Altmetric data) to older versions.  Although looking round the JavaScript you have installed on your repository this URL being used looks to be using the local /cgi/altmetric lookup script in the correct way/

The first thing I would try is going to a publication that has the id_number field set (Identification Number is the default label for this field but you may have changed this) and the value set is a DOI, (values like 10.1006/jmbi.1998.2354, doi:10.1006/jmbi.1998.2354, DOI:10.1006/jmbi.1998.2354, etc. should work) and regenerate the summary page.  The easiest way to do this is to make a small change to the record.  If you then look at the summary page (e.g. https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fubir.bolton.ac.uk%2F1009%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C342a0c8fad644fb939c908d802208e65%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=%2FdSTURQ8hlzoA6ytgqevbSKUjI0o7XIyCg5mkANOAn4%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fubir.bolton.ac.uk%2F1009%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C342a0c8fad644fb939c908d802208e65%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=%2FdSTURQ8hlzoA6ytgqevbSKUjI0o7XIyCg5mkANOAn4%3D&amp;reserved=0> ) to see if an Altmetric plugin box is displayed.  If not, if you could point me at the page you tested and also provide the value you set in the id_number field, I can take a look to see what is wrong.  It is possible the Altmetric box plugin got disabled somehow but this is difficult to evaluate without access to the configuration for your repository.

I can see that you also have the CORE recommender plugin installed.  This can cause problems mainly with the CSS but in some cases with the JavaScript as well.  Did you add this fairly recently and/or have you been able to see publication summary pages that include both the CORE and Altmetric plugin boxes?

Regards

David Newman

On 26/05/2020 13:57, Barden-McEachern, Mary via Eprints-tech wrote:

Hi all



I have the Altmetrics plugin installed from the Eprints Bazaar, but it’s no longer displaying on any of the repository pages. I have tried uninstalling and reinstalling, but this didn’t help.



Can anyone suggest a solution?



Thanks

Mary



Mary Barden

MA, PGCE, SFHEA

Electronic Resources Librarian

The Library

The University of Bolton

BL3 5AB

m.e.barden at bolton.ac.uk<mailto:m.e.barden at bolton.ac.uk>

01204 903547



[TEN              Logo (web)][LEAP              dLA eMail Signature]



[University of Bolton]<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.bolton.ac.uk%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C342a0c8fad644fb939c908d802208e65%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=OjizDZ2rV9i7AN7AQoEAB6yu1jmlIG2rQMn0vME5UqQ%3D&amp;reserved=0>

This email (and any attachments) is confidential and may contain personal views which are not the views of the University of Bolton unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose information in any way nor act in reliance on it and notify the sender immediately. Please note the University of Bolton monitors emails sent or received. Further communication will signify your consent to this.



*** 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=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C342a0c8fad644fb939c908d802208e65%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=3NSi17zQhQZgGVJrI%2F8rngCJaxdeG1U3pCCSBMX3jog%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C342a0c8fad644fb939c908d802208e65%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=3NSi17zQhQZgGVJrI%2F8rngCJaxdeG1U3pCCSBMX3jog%3D&amp;reserved=0>
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C342a0c8fad644fb939c908d802208e65%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Sv6TptXh0J6oStM9m8wYXQZsHeBdaOp8qKUVww6vJss%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C342a0c8fad644fb939c908d802208e65%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Sv6TptXh0J6oStM9m8wYXQZsHeBdaOp8qKUVww6vJss%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=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C342a0c8fad644fb939c908d802208e65%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=CTERX6iRk2s3a8U4xgf4MBEOhFOlq6d%2Bt6VocNq%2BqUM%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=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C342a0c8fad644fb939c908d802208e65%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=eKCxqXDJl5WO2KceoTtsYODigH2I%2B1eUhLepQVbRIgM%3D&amp;reserved=0>     Virus-free. https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C342a0c8fad644fb939c908d802208e65%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=x%2B06dRmNDLp1pwIafSNcvDlsYHz1wC2MAVeeLpTsh9M%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=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C342a0c8fad644fb939c908d802208e65%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=eKCxqXDJl5WO2KceoTtsYODigH2I%2B1eUhLepQVbRIgM%3D&amp;reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200527/1e9cfd71/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 13390 bytes
Desc: image001.png
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200527/1e9cfd71/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 18108 bytes
Desc: image002.png
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200527/1e9cfd71/attachment-0003.png 


More information about the Eprints-tech mailing list