Skip to content

Commit

Permalink
We are flagging free dois even when the do not work, since template d…
Browse files Browse the repository at this point in the history
…oes this right now
  • Loading branch information
GlazerMann authored Jan 24, 2024
1 parent 9d781c8 commit ce6ed2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -4352,7 +4352,7 @@ public function tidy_parameter(string $param) : void {
$this->set('issue', $matches[1]);
}
}
if (doi_works($doi)) {
/** if (doi_works($doi)) { We are flagging free dois even when the do not work, since template does this right now **/
foreach (DOI_FREE_PREFIX as $prefix) {
if (strpos($doi, $prefix) === 0) {
$this->add_if_new('doi-access', 'free');
Expand All @@ -4364,8 +4364,8 @@ public function tidy_parameter(string $param) : void {
$this->add_if_new('doi-access', 'free');
}
unset($year);
}
if (doi_works($doi) && (strpos($doi, '10.1073/pnas') === 0)) {
/** } **/
if (/** doi_works($doi) && **/ (strpos($doi, '10.1073/pnas') === 0)) {
$template_year = $this->year();
if ($template_year !== '') {
$template_year = (int) $template_year;
Expand Down

0 comments on commit ce6ed2b

Please sign in to comment.