- both solr.xslt to define licence field for solr
- composer updates - sytax in SolrDocumentXslt.php
This commit is contained in:
parent
671cdb1e4e
commit
780bdbb4a4
4 changed files with 38 additions and 21 deletions
|
@ -21,15 +21,15 @@ class SolrDocumentXslt
|
|||
|
||||
$this->processor = new \XSLTProcessor;
|
||||
$this->processor->importStyleSheet($xslt);
|
||||
} catch (Exception $e) {
|
||||
throw new Exception('invalid XSLT file for deriving Solr documents', 0, $e);
|
||||
} catch (\Exception $e) {
|
||||
throw new \Exception('invalid XSLT file for deriving Solr documents', 0, $e);
|
||||
}
|
||||
}
|
||||
|
||||
public function toSolrDocument(Dataset $rdrDataset, \DOMDocument $solrDoc)
|
||||
{
|
||||
if (!($solrDoc instanceof \DOMDocument)) {
|
||||
throw new Exception('provided Solr document must be instance of DOMDocument');
|
||||
throw new \Exception('provided Solr document must be instance of DOMDocument');
|
||||
}
|
||||
|
||||
$modelXml = $this->getModelXml($rdrDataset);//->saveXML();
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue