Hi,

I am using 'Biblio: Author full name' as parameter for the contextual filter of a view. This allowed me to select all contributions of one author and condense it onto one page ( e.g. http://www.neuro.uni-bremen.de/memberinfo/466/David%20Rotermund ). Some time ago everything was hunky-dory. Since the last update of the biblio-module or the durpal core (I am not completely sure), the filter only selects the biblo-entry if the FIRST author is equivalent to the given parameter-value. Before that it was not relevant where the author in the author list was positioned.
Is there a workaround to get the old invariant way of filtering the authors back?

Thanks!

best wishes
David

CommentFileSizeAuthor
#8 biblio-views-issue.txt7.21 KBtoki

Comments

alan d.’s picture

Category: Support request » Bug report
Issue summary: View changes

Same issue, but I found that it was caused by the Family name filtering:

class biblio_handler_sort_contributor_lastname extends views_handler_sort {

  function query() {
    parent::query();
    $this->query->add_where(0, "biblio_contributor.rank", $this->options['rank'], '=');
  }
}

This adds a "biblio_contributor.rank = 0" so that only the first author is ever used.

To resolve, remove this sort option, but a bug due to the coupling of two different features :(

@davrot
Are you also using surname sorting?

thoogend’s picture

Nice work! You explained the problem I just started to have after upgrading the biblio module. Thanks to your description, I was able to sort things out (no pun intended).

The EVA views display that I was using with the "Biblio: Author last name" field in a contextual filter was conflicting with the "Biblio: Author last name (1st Author, asc)" field in sort criteria. When I changed the sort to instead use "Biblio: Author full name (asc)", results matching the author whether they were first, second, third, and so on all appeared again.

Thanks again!

PS I also posted about this same problem in a different issue (https://www.drupal.org/project/biblio/issues/2087805), but this is the work around.

toki’s picture

I am really sorry but I still can't get an Author last name Views filter working. My client needs a double sorting (year and author last name) which is working (adding the mentioned sort option above, biblio_contributor.rank=0) but if you add a full or last name filter, it does not work.
Does anybody know how to build a View based on Biblio contents with a double sorting (year, 1st author last name) AND an Author last name exposed filter? Thanks for any tip here.

liam morland’s picture

@thoogend Does this require a patch to the biblio module or is this really a support request?

alan d.’s picture

Bug, that sort option means that the query will only join a single author field, breaking the other filtering / conditional options that are looking at the second+ author(s)

liam morland’s picture

Version: 7.x-1.0-rc5 » 7.x-1.x-dev

It would be helpful to have steps to reproduce the problem including the expected and actual results.

alan d.’s picture

don't think I have access to any biblio setup atm...

guessing from my very old report

alter a listing to order by family name
add a filter to search for family name
add a pub by A and B
Search A, should be found
Search B, no result

toki’s picture

StatusFileSize
new7.21 KB

Please find attached an export.
In my case, I need to sort Biblio citations by year and first author last name.
When I try to use the Author last name exposed filter, I get no results.
Thanks for your time.
PS : if you need more information, do not hesitate, I may add examples and screenshots if needed.

waleedagel’s picture

Did you manage to solve this problem?