EPrints Technical Mailing List Archive

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

Message: #08325


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

Re: [EP-tech] TrendTerms in eprints 3.4 Screen::EPrint::Box


Hi Phil,

1. You should not need to include the archive in the inc file unless the TrendTerms plugin added stuff under your archive's cfg/plugins/ directory.  (Files added to your archive's cfg/cfg.d/ should be read as normal without changes to your inc file). Normally if you install a plugin from the Bazaar it would put the Screen Box plugin under the EPRINTS_PATH/lib/plugins/ directory.  However, if the TrendTerms Screen Box plugin was somehow put under your archive's cfg/plugins/ directory then the best way to enable this is to change the following line so the value is 0 rather than 1:

$c->{plugins}->{"Screen::EPrint::Box::TrendTerms"}->{params}->{disable} = 0;

With plugins in your archive's cfg/plugins/ directory you need to make EPrints aware they exist so you need to make sure that the disable param is set but to a false value (i.e. 0).  If you do this reload Apache and run refresh_abstracts, hopefully this will fix this issue if the box is still missing from summary pages.  However, there is a chance that the box plugino nly displays if there is content to show.  As I said, I am not the developer of the plugin and have limited knowledge of it, so this would be a question for Martin Braendle.

2. Technically this warning is not a problem.  It just means that someone has specified the same package in two different files and then produced a new version of the render_collaboration_link subroutine.  Sometimes this is the neatest way to solve and issue, even though it produces a warning, when the original subroutine does not produce the output you need, as changing the core EPrints code may cause issues when you try to upgrade.  You can grep through your perl_lib, lib, flavours, ingredients, site_lib and ARCHIVE_NAME/cfg/ directories to look for "sub render_collaboration_link" to find the two places where this function is defined to figure out why it has been redefined.

Regards

David Newman

On 18/09/2020 06:48, Phil Stacey via Eprints-tech wrote:

David thanks for your note below,

The abstract pages have been updated since this plugin was deployed.

1.Could be _javascript_, but I think the reason why the Screen::EPrint::Box box doesn’t appear is path is configured for eprints 3.3.x and isn’t included

In /usr/share/eprints/flavours/pub_lib/inc

flavours/pub_lib

ingredients/bazaar

archives/public

 

as the cfg.d files path is /usr/share/eprints/archives/public/cfg/cfg.d

 

2.also when I run bin/epadmin refresh_abstracts I get the following response

Subroutine render_collaboration_link redefined at (eval 618) line 136.

The repository config will be reloaded, but you should still restart apache as

soon as possible.

 

Have run the commands listed below any help would be much appreciated..

 

From: Phil Stacey <phil@buildvoc.co.uk>
Sent: 17 September 2020 08:47
To: eprints-tech@ecs.soton.ac.uk
Subject: TrendTerms in eprints 3.4 Screen::EPrint::Box

 



Good morning would appreciate a bit of assistance currently trying to configure eprints 3.4 to show a Screen::EPrint::Box in the summary page.

Have updated eprint_render.pl and z_trendterms.pl but the box does not appear as shown in the extract below from github readme. https://github.com/eprintsug/TrendTerms

 

If you use a custom archives/{archive}/cfg/cfg.d/eprint_render.pl to render the summary page, you can turn off the box in archives/{archive}/cfg/cfg.d/z_trendterms.pl by setting

 

 

 

Working on using eprints for fire safety guidance, the document is broken up into chunks with Liam Green script providing uncontrolled keywords via azure AI text analytics, hoping to use the graph as a navigation of keywords 

 

Best regards,

Phil Stacey

approved document b - volume 1: dwellings repository 

 

 

Best Regards,

Phil Stacey 

building regulations guidance for fire safety


Virus-free. www.avast.com

*** 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/