EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #04807
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Antwort: Intermittent altmetric box?
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Antwort: Intermittent altmetric box?
- From: martin.braendle@id.uzh.ch
- Date: Tue, 29 Sep 2015 14:40:47 +0200
Hi Meghan,
yes, a DOI is required.
We had problems with the box, too, and just implemented Altmetrics in our eprint_render.pl without using it. Example record: http://www.zora.uzh.ch/95688/
In cfg.d/z_altmetric, we disable the box:
$c->{plugins}->{"Screen::EPrint::Box::Altmetric"}->{params}->{disable} = 1;
In eprint_render.pl, we use the following code (it adds a column to the Citations/Altmetrics/Downloads table):
if ( $eprint->is_set( "doi" ) )
{
$td = $session->make_element( "td",
valign=>"top" );
my $altmetrics_title = $session->make_element( "h2" );
$altmetrics_title->appendChild(
$session->html_phrase( "page:altmetrics_title" )
);
$td->appendChild( $altmetrics_title );
my $altmetrics_div = $session->make_element( "div",
id => "altmetric_summary_page",
"data-doi" => $eprint->value( "doi" )
);
$altmetrics_div->appendChild( $session->make_javascript( <<EOJ ) );
new EP_Altmetric_Badge( 'altmetric_summary_page' );
EOJ
$td->appendChild( $altmetrics_div );
$tr->appendChild( $td );
}
We store the DOI in a field called doi, your implementation may be different.
Best regards,
Martin
--
Dr. Martin Brändle
Zentrale Informatik
Universität Zürich
Stampfenbachstr. 73
CH-8006 Zürich
Meghan Jones ---22/09/2015 12:16:11---Hello everyone, Long-time lurker, first time caller here. ;)
Von: Meghan Jones <M.Jones3@brighton.ac.uk>
An: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Datum: 22/09/2015 12:16
Betreff: [EP-tech] Intermittent altmetric box?
Gesendet von: eprints-tech-bounces@ecs.soton.ac.uk
Hello everyone,
Long-time lurker, first time caller here. ;)
We’re adding the altmetrics plugin to our repository but I’m finding a few odd things that I would appreciate if anyone could shed some light on for me before we move it to our live service.
The altmetrics box doesn’t always seem to appear on item records that I think it ought to. I know it needs a DOI to be on the page for it to appear (assumption here – would appreciate confirmation) and run a look-up and where it can’t find any discussion/linkage etc. for a DOI, it normally displays the ‘No Altmetrics are currently available for this publication’ message but for example, this record: http://eprintsdev.brighton.ac.uk/11748/ does not even have the altmetrics box (it normally appears underneath the IRStats graph – we do plan to relocate it but that’s a whole new kettle of horror) but has a DOI and if I check it with the bookmarklet, I can see it has almetrics attached. (screenshot below)
Could anyone shed any light on this for me? Is it just not parsing our eprint records correctly? Are we putting something in the wrong place? Advanced warning, although eprints falls under my remit, I am still very new to it as a back-end service! Also, we do not do direct deposit, our records come in via Converis so I’m really hoping this doesn’t involve the mapping between the two.
Many thanks,
Meghan
Meghan Jones, Assistant Librarian: Systems
Information Services
Cockcroft Building
University of Brighton
Lewes Road
Brighton BN2 4GJ
T: 01273 642766
E: m.jones3@brighton.ac.uk
___________________________________________________________
This email has been scanned by MessageLabs' Email Security
System on behalf of the University of Brighton.
For more information see http://www.brighton.ac.uk/is/spam/
___________________________________________________________*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/
- References:
- [EP-tech] Intermittent altmetric box?
- From: Meghan Jones <M.Jones3@brighton.ac.uk>
- [EP-tech] Intermittent altmetric box?
- Prev by Date: [EP-tech] Antwort: search for 2-character-string
- Next by Date: [EP-tech] Possible bug in title_duplicates script?
- Previous by thread: [EP-tech] Re: Best way to import local (or remote) files through EPrints' XML file
- Next by thread: [EP-tech] Possible bug in title_duplicates script?
- Index(es):