Dear all,
when opening a users personal publications page, e.g.: biblio/author/276 it doesn't only show the items the person is author off but also those that the person is editor of.
While this might be right for some - it isn't for me. How can I modify/fix/improve this?
I looked at the 'author' query in biblio.pages.inc biblio_build_query(), but its somewhat confusing.
Thanks everyone and happy coding.
Comments
Comment #1
rjerome commentedYou would have to add a "where" limit to the query in the "author" section...
Note the new line "$where[] = 'bc.auth_category=1';" just before the {else}
Ron.
Comment #2
nhck commentedWow speedy! Thank you very much!
Actually it was ;-)
Should this be an option? Maybe? I think I could make a patch including an options panel.
Comment #3
rjerome commentedRight you are, I hadn't actually "tested" the code I posted :-(
WRT an optional setting, that's probably a good idea, although you are the first to raise it.
Ron.
Comment #4
freggy commentedThis problem still exists in the version for drupal 7: when looking for publications of a certain author, I do not want the publications of which that person was the editor.
I found a comment line:
// $query->condition('bc.auth_category', 1);
but uncommenting this, does not seem to change anything. How can I only see the publications that person is really the author of, and not the editor?
Comment #5
rjerome commentedI'm revisiting all that filtering code (as there are some other issues as well, #1399866: Filtering publications always returns zero results) so I'll look at this at the same time.
Comment #6
liam morlandThis version is no longer maintained. If this issue is still relevant to the Drupal 7 version, please re-open and provide details.