changeset 115 | 34ffc04cef62 |
parent 111 | af85c436048f |
child 122 | b37fde30dd4a |
--- a/server/src/app/Models/Document.php Wed Feb 03 00:40:35 2016 +0100 +++ b/server/src/app/Models/Document.php Wed Feb 03 18:34:44 2016 +0100 @@ -55,7 +55,10 @@ public function getId() { if(is_null($this->id)) { - $this->id = CocoonUtils::getIdFromCorpusUri($this->uri); + $this->id = $this->getProvidedCHO()->get('<http://purl.org/dc/terms/identifier>'); + if(is_null($this->id)) { + $this->id = CocoonUtils::getIdFromCorpusUri($this->uri); + } } return $this->id; }