EPrints Technical Mailing List Archive
Message: #01221
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Views
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Views
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- Date: Mon, 22 Oct 2012 15:12:05 +0100
Hi John,Yes I use filters in views, and I think by using the same syntax as you do, e.g. (real life example):
filters => [{ meta_fields => [ "collections" ], value => "research", describe => 0 }
],Some repositories have completely separated certain topics (for example 'Archives' from the rest of the repository), see:
http://usir.salford.ac.uk/view/archive_dates/ VS. http://usir.salford.ac.uk/view/year/^^ these work by setting the "filters" appropriately. Items appear to belong to separate repositories, but nope, it's all under the same roof!
Seb. On 22/10/12 14:54, John Salter wrote:
Hi, I'm trying to get my head round views (again), and came across this: http://trac.eprints.org/eprints/changeset/6037 - which makes it sound like I should be able to do something like this: $c->{browse_views} = [ { id => "collection", filters => [ { meta_fields => [ "collection" ], value => "something" } ], ... }, ... ]; But this doesn't seem to work. Has anyone got this working? Each eprint belongs to a 'collection'. Each collection might need a different view - e.g. one collection could be a set of periodical/articles (with nice date/volume numbers), whereas another collection could be images of historical lab instruments - not necessarily having a nice clean date etc. How have people configured their views for items that don't share much in common? Cheers, John *** 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/
- References:
- [EP-tech] Views
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Views
- Prev by Date: [EP-tech] Views
- Next by Date: [EP-tech] Person URI generation
- Previous by thread: [EP-tech] Views
- Next by thread: [EP-tech] Person URI generation
- Index(es):