Support » Plugin: PAPERCITE » FIltering using authour first name

  • Resolved udaya.knu


    Is it possible to filter using both authour’s first name and family name?
    Currently, if I use a code like this
    [bibtex group_order=desc author="S. Baek" allow=inproceedings sortauthors=0 highlight="S. Baek" file=all.bib]
    it filters all the publication not only “S. Baek” but also “J. Baek”, “K. Baek” and so on.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bpiwowar


    Hi, this is strange – it should only highlight “S. Baek”. Could you report the bug and github and include an example (a small bibtex file + the paretic shortcake) so I can work on this issue?

    Papercite issues on github:

    Thread Starter udaya.knu


    Highlighting works fine, but filtering doesn’t. I changed the matches function in the papercite.php file as follows and now it works fine. But I’m not sure it is the right way to do it.

    function matches(&$entry) {
              $ok = true;
              $eAuthors = &$entry["author"];
              foreach($this->filters as &$filter) {
                  foreach($filter->creators as $author) {
                      $ok = false;
                      foreach($eAuthors->creators as $eAuthor) {
                          if ($author["surname"] === $eAuthor["surname"] && $author["firstname"] === $eAuthor["firstname"]) {
                              $ok = true;
                      // Author was not found in publication
                      if (!$ok) break;
                  // Everything was OK
                  if ($ok) break;
              return $ok;
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘FIltering using authour first name’ is closed to new replies.