EPrints Technical Mailing List Archive
Message: #05557
< 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
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] making a document upload not appear in summary page
- From: Michael Eadie <Michael.Eadie@glasgow.ac.uk>
- Date: Thu, 14 Apr 2016 09:04:59 +0000
Thank you very much for all the replies and tips. I’ve implemented the relatively straightforward approach suggested by Adam and Lizz. It’s not ideal though for the reasons suggested by John – so we’ll probably
need to think about something more robust to completely hide these docs. It would be interesting to know if other sites are storing evidence of acceptance in a similar way and therefore have a similar requirement. Maybe a question
for the upcoming User Group! Cheers Mick -- Mick Eadie +44 (0) 141 330 6294
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Matthew Brady Hi All, Further to this, you also need to turn full text indexing off for any of the ‘hidden’ documents as well, so there aren’t any search results showing
up, that then display with no documents (since they are hidden).. might be a telltale sign that you actually do have something tucked away…
We have added an extra document type e.g ‘hidden’, but also added an extra tickbox for ‘isIndexed’, which allows fulltext indexing to be set on/off
at a document by document level… selecting ‘hidden’ type automatically turns the isIndexed to false. Most of this is also discussed in the list many years ago… (3.1.x days… (20/06/2007)), my doco was updated 3 years ago, but that was for 3.3.xx
updates… In the file
/opt/eprints3/perl_lib/EPrints/MetaField/Fulltext.pm Hidden documents NEVER get indexed, regardless of the isindexed field setting. IF the document is Hidden, it just skips to the next one. IF the document isnt Hidden, then
IF checks the isindexed flag, and if the flag is set to "TRUE" Index the document ENDIF ENDIF sub get_value { my( $self, $object ) = @_; my @docs = $object->get_all_documents; my $r = []; foreach my $doc ( @docs ) { #MB added test for security of the document.... # if the document is hidden, skip and do the next document # if the document isnt hidden, and the isindexed flag is true then process next if $doc->get_value( "security" ) eq "hidden";
if ($doc->get_value( "isindexed" ) eq "TRUE") { push @{$r}, "_FULLTEXT_:".$doc->get_id; } } return $r; } Cheers Matt From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of John Salter 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. Cheers, John From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Adam Field 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 From:
<eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Michael Eadie <Michael.Eadie@glasgow.ac.uk> 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? Regards Mick -- Mick Eadie Research Data Management Officer University of Glasgow Tel: +44 (0) 141 330 6294 *** Archive:
http://www.eprints.org/tech.php/ *** EPrints community wiki:
http://wiki.eprints.org/ *** EPrints developers Forum:
http://forum.eprints.org/
_____________________________________________________________
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 )
|
- References:
- Re: [EP-tech] making a document upload not appear in summary page
- From: Adam Field <Adam.Field@jisc.ac.uk>
- Re: [EP-tech] making a document upload not appear in summary page
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] making a document upload not appear in summary page
- From: Matthew Brady <Matthew.Brady@usq.edu.au>
- Re: [EP-tech] making a document upload not appear in summary page
- Prev by Date: Re: [EP-tech] problem migrating documents
- Next by Date: Re: [EP-tech] problem migrating documents
- Previous by thread: Re: [EP-tech] making a document upload not appear in summary page
- Next by thread: [EP-tech] Importing EP3 borking with HTML entities
- Index(es):