Skip to content

Commit

Permalink
keep pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Oct 24, 2023
1 parent 4c6044d commit f990b4d
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 @@ -1222,7 +1222,7 @@ public static function find_indentifiers_in_urls(Template $template, ?string $ur
return TRUE;
}
}
if (is_null($url_sent) && get_semanticscholar_license($s2cid) === FALSE) {
if (is_null($url_sent) && get_semanticscholar_license($s2cid) === FALSE && stripos($url, 'pdf') === FALSE) {
report_warning('Removing un-licensed Semantic Scholar URL that was converted to S2CID parameter');
$template->forget($url_type);
return TRUE;
Expand Down

0 comments on commit f990b4d

Please sign in to comment.