diff -r 8af5ed0521a2 -r 34ffc04cef62 server/src/app/Models/Document.php --- 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(''); + if(is_null($this->id)) { + $this->id = CocoonUtils::getIdFromCorpusUri($this->uri); + } } return $this->id; }