Browse Source

Mobile-friendly layout; content model updates.

scossu 2 weeks ago
parent
commit
de51619822
3 changed files with 22 additions and 8 deletions
  1. 1 0
      config/model/typedef/anything.lua
  2. 19 8
      config/model/typedef/artifact.lua
  3. 2 0
      templates/head_common.html

+ 1 - 0
config/model/typedef/anything.lua

@@ -32,6 +32,7 @@ return {
         --]]
         sub_id = {
             uri = "pas:submissionID",
+            label = "Submission ID",
             description = "Unique ID for the submission that the resource \z
                 was created or updated in.",
             type = "resource",

+ 19 - 8
config/model/typedef/artifact.lua

@@ -19,10 +19,9 @@ return {
         pref_rep = {
             uri = "pas:hasPreferredRepresentation",
             label = "Preferred representation",
-            description =
-                [[Preferred representation. Used to generate
-                a thumbnail (for a visual item) or sample (for non-visual
-                materials such as audio).]],
+            description = "Preferred representation. Used to generate \z
+                a thumbnail (for a visual item) or sample (for non-visual \z
+                materials such as audio).",
             type = "resource",
             range = {file = true},
         },
@@ -32,10 +31,22 @@ return {
             type = "resource",
             range = {file = true},
         },
-        location = {
-            uri = "pas:location",
-            label = "Location",
-            description = "Location related to the artifact.",
+        date = {
+            uri = "pas:date",
+            label = "Date",
+            description = "Date related to the artifact.",
+            type = "string",
+        },
+        location_descr = {
+            uri = "pas:locationDescription",
+            label = "Location description",
+            description = "Verbal description of the artifact's location.",
+            type = "string",
+        },
+        location_url = {
+            uri = "pas:locationUrl",
+            label = "Geolocation URL",
+            description = "Link to a map locating the artifact.",
             type = "string",
         },
     },

+ 2 - 0
templates/head_common.html

@@ -3,5 +3,7 @@
 <link rel="stylesheet" href="/css/normalize.min.css">
 <link rel="stylesheet" href="/css/milligram.min.css">
 <link rel="stylesheet" href="/css/pkar.css">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+
 <title><%= title %>&emsp;&#x2741;&emsp;<%= site_title %></title>