pkiraly / qa-catalogue-web

QA Catalogue / A data quality dashboard for MARC catalogues
GNU General Public License v3.0
10 stars 6 forks source link

How to display multiple catalogues in the web application #214

Closed Phu2 closed 2 weeks ago

Phu2 commented 2 weeks ago

We have two catalogues and would them displayed in the web application. Is that feasible?

The README states:

Multiple catalogues can be configured in one file.

So i tried in config/configuration.cnf:

id=hbz
catalogue[hbz]=hbz
indexName[hbz]=hbz
dirName[hbz]=hbz

id=hbz-update
catalogue[hbz-update]=hbz_update
indexName[hbz-update]=hbz-update
dirName[hbz-update]=hbz-update

The web app shows only the latter one under the [BASE URL]/qa-catalogue/ path.

I also tried some Apache configurations as suggested in the README:

<Directory /var/www/html/hbz>
  AllowOverride All
  Order allow,deny
  allow from all
</Directory>

but no luck, requesting [BASE URL]/hbz/ results in 404.

It is not clear to me how this is intended to work. The web application is installed under /var/www/html/qa-catalogue. We are using the Docker setup of the main qa-catalogue project.

Phu2 commented 2 weeks ago

Related: https://github.com/pkiraly/qa-catalogue-web/issues/114

pkiraly commented 2 weeks ago

You should do it in two steps:

1) create symbolic links in web server directory:

$ ls -la /var/www/html/
... hbz -> /path/to/qa-catalogue-web
... hbz_update -> /path/to/qa-catalogue-web

2) adjust the config file

Please add the following line:

multitenant=true

remove the lines

id=hbz
id=hbz-update
Phu2 commented 2 weeks ago

Thanks, it works great! I had already created the symlinks out of suspicion. (In my case it has to be hbz-update not hbz_update) The multitenant config option is not documented anywhere, isn't it?

pkiraly commented 2 weeks ago

Unfortunately it is not documented indeed (as I aware nobody wanted to host multiple dashboards). I made a ticket for that so it will be documented, and there will be a section for this topic. Thanks for spotting this issue!

Phu2 commented 2 weeks ago

as I aware nobody wanted to host multiple dashboards

We are happy to be the first ones ;)

Phu2 commented 2 weeks ago

Closing