EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #09884


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Bazaar: PlumX and Altmetrics Issue


Hi Revathi,

The default configuration should display the PlumX and Altmetric plugins at the bottom of the abstract page.  When I look at:

https://academic.research.sma.ac.ae/id/eprint/5/

I can see they are now appear at the bottom.  You may want to change the settings.  I typically would add the following lines to your archive's cfg/cfg.d/zz_plugins.pl (create a new one if it does not exist):
$c->{plugins}->{"Screen::EPrint::Box::Altmetric"}->{appears}->{summary_bottom} = undef;
$c->{plugins}->{"Screen::EPrint::Box::Altmetric"}->{appears}->{summary_right} = 25;
$c->{plugins}->{"Screen::EPrint::Box::Plumx"}->{appears}->{summary_bottom} = undef;
$c->{plugins}->{"Screen::EPrint::Box::Plumx"}->{appears}->{summary_right} = 30;
This will move these boxes to appear on the right rather than bottom.  You will also probably want to set the phrase:

Plugin/Screen/EPrint/Box/Plumx:title

Alternatively, you can also set the option (in your archive's cfg/cfg.d/zz_plugins.pl):
$c->{plumx}{style} = "/style/plumx_hide_box.css";
This will cause the box around the PlumX box to be hidden, so it won't matter that the phrase is not set.

Any configurations changes like above will require running refresh_abstracts and reloading the webserver.  Therefore, my previous suggestion of using generate_abstracts to test with a single eprint until you are happy with the layout and fix any snags like missing phrases.  If you want to remove the boxes around the Altmetric and Dimensions plugins you will probably manually need to modify your CSS in a similar way to:

https://bazaar.eprints.org/1150/1/epm/plumx/cfg/static/style/plumx_hide_box.css

Regards

David Newman


On 24/11/2024 11:53 am, Techsupport Mosys wrote:
CAUTION: This e-mail originated outside the University of Southampton.
Dear David,
Thank you so much!.
Issue no 1: Not resolved. 
We are very happy to see these plugins are displaying in Summary Page. 

<EPRINTS_PATH>/bin/generate_abstracts <ARCHIVE_ID> <EPRINT_ID>
If you still don't see the boxes for these plugins, then please could you confirm if you have changed any of the default configuration for these plugins.

Yes, Not able to see those plugins in the summary page. We have not changed any of these configurations. Though we've reinstalled many times. Still no progress.  

Issue no 2: On your other issue, the ORCID Support Bazaar plugin requires the Reports plugin to also be installed or you will get error messages like you have reported when running generate_views.
Issue resolved


On Sun, 24 Nov 2024 at 16:13, David R Newman <drn@ecs.soton.ac.uk> wrote:
Hi Revathi,

The Altmetric and PlumX plugins by default require one of three things to be true about the eprint record:

1. A bespoke doi field has been added to the eprint data object's fields and this has a value set.
2. The isbn field has a value set.
3. The id_number field has a value set and matches a very simple regular _expression_ intended to confirm this field stores a DOI (basically it must either start with or contain a "10.".  In the latter the "10." must be proceeded by a word-boundary character.  So it would match 10.1234/5678,  doi:10.1234/5678 and https://doi.org/10.1234/5678).

if one of the above is true, you should add least get an empty box displayed for Altmetric and PlumX.  This would be where a request has been sent to Altmetric and/or PlumX but it could not be understood, so nothing is returned.  If it understood but no data could be found about the DOI or ISBN, it should return some text to that affect, so the box would not be completely empty.  Hopefully, as your Dimensions plugin for your example eprint record is responding with some data, (even if reporting 0), then so should Altmetric and PlumX.

You said you "regenerated views".  Did you actually mean you "regenerated abstracts"?  If not, the one way to make sure that abstract pages are regenerated is to first make sure the latest repository configuration is loaded by reloading the webserver and then running epadmin refresh_abstracts:

apachectl graceful
<EPRINTS_PATH>/bin/epadmin refresh_abstracts <ARCHIVE_ID>


However, a better plan would be first to make sure you are happy with where these plugins' boxes are displaying on the abstract page of a typical eprint.  By running the generate_abstracts command for your example eprint record  (you don't need to reload the webserver each time as the generate_abstracts is running at the command line and not clearing a cache like refresh_abstracts, which means the latter ends up with the webserver generating a new abstract page cache on its next request).

<EPRINTS_PATH>/bin/generate_abstracts <ARCHIVE_ID> <EPRINT_ID>

If you still don't see the boxes for these plugins, then please could you confirm if you have changed any of the default configuration for these plugins.

On your other issue, the ORCID Support Bazaar plugin requires the Reports plugin to also be installed or you will get error messages like you have reported when running generate_views.

Regards

David Newman

On 24/11/2024 3:16 am, Techsupport Mosys wrote:
CAUTION: This e-mail originated outside the University of Southampton.
CAUTION: This e-mail originated outside the University of Southampton.
Dear Team,
We have installed the PlumX and Altmetrix through Bazaar and still its not reflecting in the summary page. We regenerated views using the portal as well as command mode. 

image.png
Also getting the below error while generating views.
Problem loading plugin EPrints::Plugin::Export::Report::CSV::CreatorsOrcid [/opt/eprints3/lib/plugins/EPrints/Plugin/Export/Report/CSV/CreatorsOrcid.pm]:
Can't locate EPrints/Plugin/Export/Report/CSV.pm in @INC (you may need to install the EPrints::Plugin::Export::Report::CSV module) (@INC entries checked: /opt/eprints3/perl_lib /opt/eprints3/ingredients/bazaar/plugins /opt/eprints3/flavours/pub_lib/plugins /opt/eprints3/site_lib/plugins /opt/eprints3/lib/plugins /opt/eprints3/bin/../perl_lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.38.2 /usr/local/share/perl/5.38.2 /usr/lib/x86_64-linux-gnu/perl5/5.38 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.38 /usr/share/perl/5.38 /usr/local/lib/site_perl) at /opt/eprints3/lib/plugins/EPrints/Plugin/Export/Report/CSV/CreatorsOrcid.pm line 3.
BEGIN failed--compilation aborted at /opt/eprints3/lib/plugins/EPrints/Plugin/Export/Report/CSV/CreatorsOrcid.pm line 3.
Compilation failed in require at (eval 420) line 1.
BEGIN failed--compilation aborted at (eval 420) line 1.


But still both plugins are not working. Early response would be appreciated

thanks
Revathi

*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/