[EP-tech] Filtering a view
Vials Moore, Adam
Adam.Moore at liverpool.ac.uk
Wed Sep 23 16:08:04 BST 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20150923/f4174bbf/attachment.html
More information about the Eprints-tech
mailing list