Skip to content

Commit 2777b48

Browse files
authored
Merge pull request #326 from mpsonntag/fixoview
[scripts/odmlview] Fix changed stylesheets Looks good!
2 parents ae2474d + 11188d1 commit 2777b48

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

odml/scripts/odml_view.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
the directory the server was started from. odML files can then be
77
viewed from there.
88
To properly render XML, an odML file may contain the element
9-
'<?xml-stylesheet type="text/xsl" href="odmlTerms.xsl"?>' where the
10-
'odmlTerms.xsl' stylesheet should reside in the same directory as the
9+
'<?xml-stylesheet type="text/xsl" href="odmlDocument.xsl"?>' where the
10+
'odmlDocument.xsl' stylesheet should reside in the same directory as the
1111
odML file to be rendered. By using the '--fetch' flag the latest version
1212
of this stylesheet will be downloaded from 'templates.g-node.org' to
1313
the current directory when starting up the service.
@@ -38,7 +38,8 @@
3838

3939
PORT = 8000
4040
REPOSITORY = "https://templates.g-node.org/_resources/"
41-
STYLESHEET = "odmlTerms.xsl"
41+
STYLESHEET = "odmlDocument.xsl"
42+
CSS = "odml_style.css"
4243

4344

4445
def download_file(repo, filename):
@@ -94,6 +95,8 @@ def main(args=None):
9495
if parser['--fetch'] and not os.path.exists(STYLESHEET):
9596
print("[Info] Downloading stylesheet '%s'" % STYLESHEET)
9697
download_file(REPOSITORY, STYLESHEET)
98+
print("[Info] Downloading stylesheet '%s'" % CSS)
99+
download_file(REPOSITORY, CSS)
97100

98101
server_port = int(parser['-p']) if parser['-p'] else PORT
99102

0 commit comments

Comments
 (0)