EPrints Technical Mailing List Archive

Message: #08760


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

Re: [EP-tech] Antwort: Re: Export formats - v3.3.16+


CAUTION: This e-mail originated outside the University of Southampton.

> the price you pay is development and maintenance cost

J so true!

 

My suggestion for a 'hack' that might do something useful would be to look at the 'qs' parameter for Export plugins.

Most don't set a qs, so it defaults to 1.

For export plugins you want to appear on the simple search, keep these as qs =1.

For export plugins you want to appear on advanced search too, set these to qs = 0.9.

Then override the 'render export bar' code to use the above scores as a filter, depending on which search you are rendering.

 

The scores are used to determine what order two plugins that can export the same format are used in, so this approach might not be appropriate, as it could change which plugin is used to reply to certain export requests.

See EPrints::Apache::Rewrite::content_negotiate_best_plugin for an example.

 

Cheers,

John

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Martin Braendle via Eprints-tech
Sent: 08 October 2021 10:10
To: eprints-tech@ecs.soton.ac.uk; Yuri <yurj@alfa.it>
Subject: [EP-tech] Antwort: Re: Export formats - v3.3.16+

 

CAUTION: This e-mail originated outside the University of Southampton.

The following permissions in the export plugin control behavior:

$self->{accept}  --> result list and / or details page , and which dataset
$self->{visible}  --> role, who can export
$self->{advertise} --> general visibility 

As pointed out before, there is no distinction between advanced and simple search in a standard installation of EPrints.

If you have your own implementation of search (as we did here at University of Zurich with Elasticsearch), you are able to fine-tune, e.g. which plugins are used and in which order they appear in the dropdown menu.

Search example:

https://www.zora.uzh.ch/search/?q=blood%20protein&size=n_10_n

Configuration example:

https://github.com/eprintsug/EPrintsElasticsearch/blob/main/archives/repositoryname/cfg/cfg.d/z_elasticsearch_export_plugins.pl

Code on Github for Elasticsearch in EPrints:

https://github.com/eprintsug/EPrintsElasticsearch

As with every non-standard installation, the price you pay is development and maintenance cost.

Kind regards,

Martin


Inactive hide details for "Yuri via Eprints-tech" ---08/10/2021 10:40:14---CAUTION: This e-mail originated outside the Universi"Yuri via Eprints-tech" ---08/10/2021 10:40:14---CAUTION: This e-mail originated outside the University of Southampton. For a project, I've added the

Von: "Yuri via Eprints-tech" <eprints-tech@ecs.soton.ac.uk>
An: eprints-tech@ecs.soton.ac.uk
Datum: 08/10/2021 10:40
Betreff: Re: [EP-tech] Export formats - v3.3.16+
Gesendet von: <eprints-tech-bounces@ecs.soton.ac.uk>





CAUTION: This e-mail originated outside the University of Southampton.

For a project, I've added the export dropdown to the single abstract page. As John pointed out, the list is regulated by the plugin permissions, so it is not possible to change the list based on search.

Maybe if you have a use case to explain us, there could be another solution.

Il 08/10/21 03:07, Matthew Brady via Eprints-tech ha scritto:

CAUTION: This e-mail originated outside the University of Southampton.
Hi All,
 
When conducting a search, the results get listed, and there is a dropdown with options for different export formats (DC, EndNote, Ref Manager et. al.).
 
I am having a mental blank at the moment… but is it possible to adjust which export options can be used, based on which search was performed…
 
e.g.
simple search (cgi/search/simple)
advanced search (cgi/search/advanced)
admin staff search (cgi/search/eprint/staff)
 
Thanks for any help/advice that can be offered.
 
Matt

__________________________________________________________________
This email (including any attached files) is confidential and is  
for the intended recipient(s) only. If you received this email by  
mistake, please, as a courtesy, tell the sender, then delete this  
email.
The views and opinions are the originator's and do not necessarily  
reflect those of the University of Southern Queensland. Although  
all reasonable precautions were taken to ensure that this email  
contained no viruses at the time it was sent we accept no  
liability for any losses arising from its receipt.
The University of Southern Queensland is a registered provider  
of education with the Australian Government.
(CRICOS Institution Code QLD 00244B / NSW 02225M, TEQSA PRV12081)

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