Skip to content

Commit

Permalink
newrepublic
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Oct 24, 2023
1 parent 0c184c8 commit 1df6a3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Zotero.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,11 @@ public static function process_zotero_response(string $zotero_response, Template
unset($result->author);
}

if (stripos($url, 'newrepublic.com') !== FALSE) { // Bad data for all but first one
unset($result->creators['1']);
unset($result->author['1']);
}

$result->title = convert_to_utf8($result->title);
// Reject if we find more than 5 or more than 10% of the characters are �. This means that character
// set was not correct in Zotero and nothing is good. We allow a couple of � for German umlauts that arer easily fixable by humans.
Expand Down

0 comments on commit 1df6a3c

Please sign in to comment.