Howdy all,

I've been away from Biblio for a few months and am feeling a bit lost. Just tried to do something I thought would be obvious: use Views to set up a customised list of publications by Type.

Ie, I don't want all types, and I want organise them in a special order. So the plan was to use module insert_view and make a page like this:

view:biblio==arg1

view:biblio==arg4

view:biblio==arg8

etc.

But I'll be darned if I can figure out why the necessary field, something like biblio_type_of_publication (?) is not available as a filter term in Views2.

The field "Type of Publication" appears as a *display* field in Views2...but doesn't appear as an option in the list of arguments.

What am I missing here?

Comments

rjerome’s picture

Nope, not missing anything, there is no argument handler for "Type of Publication", the reason being is it requires a custom handler given the extra table joins required, and I haven't done it yet. Probably not a big job, I'll take a look.

Ron.

boabjohn’s picture

G'Day Ron,

Okay...relieved to hear I'm not in outer space...and keen to know if there's anything I can do to assist/accelerate the additional effort?

Since Type of Pub is a key field throughout the concecpt of biblio management, it seems like a worthy candidate for connection to Views.

JB

rjerome’s picture

Okay...relieved to hear I'm not in outer space...and keen to know if there's anything I can do to assist/accelerate the additional effort?

Send a boat load of those Auzzie dollars :-)

No, but seriously if you just add the following line after line 171 in the biblio.views.inc file it should do the trick...

    'argument'  => array('handler' => 'views_handler_argument_string'),

This will allow you to add an argument to the views path that contains the publication type

e.g. "examlpe.com/myview/Book" to list all the Book types.

Ron.

boabjohn’s picture

G'Day Ron....

Positively magic! New line inserted and new page under construction. You'll roll this into the next dev?

I hesitated before to mention the (lowly) Aussie buck, but hey: where's your PayPal account??

With gratitude effulgently...

rjerome’s picture

Status: Active » Fixed

Indeed that will be included in future releases, it was more of an oversight than a omission.

This one's on the house, since it was so simple :-)

Cheers,

Ron.

Lanae’s picture

So let me get this straight...with the above patch, it will work as a URL argument to a normal view, but if I need to use it with the insert_view module and make a page like boabjohn described, then I should wait for the next release?

Thanks for fixing this Ron!

rjerome’s picture

I'm not familiar with the "insert_view" module, but I hadn't planned any further changes than the one above (which is now in the current 6.x-1.dev version http://drupal.org/cvs?commit=334634) maybe you could test it and see if there is anything further you need.

Ron.

Lanae’s picture

Version: 6.x-1.9 » 6.x-1.10

I should have just tried it in the first place! :-) (I took your example too literally at first, and thought that it might only work with a URL arg.)

I've tested it and the new argument "Type of Publication" works beautifully with the "insert_view" module. Thanks again!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.