diff --git a/classes/submission/Collector.php b/classes/submission/Collector.php index 48c799229e..549c2e0935 100644 --- a/classes/submission/Collector.php +++ b/classes/submission/Collector.php @@ -1,4 +1,5 @@ whereIn('s.submission_id', function (Builder $query) { + $query->select('p.submission_id') + ->from('publication_galleys AS g') + ->join('dois AS d', 'g.doi_id', '=', 'd.doi_id') + ->join('publications AS p', 'g.publication_id', '=', 'p.publication_id') + ->whereLike('d.doi', "{$this->searchPhrase}%") + ->union(function (Builder $query) { + $query->select('p.submission_id') + ->from('publications AS p') + ->join('dois AS d', 'p.doi_id', '=', 'd.doi_id') + ->whereLike('d.doi', "{$this->searchPhrase}%"); + }); + }); + } } diff --git a/lib/pkp b/lib/pkp index d05f1af72f..ac62765e6a 160000 --- a/lib/pkp +++ b/lib/pkp @@ -1 +1 @@ -Subproject commit d05f1af72f322c6b3ff241f8185292ca71990f35 +Subproject commit ac62765e6aef146f46f12da6c6b29612cc901889