pkiraly / qa-catalogue

QA catalogue – a metadata quality assessment tool for library catalogue records (MARC, PICA)
GNU General Public License v3.0
76 stars 18 forks source link

ERROR: Failed to read analysis result. #462

Closed Phu2 closed 2 months ago

Phu2 commented 2 months ago

I have managed to run the indexing tasks by executing docker exec -it metadata-qa-marc ./catalogues/test.sh all-solr. In the Solr Admin web UI the test core is showing up with documents as expected.

However, the QA catalogue web application is showing

ERROR: Failed to read analysis result.

under the data tab. And further below:

rows=10&core=qa-catalogue&q=:&start=0&wt=json&q.op=AND&json.nl=map&json.wrf=?&facet=on&facet.limit=10

The name of the core is not correct. Setting catalogue=test in web-config/configuration.cnf seems to have no effect.

What am i missing here?

My ./catalogues/test.sh:

#!/usr/bin/env bash

. ./setdir.sh

NAME=test
TYPE=xml
if [[ $TYPE == "marc" ]]; then
  echo "marc"
  TYPE_PARAMS="--marcVersion DNB"
  MARC_DIR=${BASE_INPUT_DIR}/test/marc
  MASK=*.mrc
elif [[ $TYPE == "xml" ]]; then
  echo "xml"
  TYPE_PARAMS="--marcVersion DNB --marcxml"
  MARC_DIR=${BASE_INPUT_DIR}/test/marc
  MASK=*.xml
else
  echo "else: ${TYPE}"
fi

. ./common-script
Phu2 commented 2 months ago

In web-config/configuration.cnf more configs are needed:

catalogue=test
indexName=test
dirName=test

In addition, you need to create a corresponding class inside the container: /var/www/html/qa-catalogue/classes/catalogue/Test.sh