Commit 86aaee82 authored by asajedi's avatar asajedi
Browse files

Validate TEI file before loading

parent f2eb5186
......@@ -3,7 +3,9 @@
<component name="ChangeListManager">
<list default="true" id="9299d56e-0c70-4b88-b2b1-2eb4d0694c1d" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/config/services.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/config/services.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Command/SolrIndexing.php" beforeDir="false" afterPath="$PROJECT_DIR$/src/Command/SolrIndexing.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Controller/SimplexmlController.php" beforeDir="false" afterPath="$PROJECT_DIR$/src/Controller/SimplexmlController.php" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
......@@ -23,14 +25,17 @@
<setting file="file://$PROJECT_DIR$/var/emo-bundle/Model/Annotation/PartOf.php" root0="FORCE_HIGHLIGHTING" root1="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/.env.dist" root0="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/var/emo-bundle/Model/Annotation/AnnotationCollection.php" root0="FORCE_HIGHLIGHTING" root1="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/composer.json" root0="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/var/emo-bundle/Model/Annotation/Target.php" root0="FORCE_HIGHLIGHTING" root1="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/templates/item/detail.html.twig" root0="FORCE_HIGHLIGHTING" root1="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/var/emo-bundle/Model/Presentation/Title.php" root0="FORCE_HIGHLIGHTING" root1="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/var/emo-bundle/Model/Presentation/Item.php" root0="FORCE_HIGHLIGHTING" root1="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/docker-compose.yaml" root0="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/var/emo-bundle/Model/Document.php" root0="FORCE_HIGHLIGHTING" root1="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/var/emo-bundle/Model/Presentation/Image.php" root0="FORCE_HIGHLIGHTING" root1="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/src/Controller/SimplexmlController.php" root0="FORCE_HIGHLIGHTING" root1="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/composer.json" root0="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/config/services.yaml" root0="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/src/Command/SolrIndexing.php" root0="FORCE_HIGHLIGHTING" root1="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/var/emo-bundle/Model/Document.php" root0="FORCE_HIGHLIGHTING" root1="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/var/emo-bundle/Model/Annotation/AnnotationPage.php" root0="FORCE_HIGHLIGHTING" root1="FORCE_HIGHLIGHTING" />
</component>
<component name="PhpWorkspaceProjectConfiguration">
......@@ -196,7 +201,7 @@
<property name="WebServerToolWindowPanel.toolwindow.show.date" value="false" />
<property name="WebServerToolWindowPanel.toolwindow.show.permissions" value="false" />
<property name="WebServerToolWindowPanel.toolwindow.show.size" value="false" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/../digizeit-app" />
<property name="nodejs_package_manager_path" value="yarn" />
<property name="settings.editor.selected.configurable" value="preferences.editor" />
<property name="vue.rearranger.settings.migration" value="true" />
......@@ -248,6 +253,10 @@
<workItem from="1630014126785" duration="612000" />
<workItem from="1630441686460" duration="2123000" />
<workItem from="1631180525162" duration="176000" />
<workItem from="1631236749149" duration="8000" />
<workItem from="1631272334167" duration="2663000" />
<workItem from="1631618672072" duration="9455000" />
<workItem from="1631699750162" duration="4175000" />
</task>
<servers />
</component>
......
......@@ -22,7 +22,8 @@ parameters:
SBB_SPK: 'Staatsbibliothek Preußischer Kulturbesitz, Berlin'
SMB_ZA: 'Zentralarchiv Staatliche Museen zu Berlin Preußischer Kulturbesitz'
UAHW: 'Archiv der Martin-Luther-Universität Halle-Wittenberg, Halle / S.'
tei_dir: '%kernel.project_dir%/teis/sampletei/'
tei_dir: '%kernel.project_dir%/data/gitlab/'
# tei_dir: '%kernel.project_dir%/teis/sampletei/'
services:
# default configuration for services in *this* file
......
......@@ -41,7 +41,7 @@ class SolrIndexing extends Command
{
$output->writeln('Start solr indexing.');
// $this->simplexmlController->fetchTeis();
$this->simplexmlController->fetchTeis();
$this->simplexmlController->deleteSolrIndex();
$this->simplexmlController->tei2solr();
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment