EPrints Technical Mailing List Archive

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


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