[EP-tech] Re: Altmetric plug-in - hide heading

Alan.Stiles alan.stiles at open.ac.uk
Wed Aug 20 12:22:36 BST 2014


Hi Nick,
Although we’re not actually using the plugin, we have included (by hand) the javascript and tags to put the altmetrics data on our abstracts.
We have a condition in the ‘…/cfg/citations/eprint/summary_page.xml’ file around where the altmetric plugin appears which hides the entire section if the item has not got a DOI.
Essentially as follows (our DOIs are in a field called ‘doi’ in the ‘eprint’ table)
<epc:if test="doi">
  <h2>Altmetrics</h2><br />
  <epc:print expr="$altmetric_ref" />
</epc:if>
Any use?

Alan

From: Sheppard, Nick [mailto:N.E.Sheppard at leedsmet.ac.uk]
Sent: 20 August 2014 11:33
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] Altmetric plug-in - hide heading

Dear list

We have installed the altmetric plug-in from the bazaar and set so that neither donut or heading is shown if id_number is null; also added the "data-hide-no-mentions='true'" qualification to the altmetric tag so that we don’t get an empty donut…though in this case we still get the Altmetrics heading. Please can anyone advise on how we can hide it?

Thanks

Nick











From 22 September 2014 Leeds Metropolitan University will become Leeds Beckett University.
Find out more at http://www.leedsbeckett.ac.uk
To view the terms under which this email is distributed, please go to:-
http://www.leedsmet.ac.uk/email-disclaimer.htm

-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20140820/163a2ac5/attachment.html 


More information about the Eprints-tech mailing list