- both solr.xslt to define licence field for solr

- composer updates
- sytax in SolrDocumentXslt.php
This commit is contained in:
Arno Kaimbacher 2020-05-20 14:41:49 +02:00
parent 671cdb1e4e
commit 780bdbb4a4
4 changed files with 38 additions and 21 deletions

View file

@ -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();