EPrints Technical Mailing List Archive

Message: #02665


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

[EP-tech] Browse by document type and by 'document type options'


Hi all,

 

Since several days, I have been trying to build a view implying both the documents types and their eventual options.

 

That is, we have e.g. the following documents types :  article, book section, monograph, thesis.

There are no option types associated with the types article and book section.

 

However, monograph and thesis can also be displayed according to their options.

E.g., for thesis, there is a ‘thesis_type’ with two options that have been defined : PhD thesis, Master thesis.

 

Here is THE  question :  Is it possible to browse information  by document type and then by ‘document type option’ .

I would like to know whether or not there is a way to disclose the results in the following way:

 

 

Browse by document type

 

·         Article (5)

·         Monograph (10)

·         Book section (12)

·         Thesis (35)

o   PhD thesis (25)

o   Master thesis (10)

 

Please have a look at the following captures from views.pl

{

          id=>"doctype",

          allow_null => 1,

                                 hideempty => 1,

             menus => [

               {

                 fields => ["type;quiet"],

               },

             ],

             order=>"-date",

            variations => [

                       "creators_name;first_letter",

                       "date;reverse",

                       "divisions",

                        "DEFAULT"

           ],

      },

                Capture 1:  view.pl  section – code / browse by document type

               

       {

          id=>"thesis",

          allow_null => 0,

                                 hideempty => 0,

             menus => [

               {

                 fields => ["thesis_type"],

               },

              

             ],

             order=>"-date",

                                               variations => [

                                                  "creators_name;first_letter",

                                                  "date;reverse",

                                                  "divisions",

                                                  "DEFAULT"

                                                ],

                                              

        },

 

        Capture 2:  view.pl  section – code / browse by thesis type.

 

Please all, I am looking forward to hearing from you.  Your advices or suggestions will allow me either to go forward or to freeze the idea for ever.

 

Best regards,

 

Jean