Skip to content

Commit

Permalink
Merge pull request #1384 from ms609/GlazerMann-patch-9
Browse files Browse the repository at this point in the history
JSTOR sometimes sends first page as end page too
  • Loading branch information
Martin R. Smith committed Feb 26, 2019
2 parents d61e2ec + da63f63 commit b584898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -1710,7 +1710,7 @@ public function expand_by_RIS(&$dat, $add_url) { // Pass by pointer to wipe this
}
if ($ris_review) $this->add_if_new('title', trim($ris_review)); // Do at end in case we have real title
if (isset($start_page)) { // Have to do at end since might get end pages before start pages
if (isset($end_page)) {
if (isset($end_page) && ($start_page != $end_page)) {
$this->add_if_new("pages", $start_page . '–' . $end_page);
} else {
$this->add_if_new("pages", $start_page);
Expand Down

0 comments on commit b584898

Please sign in to comment.