Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Put eoa related xml files into apps collection
  • Loading branch information
kthoden committed Sep 11, 2020
1 parent 3590a9d commit 59b3bb2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/website/settings.py
Expand Up @@ -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"

Expand Down
15 changes: 9 additions & 6 deletions src/website/views.py
Expand Up @@ -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,
Expand Down

0 comments on commit 59b3bb2

Please sign in to comment.