EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #04755
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Filtering a view
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Filtering a view
- From: "Vials Moore, Adam" <Adam.Moore@liverpool.ac.uk>
- Date: Wed, 23 Sep 2015 15:08:04 +0000
Hey all!
We are trying to rebuild our author views. Currently we have the standard creator view BUT we no longer use the creator when we generate a new record, instead we have contributor = author. All of our local contributors, no matter whether they are authors,
editors etc have a contributor_id property, which is NULL for non UoL contributors.
I was hoping that I could build a view which used the contributor_name and then filter it with a contributor_id not null test but can’t seem to achieve this
Here’s what I came up with – all suggestions appreciated!
{
id => "creators", allow_null => 0, hideempty => 1, menus => [ { fields => [ "contributors_name" ], filters => [ { meta_fields => [ "contributors_id" ], value => "470920", describe => 0 } ], new_column_at => [1, 1], mode => "sections", open_first_section => 1, group_range_function => "EPrints::Update::Views::cluster_ranges_30", grouping_function => "EPrints::Update::Views::group_by_a_to_z", }, ],
order => "-date/title", variations => [ "type", "DEFAULT", ], }, Adam
|
- Prev by Date: [EP-tech] Re: Advanced Search by date
- Next by Date: [EP-tech] Re: How to set a field to be multilang (Imports brake)
- Previous by thread: [EP-tech] DSpace to EPrints Migration resources
- Next by thread: [EP-tech] Re: Filtering a view
- Index(es):