"published in" not added from DOI lookup

Issue #6 new
Dan Michael O. Heggø created an issue

Example: I created https://www.wikidata.org/wiki/Q24005277 from 10.1016/0031-9163(64)91136-9 , but had to manually add the "published in"

Both the journal name and issn are found from the crossref API:

https://api.crossref.org/v1/works/http://dx.doi.org/10.1016/0031-9163(64)91136-9

Comments (1)

  1. Dan Michael O. Heggø reporter

    Since this repo is not self-contained it's kinda hard to test, but the loadDOI function seems to miss something like this:

            // Journal
            $journal = $this->getWikidataItemsByStringProp ( 'P236' , $j->message->ISSN[0]) ;
            if ( count($journal) == 1 ) $this->data[$this->props['published in']] = array ( 'Q'.$journal[0] , 'item' ) ;
    
  2. Log in to comment