EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #02657


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

[EP-tech] Re: Browse by document type - How to filter and display only some types of documents


Hello,

You might be able to use "filters" in a view to achieve that:


                filters => [
                        { meta_fields => [ "type" ], value => "article book monograph", describe => 0 }
                ],

Or a variation of the above.

Seb.

PS: "Reperage" ~ "Feuilletage" plutot?

On 19/02/14 17:12, Fotsing, Jean Lazare wrote:

Hi all,

 Just below is the code I have defined in views.pl in order to display the types of documents.

{

          id=>"doctype",

          allow_null => 1,

          hideempty => 1,

             menus => [

               {

                 fields => ["type;quiet"],

               },

              

             ],

             order=>"-date",

                       variations => [

                         "creators_name;first_letter",

                          "divisions",

                          "thesis_type",

                          "date",

                          "DEFAULT"

                        ],

                      

        },

 

Here is the display:

 

There are 5 types of documents.  I would very much like to filter and display only some types of these documents, such as Article, Livre, Monographie.

Please, just tell/show  me which pieces I should insert into the above code section in order to reach my goal.

 

Regards

 

John