EPrints Technical Mailing List Archive

Message: #09156


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Problem template on views


CAUTION: This e-mail originated outside the University of Southampton.

Hi list

 

Does anyone have experience with assigning templates to views? Please have a look at the following example views.pl. I am trying to set templates and it works for direct views like id=divisions, but not for id=type:

 

$c->{browse_views} = [

        {

                id => "divisions",

                allow_null => 1,

                menus => [

                        { fields => [ "divisions" ] },

                ],

                order => "-name/title",

                citation => "screen",

                variations => [

                                "type",

                ],

                template => 'views',

        },

        {       id=>"type",

                menus=>[

                        {

                                fields=>[ "type" ],

                                hideempty=>1,

                        },

                        {

                                fields=>[ "name", "title" ],

                                hideempty=>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",

                                new_column_at => [ 0 ],

                        },

                ],

                template => 'views',

        },

];

 

Thx
Jens

 

--
Jens Witzel
Zentrale Informatik
Universität Zürich
Stampfenbachstrasse 73
CH-8006 Zürich

mail:  jens.witzel@uzh.ch
phone: +41 44 63 56777
http://www.zi.uzh.ch