diff --git a/src/website/settings.py b/src/website/settings.py index abb4d11..118ff42 100644 --- a/src/website/settings.py +++ b/src/website/settings.py @@ -24,7 +24,7 @@ # xml stylesheets are stored here: XML_STYLESHEET_DIR = XML_DIR / "stylesheets" # publications xml files are stored here: -PUBL_XML_DIR = XML_INPUT_DIR / "publications" +PUBL_XML_DIR = RES_DIR / "publications" PUBL_STATIC_DIR = RES_DIR / "static" / "publications" diff --git a/src/website/views.py b/src/website/views.py index c9f33b5..b253063 100644 --- a/src/website/views.py +++ b/src/website/views.py @@ -10,26 +10,29 @@ from pathlib import Path -def res_path_to_xmldb_collection( path : Path ): - return "/db" / path . relative_to( settings.XML_DIR ) +def res_path_to_xmldb_resources( path : Path ): + return "/db/apps/eoa/xml" / path . relative_to( settings.XML_DIR ) + +def res_path_to_xmldb_publications( path : Path ): + return "/db/apps/eoa/publications" / path . relative_to( settings.PUBL_XML_DIR ) publication_collection = \ - res_path_to_xmldb_collection( settings.PUBL_XML_DIR ) + res_path_to_xmldb_publications( settings.PUBL_XML_DIR ) # Path( "/db/publications" ) tei2html_index_stylesheet = \ - res_path_to_xmldb_collection( + res_path_to_xmldb_resources( settings.XML_STYLESHEET_DIR / "tei2html/tei2html_publ_frontpage.xsl" ) # Path( "/db/stylesheets/tei2html/tei2html_publ_frontpage.xsl" ) tei2html_chapter_stylesheet = \ - res_path_to_xmldb_collection( + res_path_to_xmldb_resources( settings.XML_STYLESHEET_DIR / "tei2html/tei2html_chapter.xsl" ) # Path( "/db/stylesheets/tei2html/tei2html_chapter.xsl" ) platform_name = "dummy-platform" platform_uri = "www.dummy-platform.com" -aux_uri = "/db/aux" +aux_uri = "/db/apps/eoa/xml/aux" def publication( request,