server/src/app/Models/Document.php
changeset 115 34ffc04cef62
parent 111 af85c436048f
child 122 b37fde30dd4a
equal deleted inserted replaced
114:8af5ed0521a2 115:34ffc04cef62
    53         $this->contributors = null;
    53         $this->contributors = null;
    54     }
    54     }
    55 
    55 
    56     public function getId() {
    56     public function getId() {
    57         if(is_null($this->id)) {
    57         if(is_null($this->id)) {
    58             $this->id = CocoonUtils::getIdFromCorpusUri($this->uri);
    58             $this->id = $this->getProvidedCHO()->get('<http://purl.org/dc/terms/identifier>');
       
    59             if(is_null($this->id)) {
       
    60                 $this->id = CocoonUtils::getIdFromCorpusUri($this->uri);
       
    61             }
    59         }
    62         }
    60         return $this->id;
    63         return $this->id;
    61     }
    64     }
    62 
    65 
    63     public function getLanguage() {
    66     public function getLanguage() {