EPrints Technical Mailing List Archive

Message: #05538

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

Re: [EP-tech] making a document upload not appear in summary page

Be wary! Here be wolves (with all these approaches)!


EPrints does a very good job of getting your stuff out there.

Check how your documents appear (or hopefully don’t appear) in:

- the <head> of the eprint abstract page

- OAI-PMH (in different MD formats)

- export plugins

- search output


My solution, where I wanted NO information about the document to be publicly visible (not even the fact that it existed) was:

- add a new ‘security’ option – ‘hidden’

- find any calls to ‘get_all_documents’ anywhere in your repo code or the main perl_lib

- - work out what you want to do with them

- - if it’s an internal ‘edit’ type scope, you probably want to include them

- - if it’s an external scope (e.g. export), you probably don’t


If you’re not too bothered about people being able to discover the metadata for a document, adding a new ‘security’ type, and then changing ~/archives/ARCHIVEID/cfg/cfg.d/security.pl to handle it might be another way to go.





From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Adam Field
Sent: 30 March 2016 14:19
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] making a document upload not appear in summary page


I've implemented this in the past by doing the following:


* Create a new content type "evidence_documentation" or whatever

* Put code in document_fields_automatic to set all documents of type evidence_documentation to restricted to repository staff

* Change the render function to exclude evidence documents when rendering an abstract page (if necessary).  You should still be able to see all documents on the item control screen.







Adam Field
SHERPA services analyst developer


From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Michael Eadie <Michael.Eadie@glasgow.ac.uk>
Reply-To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Date: Wednesday, 30 March 2016 10:54
To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] making a document upload not appear in summary page


Hi List


Can you store a file in EPrints but make it not appear in the summary page?


We are looking at storing evidence of article acceptance with the record (e.g. an email saved as a text file), but don't want these to be publicly viewable.


I've looked at editing the document citation, (e.g. if content  = 'email' don't display anything) but this just hides metadata not the icon and link to the doc.


Is what we are trying to do possible?






Mick Eadie

Research Data Management Officer

University of Glasgow


Tel: +44 (0) 141 330 6294





*** EPrints community wiki: http://wiki.eprints.org/

*** EPrints developers Forum: http://forum.eprints.org/



Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.

Jisc Services Limited is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under company number 2881024, VAT number GB 197 0632 86. The registered office is: One Castle Park, Tower Hill, Bristol BS2 0JA. T 0203 697 5800.