Pub links work from a Biblio node but not from an author page

meles - June 19, 2008 - 20:31
Project:Bibliography Module
Version:5.x-1.15
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

(Drupal 5.7)

When a specific node of type Biblio is displayed, e.g., http://mysite.com/node/133 (a certain publication)

links to individual authors look like this: http://mysite.com/biblio/author/SomeName
and produce a list of that author's pubs. Cool.

However, in a VIEW containing Biblio records (ex., publications of type "1", where the type was a field I added):

http://mysite.com/publications_type1

You get a nice page of just type 1 publications but the links to individual authors are formatted thusly:
http://mysite.com/biblioview?&filter0[]=NameA
http://mysite.com/biblioview?&filter0[]=NameB...

and no matter which author is clicked on, the result is a list of all Biblio records (everyone's pubs) (with a different styling).

If I can't figure this out then I need to temporarily disable links to authors from the View (but where would this be done?).

I know Biblio is not guaranteed to work with Views, but it sort of does. What do you suppose is going on?

thank you

#1

meles - June 19, 2008 - 21:05

I notice that the View wrestles all author names into Last Name, First Initial form.
Could this be doing some violence to the filtering?

http://drupal.org/node/148117 offers this:
"... filter by author link for the name works properly if "normalize" is off (/biblio/author/van+Gunsteren) but is broken if normalize is on (/biblio/author/van++Gunsteren) ..."
In my case Biblio normalize is set to OFF.
So I guess the View module is doing the normalizing.

I just added the Biblio Normalize module, activated it & set authors field to be normalized, with delimiter ";"
No change in results.

#2

rjerome - June 19, 2008 - 21:19

I'm guessing that you are using the biblio_views.module that was recently posted to this forum in another thread? As I said in that thread (http://drupal.org/node/234891#comment-878408) that module still needs some TLC and I don't really have the time to do it right now :-(

The best I can tell you is that views support will come, probably in the 6.x version first since that's what I'm working on now.

Ron.

#3

meles - June 19, 2008 - 22:49
Title:Author sorting links work from a Biblio node but not from a View» Author sorting links work from a Biblio node but not from a View, my interim 'solution'

Thank you for responding, I know you're busy.
Yes; I de-activated Biblio Views just before reading your post, & the View (http://mysite.com/publications_type1) disappeared.
Oddly, the View was working before I had even installed Biblio Views.

For whoever might find it useful, here is my interim solution to just de-activate links in the author name output generated by Views.

This prevents a call to biblio_views_author_links() which, I think, generates author-name links in Views of Biblio content.
It does not interfere with author-name links in pages like: http://mysite.com/biblio/author/SomeName .

In biblio_views.module:

function biblio_views_handler_field($fieldinfo, $fielddata, $value, $data){
switch ($fielddata['field']) {
case 'biblio_authors':

// commented this out:
// return _biblio_views_author_links(_biblio_parse_authors($value));
// tried this instead:
return _biblio_parse_authors($value);

default:
return $value;
}
}

BTW I was basically guesstimating _biblio_views_author_links was where author names are output as links.
Is this part where the action is?

function _biblio_views_author_links($author) {
(snip)
foreach($author_array as $auth) {
$newquery = $query . "&filter0[]=".trim($lastname);
$html .= l(trim($auth), 'biblioview', $attrib, $newquery);
}
return $html;
}

Thank you.

#4

rjerome - June 20, 2008 - 01:37

The other issue which you elude to above is the fact that the biblio module has some limited built in views capability and I really don't know how this interacts with the standalone views module. Likely there is some overlap which may be confusing things a bit as well.

Ron.

#5

meles - June 20, 2008 - 15:32
Title:Author sorting links work from a Biblio node but not from a View, my interim 'solution'» Pub links work from a Biblio node but not from an author page

Related issue:

From a publication 'node', say: http://mysite.com/node/51
the link to the downloadable publication is correct: http://mysite.com/files/mysite.files/pubname.pdf

From an author page: http://mysite.com/biblio/author/Dickens
links to publications look like this: http://mysite.com/biblio/author/files/mysite.files/pubname.pdf

Note apparent insertion of 'biblio/author' in the url.

I haven't yet found where in biblio.module this is handled. Something to do with the base url?
The biblio_url field in table biblio is not illuminating at least, select biblio_url from biblio returns zero results.
Can you point to where I might attempt another small hack?

------ if the paths above are confusing: ---------

My setup is multisite & I keep the files separate:

drupal-5.7/the usual stuff inside, with a symlink called 'files' linking to ../drupal.files

drupal.files/
mysite1.com.files/
mysite2.com.files/
etc.
-------------------------------------------------------------

#6

rjerome - June 20, 2008 - 18:40

Is this a "Views" page or is the views module in anyway involved here?

I haven't seen that on my own site (but that doesn't mean it not a bug) which is also multi-site with different files directories .

Ron.

#7

meles - June 20, 2008 - 20:39

I don't think Views is involved here; pages automagically spring up for every author in the database, and I didn't create Views to do that. I think Biblio generates it - all the style tags are Biblio.

#8

rjerome - June 21, 2008 - 01:08

I'll try to reproduce it on this end, but if I can't, fixing it may be difficult. Any chance you could send me a link to the site so I can see for myself?

Ron.

#9

meles - June 23, 2008 - 18:02

I'll have to reproduce it for you on another server, will try to do that soon.

 
 

Drupal is a registered trademark of Dries Buytaert.