[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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 at buildvoc.co.uk>
> *Sent:* 17 September 2020 08:47
> *To:* eprints-tech at 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://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2FTrendTerms&amp;data=01%7C01%7C%7C8825a487180647366ae808d85bc19622%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=n01fl4xRbgyuX0QRfaGKF9tHILsxwvKRZ75POtV8DTQ%3D&amp;reserved=0 
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2FTrendTerms&amp;data=01%7C01%7C%7C8825a487180647366ae808d85bc19622%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=n01fl4xRbgyuX0QRfaGKF9tHILsxwvKRZ75POtV8DTQ%3D&amp;reserved=0>
>
> 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 
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Feprints.buildvoc.co.uk%2Fcgi%2Fsearch%2Farchive%2Fadvanced%3Fscreen%3DSearch%26dataset%3Darchive%26documents_merge%3DALL%26documents%3D%26title_merge%3DALL%26title%3D%26creators_name_merge%3DALL%26creators_name%3D%26pagerange%3D%26edition_merge%3DALL%26edition%3D%26abstract_merge%3DALL%26abstract%3D%26date%3D%26keywords_merge%3DALL%26keywords%3D%26subjects%3Dapproved_document_b1_section_17%26subjects_merge%3DANY%26type%3Dbook_section%26type%3Dimage%26department_merge%3DALL%26department%3D%26editors_name_merge%3DALL%26editors_name%3D%26refereed%3DEITHER%26publication_merge%3DALL%26publication%3D%26satisfyall%3DALL%26order%3Dpagerange%252Fnumber%252Ftitle%252Fcreators_name%252F-date%26_action_search%3DSearch&amp;data=01%7C01%7C%7C8825a487180647366ae808d85bc19622%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=3iozvSyPuqgU7HbyDrA5CRludBY1XKI3fyKg7rLyHtw%3D&amp;reserved=0>
>
> Best Regards,
>
> Phil Stacey
>
> building regulations guidance for fire safety 
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Feprints.buildvoc.co.uk%2F&amp;data=01%7C01%7C%7C8825a487180647366ae808d85bc19622%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=QJ378oJPERimoCTrVl9NYJjQca5KylmXprZAdDbty7o%3D&amp;reserved=0>
>
>
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=01%7C01%7C%7C8825a487180647366ae808d85bc19622%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=%2B3ZaNYvsFetbWbcxX%2FMPDfT%2BLMooubkqn0G0x9AwlDc%3D&amp;reserved=0> 
> 	Virus-free. https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avast.com%2F&amp;data=01%7C01%7C%7C8825a487180647366ae808d85bc19622%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=D6m1%2FEYr25YVB4tJ7mrZ%2B4wcT%2FnORjofOJud2zzWK%2B8%3D&amp;reserved=0 
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=01%7C01%7C%7C8825a487180647366ae808d85bc19622%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=%2B3ZaNYvsFetbWbcxX%2FMPDfT%2BLMooubkqn0G0x9AwlDc%3D&amp;reserved=0> 
>
>
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7C%7C8825a487180647366ae808d85bc19622%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=ePv%2B95qOaAEAri2HFw2R0VM%2BJ0urNPkFFBDjKWHOkgI%3D&amp;reserved=0
> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7C%7C8825a487180647366ae808d85bc19622%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=XBkqfhgKj5ykqsBIi8ZE8bIyxyqD6hCB%2Fug7XrTjGRM%3D&amp;reserved=0


-- 
This email has been checked for viruses by AVG.
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avg.com%2F&amp;data=01%7C01%7C%7C8825a487180647366ae808d85bc19622%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=JRP9lUdhb4SX8GXHElMQ33ROVtM7aqvsd6l6cxN9VRw%3D&amp;reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200918/0ae0ae42/attachment-0001.html