@@ -525,8 +525,8 @@ |
||
525 | 525 | $searchResult['snippet'] = $doc['snippet']; |
526 | 526 | $searchResult['highlight'] = $doc['highlight']; |
527 | 527 | $searchResult['highlight_word'] = preg_replace('/^;|;$/', '', // remove ; at beginning or end |
528 | - preg_replace('/;+/', ';', // replace any multiple of ; with a single ; |
|
529 | - preg_replace('/[{~\d*}{\s+}{^=*\d+.*\d*}`~!@#$%\^&*()_|+-=?;:\'",.<>\{\}\[\]\\\]/', ';', $this->searchParams['query']))); // replace search operators and special characters with ; |
|
528 | + preg_replace('/;+/', ';', // replace any multiple of ; with a single ; |
|
529 | + preg_replace('/[{~\d*}{\s+}{^=*\d+.*\d*}`~!@#$%\^&*()_|+-=?;:\'",.<>\{\}\[\]\\\]/', ';', $this->searchParams['query']))); // replace search operators and special characters with ; |
|
530 | 530 | } |
531 | 531 | $documents[$doc['uid']]['searchResults'][] = $searchResult; |
532 | 532 | } |
@@ -152,7 +152,7 @@ |
||
152 | 152 | // field for which highlighting is going to be performed, |
153 | 153 | // is required if you want to have OCR highlighting |
154 | 154 | $solrRequest->addParam('hl.ocr.fl', $this->fields['fulltext']); |
155 | - // return the coordinates of highlighted search as absolute coordinates |
|
155 | + // return the coordinates of highlighted search as absolute coordinates |
|
156 | 156 | $solrRequest->addParam('hl.ocr.absoluteHighlights', 'on'); |
157 | 157 | // max amount of snippets for a single page |
158 | 158 | $solrRequest->addParam('hl.snippets', '40'); |
@@ -29,10 +29,10 @@ |
||
29 | 29 | */ |
30 | 30 | class DocumentValidator |
31 | 31 | { |
32 | - /** |
|
33 | - * @access protected |
|
34 | - * @var Logger This holds the logger |
|
35 | - */ |
|
32 | + /** |
|
33 | + * @access protected |
|
34 | + * @var Logger This holds the logger |
|
35 | + */ |
|
36 | 36 | protected Logger $logger; |
37 | 37 | |
38 | 38 | /** |
@@ -130,11 +130,11 @@ |
||
130 | 130 | ); |
131 | 131 | } |
132 | 132 | } elseif ($annotationTarget->getObjectId()) { |
133 | - $objectTargetPages = []; |
|
133 | + $objectTargetPages = []; |
|
134 | 134 | foreach ($this->document->getCurrentDocument()->physicalStructureInfo as $physInfo) { |
135 | - $order = $physInfo['order']; |
|
135 | + $order = $physInfo['order']; |
|
136 | 136 | if ($order) { |
137 | - $objectTargetPages[] = $order; |
|
137 | + $objectTargetPages[] = $order; |
|
138 | 138 | } |
139 | 139 | } |
140 | 140 | if ($objectTargetPages) { |