| @@ 140-154 (lines=15) @@ | ||
| 137 | * The title is set to the documents' URL in case that no title is set yet. The title |
|
| 138 | * is not added to the content field in that case. |
|
| 139 | */ |
|
| 140 | private function _complete_fields() |
|
| 141 | { |
|
| 142 | $this->content .= "{$this->author}\n{$this->title}\n"; |
|
| 143 | ||
| 144 | // Add the abstract only if we haven't done so already. |
|
| 145 | if (strstr($this->abstract, $this->content) === false) |
|
| 146 | { |
|
| 147 | $this->content .= "{$this->abstract}\n"; |
|
| 148 | } |
|
| 149 | ||
| 150 | if (! $this->title) |
|
| 151 | { |
|
| 152 | $this->title = $this->document_url; |
|
| 153 | } |
|
| 154 | } |
|
| 155 | ||
| 156 | /** |
|
| 157 | * Processes the information contained in the datamanager instance. |
|
| @@ 131-145 (lines=15) @@ | ||
| 128 | * The title is set to the documents' URL in case that no title is set yet. The title |
|
| 129 | * is not added to the content field in that case. |
|
| 130 | */ |
|
| 131 | private function complete_fields() |
|
| 132 | { |
|
| 133 | $this->content .= "{$this->author}\n{$this->title}\n"; |
|
| 134 | ||
| 135 | // Add the abstract only if we haven't done so already. |
|
| 136 | if (strstr($this->abstract, $this->content) === false) |
|
| 137 | { |
|
| 138 | $this->content .= "{$this->abstract}\n"; |
|
| 139 | } |
|
| 140 | ||
| 141 | if (! $this->title) |
|
| 142 | { |
|
| 143 | $this->title = $this->document_url; |
|
| 144 | } |
|
| 145 | } |
|
| 146 | ||
| 147 | /** |
|
| 148 | * Processes the information contained in the datamanager instance. |
|