EPrints Technical Mailing List Archive

Message: #02660


< 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 // It's OK now!


Hi,

 

Thanks a lot for helping me. The filters does the job as expected. Only the selected documents are now disclosed.  

 

I will come back soon with some other Eprints related questions.

 

Regards

 

Jean

 

p.s: 

 

"Reperage" ~ "Feuilletage" plutot?. 

Rep : I am still scanning the entire repository here. For sure, I will have to review several things.  

 

De : eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] De la part de Sebastien Francois
Envoyé 
: 21 février 2014 04:42
À : eprints-tech@ecs.soton.ac.uk
Objet : [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