@igea/oac_frontend 1.0.55 → 1.0.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igea/oac_frontend",
3
- "version": "1.0.55",
3
+ "version": "1.0.57",
4
4
  "description": "Frontend service for the OAC project",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -100,7 +100,9 @@
100
100
  "confirm": "Confirm",
101
101
  "download": "Download",
102
102
  "select_instance": "Select an instance",
103
- "generated_output": "Generated output"
103
+ "generated_output": "Generated output",
104
+ "valid": "Valid",
105
+ "not_valid": "Not valid"
104
106
  }
105
107
  },
106
108
  "search": {
@@ -103,7 +103,9 @@
103
103
  "confirm": "Conferma",
104
104
  "download": "Scarica",
105
105
  "select_instance": "Seleziona un'istanza",
106
- "generated_output": "Output generato"
106
+ "generated_output": "Output generato",
107
+ "valid": "Valido",
108
+ "not_valid": "Non valido"
107
109
  }
108
110
  },
109
111
  "search": {
@@ -3,7 +3,7 @@ const {createApp} = Vue;
3
3
  const appId = 'investigation-app';
4
4
  const shaclId = 'shacl-form';
5
5
 
6
- const templateIRIOfIndagine = "http://diagnostica/indagine/$UUID$";
6
+ const templateIRIOfIndagine = "http://indagine/$SEQ1$";
7
7
  const templateIRIToExcludeFromSearch = [
8
8
  templateIRIOfIndagine
9
9
  ];
@@ -23,7 +23,7 @@ const OAC_VOCABOLARIES = [
23
23
  { "name": "Strumentazione", "key": "strumentazione", "class": "crm:E55_Type" },
24
24
  { "name": "Tafonomia e stato di conservazione", "key": "tafonomia-e-stato-di-conservazione", "class": "crm:E55_Type" },
25
25
  { "name": "Tecnica diagnostica", "key": "tecnica-diagnostica", "class": "crm:E55_Type" },
26
- { "name": "Tipo campione", "key": "Tipo-campione", "class": "crm:E55_Type" },
26
+ { "name": "Tipo campione", "key": "tipo-campione", "class": "crm:E55_Type" },
27
27
  { "name": "Tipo indagine", "key": "tipo-indagine", "class": "crm:E55_Type" },
28
28
  { "name": "Tipologia inquadramento cronologico", "key": "tipologia-inquadramento-cronologico", "class": "base:I2_Belief" },
29
29
  { "name": "Input", "key": "input", "class": "crm:E55_Type" },
@@ -95,7 +95,7 @@
95
95
  {% if user.role != 3 %}
96
96
  <!-- Buttons -->
97
97
  <div class="col-12 text-center mt-4">
98
- <button v-if="validForm" @click="save()" type="submit" class="btn btn-primary me-2">{{ t('investigation.new.submit') }}</button>
98
+
99
99
  <button style="margin-left:30px;" title="{{ t('investigation.new.download') }}"
100
100
  @click="download('xml')" type="button" class="btn btn-secondary">
101
101
  <span>RDF/XML</span><i class="fa-solid fa-file-arrow-down"></i>
@@ -105,12 +105,14 @@
105
105
  <span>TURTLE</span><i class="fa-solid fa-file-arrow-down"></i>
106
106
  </button>
107
107
 
108
+ <!--
108
109
  <button style="margin-left:30px;" title="{{ t('investigation.new.validate') }}"
109
110
  @click="validate()" type="button" class="btn btn-warning">
110
111
  <i class="fa-solid fa-certificate"></i>
111
112
  </button>
113
+ -->
112
114
 
113
- <button style="margin-left:30px;" title="{{ t('investigation.new.confirm') }}"
115
+ <button v-if="validForm" style="margin-left:30px;" title="{{ t('investigation.new.confirm') }}"
114
116
  @click="save()" type="button" class="btn btn-primary">
115
117
  <i class="fa-solid fa-save"></i>
116
118
  </button>
@@ -119,13 +121,16 @@
119
121
  @click="reset()" type="button" class="btn btn-info">
120
122
  <i class="fa-solid fa-broom"></i>
121
123
  </button>
124
+
122
125
  </div>
123
126
  {% if user.role in [0, 1] %}
124
127
  <fieldset id="shacl-output" style="margin-top:10px;
125
128
  border: solid 1px gray;
126
129
  border-radius: 10px;
127
130
  padding: 10px;">
128
- <legend>{{ t('investigation.new.generated_output') }}: [{@ validForm @}]</legend>
131
+ <legend>{{ t('investigation.new.generated_output') }}:
132
+ [{@ validForm ? '{{ t('investigation.new.valid') }}': '{{ t('investigation.new.not_valid') }}' @}]
133
+ </legend>
129
134
  <pre :style="outputStyle">{@ serializedForm @}</pre>
130
135
  </fieldset>
131
136
  {% endif %}
@@ -34,8 +34,9 @@
34
34
  <!-- The sparnatural web component with config attributes. -->
35
35
  <!-- See http://docs.sparnatural.eu/Javascript-integration.html#html-attributes-reference -->
36
36
  <spar-natural
37
- src="/backend/ontology/schema/ttl"
38
- endpoint="https://dbpedia.org/sparql"
37
+ src="/backend/ontology/schema/ttl2"
38
+ endpoint="/backend/fuseki/endpoint/sparql"
39
+ endpoint_="https://dbpedia.org/sparql"
39
40
  lang="en"
40
41
  defaultLang="en"
41
42
  distinct="true"