diff --git a/dhp-applications/dhp-mdstore-manager-app/src/main/resources/schema.sql b/dhp-applications/dhp-mdstore-manager-app/src/main/resources/schema.sql index 136bcd637..56e970d1b 100644 --- a/dhp-applications/dhp-mdstore-manager-app/src/main/resources/schema.sql +++ b/dhp-applications/dhp-mdstore-manager-app/src/main/resources/schema.sql @@ -43,7 +43,7 @@ FROM mdstores md LEFT OUTER JOIN mdstore_current_versions cv ON (md.id = cv.mdstore) LEFT OUTER JOIN mdstore_versions v1 ON (cv.current_version = v1.id) - LEFT OUTER JOIN mdstore_versions v2 ON (md.id = v2.id) + LEFT OUTER JOIN mdstore_versions v2 ON (md.id = v2.mdstore) GROUP BY md.id, md.format, md.layout, diff --git a/dhp-applications/dhp-mdstore-manager-app/src/main/resources/static/index.html b/dhp-applications/dhp-mdstore-manager-app/src/main/resources/static/index.html index 85a460b1c..5e3590950 100644 --- a/dhp-applications/dhp-mdstore-manager-app/src/main/resources/static/index.html +++ b/dhp-applications/dhp-mdstore-manager-app/src/main/resources/static/index.html @@ -12,39 +12,97 @@
+ +ID | +Format / Layout / Interpretation | +Datasource | +Last Update | +Size | +Versions | +Operations | +
---|---|---|---|---|---|---|
{{md.id}} | +{{md.format}} / {{md.layout}} / {{md.interpretation}} | +
+
+ {{md.datasourceName}} + + id: {{md.datasourceId}} + api: {{md.apiId}} + + + |
+ {{md.lastUpdate | date:"MMM dd, yyyy 'at' HH:mm"}} | +{{md.size}} | ++ {{md.numberOfVersions}} version(s) + | ++ + + | +
ID | -Format / Layout / Interpretation | -Datasource | -Current Version | -All versions | -Last Update | -Size | -|
---|---|---|---|---|---|---|---|
{{md.id}} | -{{md.format}} / {{md.layout}} / {{md.interpretation}} | -
-
- {{md.datasourceName}} - - id: {{md.datasourceId}} - api: {{md.apiId}} - - - |
- {{md.apiId}} | -{{md.currentVersion}} | -{{md.numberOfVersions}} | -{{md.lastUpdate}} | -{{md.size}} | -