EPrints Technical Mailing List Archive

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?


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


Inactive hide details for Meghan Jones ---22/09/2015 12:16:11---Hello everyone, Long-time lurker, first time caller here. ;)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/