Skip to content

Commit

Permalink
Update Zotero.php
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Dec 26, 2024
1 parent 93e0c46 commit 1fc0a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Zotero.php
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ public static function process_zotero_response(string $zotero_response, Template
(stripos((string) $result->publicationTitle, ' edition') === false)) { // Do not add if "journal" includes "edition"
if (str_replace(NON_JOURNALS, '', (string) $result->publicationTitle) === (string) $result->publicationTitle) {
if (str_ireplace(NON_JOURNAL_WEBSITES, '', $url) === $url || $template->wikiname() === 'cite journal') {
if (str_ireplace(CANONICAL_PUBLISHER_URLS, '', $url) === $url) {
if (str_ireplace(CANONICAL_PUBLISHER_URLS, '', $url) === $url && str_ireplace(JOURNAL_ARCHIVES_SITES, '', $url) === $url) {
bot_debug_log('Possible journal URL: ' . $url);
$template->add_if_new('work', (string) $result->publicationTitle);
} else {
Expand Down

0 comments on commit 1fc0a8d

Please sign in to comment.