Skip to content

Commit

Permalink
More bad meta-data clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Dec 25, 2024
1 parent 445a662 commit 92fdb78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Zotero.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,9 @@ public static function process_zotero_response(string $zotero_response, Template
unset($result->language);
unset($result->source);

if (substr($result->publicationTitle, -2) === " |") {
$result->publicationTitle = substr($result->publicationTitle, 0, -2);
}
if (stripos($url, 'www.royal.uk') !== false) {
unset($result->creators); // @codeCoverageIgnore
unset($result->author); // @codeCoverageIgnore
Expand Down

0 comments on commit 92fdb78

Please sign in to comment.