Skip to content

Commit

Permalink
Ensure CitationReferencePositionJournal instance is accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
mwjames authored Oct 23, 2016
1 parent 7943334 commit bef15a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/DataValues/CitationReferenceValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ protected function parseUserValue( $value ) {
*/
public function getShortWikiText( $linked = null ) {

if ( $this->citationReferencePositionJournal === null ) {
$this->citationReferencePositionJournal = $this->getExtraneousFunctionFor( '\SCI\CitationReferencePositionJournal' );
}

// We want the last entry here to get the major/minor
// number that was internally recorded
$referencePosition = $this->citationReferencePositionJournal->findLastReferencePositionEntryFor(
Expand Down

0 comments on commit bef15a8

Please sign in to comment.