Skip to content
Snippets Groups Projects
Commit 562a4748 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

feat: Make observation and timeseries details more similar

parent 0f938946
No related branches found
No related tags found
No related merge requests found
Showing
with 381 additions and 346 deletions
......@@ -18,5 +18,9 @@ VIPSWeb/static/test/dot_green.png
VIPSWeb/static/test/oatFloweringModelForm.html
VIPSWeb.code-workspace
venv
.venv
*.bkp
ipmd/.$IPMD_DSS_Metadata_structure.drawio.bkp
.DS_Store
.idea
makefile
\ No newline at end of file
......@@ -793,20 +793,21 @@ td.dateCell {
background-color: white;
}
#observationTimeSeries .label {
color: darkgrey;
#observationTimeSeriesDetails .label, #observationDetails .label {
color: #C9C9C9;
font-size: 1.1em;
padding: 0;
font-weight: lighter;
font-weight: normal;
}
#observationTimeSeries .description {
padding: 3px;
margin-top: 3px;
margin-bottom: 15px;
font-style: italic;
#observationData table {
margin: 8px 0px;
}
#observationData td {
border: 1px solid #C9C9C9;
padding: 2px;
}
table.messageTable tr, table.messageTable td
{
......
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-24 12:43+0200\n"
"POT-Creation-Date: 2024-06-25 13:59+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -18,52 +18,59 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: templates/observations/detail.html:25 templates/observations/detail.html:28
#: templates/observations/detail.html:25 templates/observations/detail.html:30
msgid "Observation"
msgstr ""
#: templates/observations/detail.html:29
#: templates/observations/timeseries.html:28
msgid "View all observations"
msgstr ""
#: templates/observations/detail.html:29
msgid "View all observations in time series"
msgstr ""
#: templates/observations/detail.html:32 templates/observations/index.html:46
#: templates/observations/detail.html:34 templates/observations/index.html:46
#: templates/observations/index.html:68
#: templates/observations/index_old.html:63
#: templates/observations/timeseries.html:31
#: templates/observations/timeseries.html:32
msgid "Organism"
msgstr ""
#: templates/observations/detail.html:34 templates/observations/index.html:50
#: templates/observations/detail.html:36 templates/observations/index.html:50
#: templates/observations/index.html:69
#: templates/observations/index_old.html:64
#: templates/observations/timeseries.html:33
#: templates/observations/timeseries.html:34
msgid "Crop"
msgstr ""
#: templates/observations/detail.html:36 templates/observations/index.html:67
#: templates/observations/detail.html:38 templates/observations/index.html:67
#: templates/observations/index_old.html:62
msgid "Date of observation"
msgstr ""
#: templates/observations/detail.html:40
msgid "Observation data"
#: templates/observations/detail.html:41 templates/observations/index.html:71
#: templates/observations/timeseries.html:23
#: templates/observations/timeseries.html:28
msgid "Time series"
msgstr ""
#: templates/observations/detail.html:97
msgid "Observation was not quantified"
#: templates/observations/detail.html:45
#: templates/observations/timeseries.html:36
msgid "Location"
msgstr ""
#: templates/observations/detail.html:48
msgid "Observation data"
msgstr ""
#: templates/observations/detail.html:101
#: templates/observations/detail.html:51
msgid "Illustrations"
msgstr ""
#: templates/observations/detail.html:130
#: templates/observations/timeseries.html:151
#: templates/observations/detail.html:62
#: templates/observations/timeseries.html:52
msgid "View all observations"
msgstr ""
#: templates/observations/detail.html:119
msgid "Observation was not quantified"
msgstr ""
#: templates/observations/detail.html:157
#: templates/observations/timeseries.html:161
msgid "Map view not available"
msgstr ""
......@@ -94,6 +101,10 @@ msgstr ""
msgid "Heading"
msgstr ""
#: templates/observations/index.html:72
msgid "Details"
msgstr ""
#: templates/observations/index_old.html:33
msgid "All pests"
msgstr ""
......@@ -118,15 +129,6 @@ msgstr ""
msgid "View details"
msgstr ""
#: templates/observations/timeseries.html:23
#: templates/observations/timeseries.html:29
msgid "Time series"
msgstr ""
#: templates/observations/timeseries.html:35
msgid "Location"
msgstr ""
#: templates/observations/timeseries.html:37
#: templates/observations/timeseries.html:38
msgid "Number of observations"
msgstr ""
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-24 12:43+0200\n"
"POT-Creation-Date: 2024-06-25 13:59+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -26,18 +26,14 @@ msgstr ""
msgid "in"
msgstr ""
#: static/observations/js/observationList.js:368
msgid "Details"
msgstr ""
#: static/observations/js/observationList.js:638
#: static/observations/js/observationList.js:637
msgid "Days since observation"
msgstr ""
#: static/observations/js/observationList.js:641
#: static/observations/js/observationList.js:640
msgid "Days"
msgstr ""
#: static/observations/js/observationList.js:643
#: static/observations/js/observationList.js:642
msgid "Older"
msgstr ""
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-24 12:43+0200\n"
"POT-Creation-Date: 2024-06-25 13:59+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -19,52 +19,59 @@ msgstr ""
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
#: templates/observations/detail.html:25 templates/observations/detail.html:28
#: templates/observations/detail.html:25 templates/observations/detail.html:30
msgid "Observation"
msgstr ""
#: templates/observations/detail.html:29
#: templates/observations/timeseries.html:28
msgid "View all observations"
msgstr ""
#: templates/observations/detail.html:29
msgid "View all observations in time series"
msgstr ""
#: templates/observations/detail.html:32 templates/observations/index.html:46
#: templates/observations/detail.html:34 templates/observations/index.html:46
#: templates/observations/index.html:68
#: templates/observations/index_old.html:63
#: templates/observations/timeseries.html:31
#: templates/observations/timeseries.html:32
msgid "Organism"
msgstr ""
#: templates/observations/detail.html:34 templates/observations/index.html:50
#: templates/observations/detail.html:36 templates/observations/index.html:50
#: templates/observations/index.html:69
#: templates/observations/index_old.html:64
#: templates/observations/timeseries.html:33
#: templates/observations/timeseries.html:34
msgid "Crop"
msgstr ""
#: templates/observations/detail.html:36 templates/observations/index.html:67
#: templates/observations/detail.html:38 templates/observations/index.html:67
#: templates/observations/index_old.html:62
msgid "Date of observation"
msgstr ""
#: templates/observations/detail.html:40
msgid "Observation data"
#: templates/observations/detail.html:41 templates/observations/index.html:71
#: templates/observations/timeseries.html:23
#: templates/observations/timeseries.html:28
msgid "Time series"
msgstr ""
#: templates/observations/detail.html:97
msgid "Observation was not quantified"
#: templates/observations/detail.html:45
#: templates/observations/timeseries.html:36
msgid "Location"
msgstr ""
#: templates/observations/detail.html:48
msgid "Observation data"
msgstr ""
#: templates/observations/detail.html:101
#: templates/observations/detail.html:51
msgid "Illustrations"
msgstr ""
#: templates/observations/detail.html:130
#: templates/observations/timeseries.html:151
#: templates/observations/detail.html:62
#: templates/observations/timeseries.html:52
msgid "View all observations"
msgstr ""
#: templates/observations/detail.html:119
msgid "Observation was not quantified"
msgstr ""
#: templates/observations/detail.html:157
#: templates/observations/timeseries.html:161
msgid "Map view not available"
msgstr ""
......@@ -95,6 +102,10 @@ msgstr ""
msgid "Heading"
msgstr ""
#: templates/observations/index.html:72
msgid "Details"
msgstr ""
#: templates/observations/index_old.html:33
msgid "All pests"
msgstr ""
......@@ -119,15 +130,6 @@ msgstr ""
msgid "View details"
msgstr ""
#: templates/observations/timeseries.html:23
#: templates/observations/timeseries.html:29
msgid "Time series"
msgstr ""
#: templates/observations/timeseries.html:35
msgid "Location"
msgstr ""
#: templates/observations/timeseries.html:37
#: templates/observations/timeseries.html:38
msgid "Number of observations"
msgstr ""
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-24 12:43+0200\n"
"POT-Creation-Date: 2024-06-25 13:59+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -27,18 +27,14 @@ msgstr ""
msgid "in"
msgstr ""
#: static/observations/js/observationList.js:368
msgid "Details"
msgstr ""
#: static/observations/js/observationList.js:638
#: static/observations/js/observationList.js:637
msgid "Days since observation"
msgstr ""
#: static/observations/js/observationList.js:641
#: static/observations/js/observationList.js:640
msgid "Days"
msgstr ""
#: static/observations/js/observationList.js:643
#: static/observations/js/observationList.js:642
msgid "Older"
msgstr ""
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-24 12:43+0200\n"
"POT-Creation-Date: 2024-06-25 13:59+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -18,52 +18,59 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: templates/observations/detail.html:25 templates/observations/detail.html:28
#: templates/observations/detail.html:25 templates/observations/detail.html:30
msgid "Observation"
msgstr ""
#: templates/observations/detail.html:29
#: templates/observations/timeseries.html:28
msgid "View all observations"
msgstr ""
#: templates/observations/detail.html:29
msgid "View all observations in time series"
msgstr ""
#: templates/observations/detail.html:32 templates/observations/index.html:46
#: templates/observations/detail.html:34 templates/observations/index.html:46
#: templates/observations/index.html:68
#: templates/observations/index_old.html:63
#: templates/observations/timeseries.html:31
#: templates/observations/timeseries.html:32
msgid "Organism"
msgstr ""
#: templates/observations/detail.html:34 templates/observations/index.html:50
#: templates/observations/detail.html:36 templates/observations/index.html:50
#: templates/observations/index.html:69
#: templates/observations/index_old.html:64
#: templates/observations/timeseries.html:33
#: templates/observations/timeseries.html:34
msgid "Crop"
msgstr ""
#: templates/observations/detail.html:36 templates/observations/index.html:67
#: templates/observations/detail.html:38 templates/observations/index.html:67
#: templates/observations/index_old.html:62
msgid "Date of observation"
msgstr ""
#: templates/observations/detail.html:40
msgid "Observation data"
#: templates/observations/detail.html:41 templates/observations/index.html:71
#: templates/observations/timeseries.html:23
#: templates/observations/timeseries.html:28
msgid "Time series"
msgstr ""
#: templates/observations/detail.html:97
msgid "Observation was not quantified"
#: templates/observations/detail.html:45
#: templates/observations/timeseries.html:36
msgid "Location"
msgstr ""
#: templates/observations/detail.html:48
msgid "Observation data"
msgstr ""
#: templates/observations/detail.html:101
#: templates/observations/detail.html:51
msgid "Illustrations"
msgstr ""
#: templates/observations/detail.html:130
#: templates/observations/timeseries.html:151
#: templates/observations/detail.html:62
#: templates/observations/timeseries.html:52
msgid "View all observations"
msgstr ""
#: templates/observations/detail.html:119
msgid "Observation was not quantified"
msgstr ""
#: templates/observations/detail.html:157
#: templates/observations/timeseries.html:161
msgid "Map view not available"
msgstr ""
......@@ -94,6 +101,10 @@ msgstr ""
msgid "Heading"
msgstr ""
#: templates/observations/index.html:72
msgid "Details"
msgstr ""
#: templates/observations/index_old.html:33
msgid "All pests"
msgstr ""
......@@ -118,15 +129,6 @@ msgstr ""
msgid "View details"
msgstr ""
#: templates/observations/timeseries.html:23
#: templates/observations/timeseries.html:29
msgid "Time series"
msgstr ""
#: templates/observations/timeseries.html:35
msgid "Location"
msgstr ""
#: templates/observations/timeseries.html:37
#: templates/observations/timeseries.html:38
msgid "Number of observations"
msgstr ""
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-24 12:43+0200\n"
"POT-Creation-Date: 2024-06-25 13:59+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -26,18 +26,14 @@ msgstr ""
msgid "in"
msgstr ""
#: static/observations/js/observationList.js:368
msgid "Details"
msgstr ""
#: static/observations/js/observationList.js:638
#: static/observations/js/observationList.js:637
msgid "Days since observation"
msgstr ""
#: static/observations/js/observationList.js:641
#: static/observations/js/observationList.js:640
msgid "Days"
msgstr ""
#: static/observations/js/observationList.js:643
#: static/observations/js/observationList.js:642
msgid "Older"
msgstr ""
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-24 12:43+0200\n"
"POT-Creation-Date: 2024-06-25 13:59+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -18,52 +18,59 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: templates/observations/detail.html:25 templates/observations/detail.html:28
#: templates/observations/detail.html:25 templates/observations/detail.html:30
msgid "Observation"
msgstr ""
#: templates/observations/detail.html:29
#: templates/observations/timeseries.html:28
msgid "View all observations"
msgstr ""
#: templates/observations/detail.html:29
msgid "View all observations in time series"
msgstr ""
#: templates/observations/detail.html:32 templates/observations/index.html:46
#: templates/observations/detail.html:34 templates/observations/index.html:46
#: templates/observations/index.html:68
#: templates/observations/index_old.html:63
#: templates/observations/timeseries.html:31
#: templates/observations/timeseries.html:32
msgid "Organism"
msgstr ""
#: templates/observations/detail.html:34 templates/observations/index.html:50
#: templates/observations/detail.html:36 templates/observations/index.html:50
#: templates/observations/index.html:69
#: templates/observations/index_old.html:64
#: templates/observations/timeseries.html:33
#: templates/observations/timeseries.html:34
msgid "Crop"
msgstr ""
#: templates/observations/detail.html:36 templates/observations/index.html:67
#: templates/observations/detail.html:38 templates/observations/index.html:67
#: templates/observations/index_old.html:62
msgid "Date of observation"
msgstr ""
#: templates/observations/detail.html:40
msgid "Observation data"
#: templates/observations/detail.html:41 templates/observations/index.html:71
#: templates/observations/timeseries.html:23
#: templates/observations/timeseries.html:28
msgid "Time series"
msgstr ""
#: templates/observations/detail.html:97
msgid "Observation was not quantified"
#: templates/observations/detail.html:45
#: templates/observations/timeseries.html:36
msgid "Location"
msgstr ""
#: templates/observations/detail.html:48
msgid "Observation data"
msgstr ""
#: templates/observations/detail.html:101
#: templates/observations/detail.html:51
msgid "Illustrations"
msgstr ""
#: templates/observations/detail.html:130
#: templates/observations/timeseries.html:151
#: templates/observations/detail.html:62
#: templates/observations/timeseries.html:52
msgid "View all observations"
msgstr ""
#: templates/observations/detail.html:119
msgid "Observation was not quantified"
msgstr ""
#: templates/observations/detail.html:157
#: templates/observations/timeseries.html:161
msgid "Map view not available"
msgstr ""
......@@ -94,6 +101,10 @@ msgstr ""
msgid "Heading"
msgstr ""
#: templates/observations/index.html:72
msgid "Details"
msgstr ""
#: templates/observations/index_old.html:33
msgid "All pests"
msgstr ""
......@@ -118,15 +129,6 @@ msgstr ""
msgid "View details"
msgstr ""
#: templates/observations/timeseries.html:23
#: templates/observations/timeseries.html:29
msgid "Time series"
msgstr ""
#: templates/observations/timeseries.html:35
msgid "Location"
msgstr ""
#: templates/observations/timeseries.html:37
#: templates/observations/timeseries.html:38
msgid "Number of observations"
msgstr ""
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-24 12:43+0200\n"
"POT-Creation-Date: 2024-06-25 13:59+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -26,18 +26,14 @@ msgstr ""
msgid "in"
msgstr ""
#: static/observations/js/observationList.js:368
msgid "Details"
msgstr ""
#: static/observations/js/observationList.js:638
#: static/observations/js/observationList.js:637
msgid "Days since observation"
msgstr ""
#: static/observations/js/observationList.js:641
#: static/observations/js/observationList.js:640
msgid "Days"
msgstr ""
#: static/observations/js/observationList.js:643
#: static/observations/js/observationList.js:642
msgid "Older"
msgstr ""
No preview for this file type
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-24 12:43+0200\n"
"POT-Creation-Date: 2024-06-25 13:59+0200\n"
"PO-Revision-Date: 2024-06-06 13:42+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
......@@ -19,52 +19,59 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.4.2\n"
#: templates/observations/detail.html:25 templates/observations/detail.html:28
#: templates/observations/detail.html:25 templates/observations/detail.html:30
msgid "Observation"
msgstr "Observasjon"
#: templates/observations/detail.html:29
#: templates/observations/timeseries.html:28
msgid "View all observations"
msgstr "Se alle observasjoner"
#: templates/observations/detail.html:29
msgid "View all observations in time series"
msgstr "Se alle observasjoner i tidsserie"
#: templates/observations/detail.html:32 templates/observations/index.html:46
#: templates/observations/detail.html:34 templates/observations/index.html:46
#: templates/observations/index.html:68
#: templates/observations/index_old.html:63
#: templates/observations/timeseries.html:31
#: templates/observations/timeseries.html:32
msgid "Organism"
msgstr "Organisme"
#: templates/observations/detail.html:34 templates/observations/index.html:50
#: templates/observations/detail.html:36 templates/observations/index.html:50
#: templates/observations/index.html:69
#: templates/observations/index_old.html:64
#: templates/observations/timeseries.html:33
#: templates/observations/timeseries.html:34
msgid "Crop"
msgstr "Kultur"
#: templates/observations/detail.html:36 templates/observations/index.html:67
#: templates/observations/detail.html:38 templates/observations/index.html:67
#: templates/observations/index_old.html:62
msgid "Date of observation"
msgstr "Observasjonsdato"
#: templates/observations/detail.html:40
#: templates/observations/detail.html:41 templates/observations/index.html:71
#: templates/observations/timeseries.html:23
#: templates/observations/timeseries.html:28
msgid "Time series"
msgstr "Tidsserie"
#: templates/observations/detail.html:45
#: templates/observations/timeseries.html:36
msgid "Location"
msgstr "Sted"
#: templates/observations/detail.html:48
msgid "Observation data"
msgstr "Observasjonsdata"
#: templates/observations/detail.html:97
msgid "Observation was not quantified"
msgstr "Observasjonen ble ikke kvantifisert"
#: templates/observations/detail.html:101
#: templates/observations/detail.html:51
msgid "Illustrations"
msgstr "Illustrasjoner"
#: templates/observations/detail.html:130
#: templates/observations/timeseries.html:151
#: templates/observations/detail.html:62
#: templates/observations/timeseries.html:52
msgid "View all observations"
msgstr "Se alle observasjoner"
#: templates/observations/detail.html:119
msgid "Observation was not quantified"
msgstr "Observasjonen ble ikke kvantifisert"
#: templates/observations/detail.html:157
#: templates/observations/timeseries.html:161
msgid "Map view not available"
msgstr "Kartvisning ikke tilgjengelig"
......@@ -93,7 +100,11 @@ msgstr "Gjør utvalg"
#: templates/observations/index.html:70
#: templates/observations/index_old.html:65
msgid "Heading"
msgstr "Overskrift"
msgstr "Tittel"
#: templates/observations/index.html:72
msgid "Details"
msgstr "Detaljer"
#: templates/observations/index_old.html:33
msgid "All pests"
......@@ -119,24 +130,15 @@ msgstr "Kultur"
msgid "View details"
msgstr "Se detaljer"
#: templates/observations/timeseries.html:23
#: templates/observations/timeseries.html:29
msgid "Time series"
msgstr "Tidsserie"
#: templates/observations/timeseries.html:35
msgid "Location"
msgstr "Sted"
#: templates/observations/timeseries.html:37
#: templates/observations/timeseries.html:38
msgid "Number of observations"
msgstr "Antall observasjoner"
#~ msgid "Title"
#~ msgstr "Tittel"
msgid "Title"
msgstr "Tittel"
#~ msgid "Description"
#~ msgstr "Beskrivelse"
msgid "Description"
msgstr "Beskrivelse"
#~ msgid "Observer"
#~ msgstr "Observatør"
msgid "Observer"
msgstr "Observatør"
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-24 12:43+0200\n"
"POT-Creation-Date: 2024-06-25 13:59+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -26,18 +26,17 @@ msgstr "Observasjon(er) funnet på lokalitet"
msgid "in"
msgstr "i"
#: static/observations/js/observationList.js:368
msgid "Details"
msgstr "Detaljer"
#: static/observations/js/observationList.js:638
#: static/observations/js/observationList.js:637
msgid "Days since observation"
msgstr "Dager siden observasjon"
#: static/observations/js/observationList.js:641
#: static/observations/js/observationList.js:640
msgid "Days"
msgstr "Dager"
#: static/observations/js/observationList.js:643
#: static/observations/js/observationList.js:642
msgid "Older"
msgstr "Eldre"
msgid "Details"
msgstr "Detaljer"
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-24 12:43+0200\n"
"POT-Creation-Date: 2024-06-25 13:59+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -18,52 +18,59 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: templates/observations/detail.html:25 templates/observations/detail.html:28
#: templates/observations/detail.html:25 templates/observations/detail.html:30
msgid "Observation"
msgstr ""
#: templates/observations/detail.html:29
#: templates/observations/timeseries.html:28
msgid "View all observations"
msgstr ""
#: templates/observations/detail.html:29
msgid "View all observations in time series"
msgstr ""
#: templates/observations/detail.html:32 templates/observations/index.html:46
#: templates/observations/detail.html:34 templates/observations/index.html:46
#: templates/observations/index.html:68
#: templates/observations/index_old.html:63
#: templates/observations/timeseries.html:31
#: templates/observations/timeseries.html:32
msgid "Organism"
msgstr ""
#: templates/observations/detail.html:34 templates/observations/index.html:50
#: templates/observations/detail.html:36 templates/observations/index.html:50
#: templates/observations/index.html:69
#: templates/observations/index_old.html:64
#: templates/observations/timeseries.html:33
#: templates/observations/timeseries.html:34
msgid "Crop"
msgstr ""
#: templates/observations/detail.html:36 templates/observations/index.html:67
#: templates/observations/detail.html:38 templates/observations/index.html:67
#: templates/observations/index_old.html:62
msgid "Date of observation"
msgstr ""
#: templates/observations/detail.html:40
msgid "Observation data"
#: templates/observations/detail.html:41 templates/observations/index.html:71
#: templates/observations/timeseries.html:23
#: templates/observations/timeseries.html:28
msgid "Time series"
msgstr ""
#: templates/observations/detail.html:97
msgid "Observation was not quantified"
#: templates/observations/detail.html:45
#: templates/observations/timeseries.html:36
msgid "Location"
msgstr ""
#: templates/observations/detail.html:48
msgid "Observation data"
msgstr ""
#: templates/observations/detail.html:101
#: templates/observations/detail.html:51
msgid "Illustrations"
msgstr ""
#: templates/observations/detail.html:130
#: templates/observations/timeseries.html:151
#: templates/observations/detail.html:62
#: templates/observations/timeseries.html:52
msgid "View all observations"
msgstr ""
#: templates/observations/detail.html:119
msgid "Observation was not quantified"
msgstr ""
#: templates/observations/detail.html:157
#: templates/observations/timeseries.html:161
msgid "Map view not available"
msgstr ""
......@@ -94,6 +101,10 @@ msgstr ""
msgid "Heading"
msgstr ""
#: templates/observations/index.html:72
msgid "Details"
msgstr ""
#: templates/observations/index_old.html:33
msgid "All pests"
msgstr ""
......@@ -118,15 +129,6 @@ msgstr ""
msgid "View details"
msgstr ""
#: templates/observations/timeseries.html:23
#: templates/observations/timeseries.html:29
msgid "Time series"
msgstr ""
#: templates/observations/timeseries.html:35
msgid "Location"
msgstr ""
#: templates/observations/timeseries.html:37
#: templates/observations/timeseries.html:38
msgid "Number of observations"
msgstr ""
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-24 12:43+0200\n"
"POT-Creation-Date: 2024-06-25 13:59+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -26,18 +26,14 @@ msgstr ""
msgid "in"
msgstr ""
#: static/observations/js/observationList.js:368
msgid "Details"
msgstr ""
#: static/observations/js/observationList.js:638
#: static/observations/js/observationList.js:637
msgid "Days since observation"
msgstr ""
#: static/observations/js/observationList.js:641
#: static/observations/js/observationList.js:640
msgid "Days"
msgstr ""
#: static/observations/js/observationList.js:643
#: static/observations/js/observationList.js:642
msgid "Older"
msgstr ""
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-24 12:43+0200\n"
"POT-Creation-Date: 2024-06-25 13:59+0200\n"
"PO-Revision-Date: 2016-10-27 11:26+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
......@@ -17,56 +17,61 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7\n"
#: templates/observations/detail.html:25 templates/observations/detail.html:28
#: templates/observations/detail.html:25 templates/observations/detail.html:30
msgid "Observation"
msgstr "观测"
#: templates/observations/detail.html:29
#: templates/observations/timeseries.html:28
msgid "View all observations"
msgstr "查看所有观测"
#: templates/observations/detail.html:29
#, fuzzy
#| msgid "View all observations"
msgid "View all observations in time series"
msgstr "查看所有观测"
#: templates/observations/detail.html:32 templates/observations/index.html:46
#: templates/observations/detail.html:34 templates/observations/index.html:46
#: templates/observations/index.html:68
#: templates/observations/index_old.html:63
#: templates/observations/timeseries.html:31
#: templates/observations/timeseries.html:32
msgid "Organism"
msgstr "生物"
#: templates/observations/detail.html:34 templates/observations/index.html:50
#: templates/observations/detail.html:36 templates/observations/index.html:50
#: templates/observations/index.html:69
#: templates/observations/index_old.html:64
#: templates/observations/timeseries.html:33
#: templates/observations/timeseries.html:34
msgid "Crop"
msgstr "作物"
#: templates/observations/detail.html:36 templates/observations/index.html:67
#: templates/observations/detail.html:38 templates/observations/index.html:67
#: templates/observations/index_old.html:62
msgid "Date of observation"
msgstr "观测时间"
#: templates/observations/detail.html:40
#: templates/observations/detail.html:41 templates/observations/index.html:71
#: templates/observations/timeseries.html:23
#: templates/observations/timeseries.html:28
msgid "Time series"
msgstr ""
#: templates/observations/detail.html:45
#: templates/observations/timeseries.html:36
msgid "Location"
msgstr ""
#: templates/observations/detail.html:48
msgid "Observation data"
msgstr "观测数据"
#: templates/observations/detail.html:97
msgid "Observation was not quantified"
msgstr "观测没有定量化"
#: templates/observations/detail.html:101
#: templates/observations/detail.html:51
#, fuzzy
#| msgid "Observations"
msgid "Illustrations"
msgstr "观测"
#: templates/observations/detail.html:130
#: templates/observations/timeseries.html:151
#: templates/observations/detail.html:62
#: templates/observations/timeseries.html:52
msgid "View all observations"
msgstr "查看所有观测"
#: templates/observations/detail.html:119
msgid "Observation was not quantified"
msgstr "观测没有定量化"
#: templates/observations/detail.html:157
#: templates/observations/timeseries.html:161
msgid "Map view not available"
msgstr ""
......@@ -97,6 +102,12 @@ msgstr ""
msgid "Heading"
msgstr "标题"
#: templates/observations/index.html:72
#, fuzzy
#| msgid "View details"
msgid "Details"
msgstr "看细节"
#: templates/observations/index_old.html:33
msgid "All pests"
msgstr "所有病虫害"
......@@ -123,20 +134,16 @@ msgstr "作物"
msgid "View details"
msgstr "看细节"
#: templates/observations/timeseries.html:23
#: templates/observations/timeseries.html:29
msgid "Time series"
msgstr ""
#: templates/observations/timeseries.html:35
msgid "Location"
msgstr ""
#: templates/observations/timeseries.html:37
#: templates/observations/timeseries.html:38
#, fuzzy
#| msgid "Date of observation"
msgid "Number of observations"
msgstr "观测时间"
#, fuzzy
#~| msgid "View all observations"
#~ msgid "View all observations in time series"
#~ msgstr "查看所有观测"
#~ msgid "Observer"
#~ msgstr "观测者"
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-24 12:43+0200\n"
"POT-Creation-Date: 2024-06-25 13:59+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -26,18 +26,14 @@ msgstr ""
msgid "in"
msgstr ""
#: static/observations/js/observationList.js:368
msgid "Details"
msgstr ""
#: static/observations/js/observationList.js:638
#: static/observations/js/observationList.js:637
msgid "Days since observation"
msgstr ""
#: static/observations/js/observationList.js:641
#: static/observations/js/observationList.js:640
msgid "Days"
msgstr ""
#: static/observations/js/observationList.js:643
#: static/observations/js/observationList.js:642
msgid "Older"
msgstr ""
......@@ -24,27 +24,45 @@
{% load i18n %}
{% block title%}{% trans "Observation" %}{%endblock%}
{% block content %}
<div class="singleBlockContainer">
<h1>{% trans "Observation" %}</h1>
<p><a href="/observations" class="btn btn-default back" role="button">{% trans "View all observations" %}</a> <a id="timeSeriesLink" class="btn btn-default back" role="button">{% trans "View all observations in time series" %}</a></p>
<div id="observationDetails" class="singleBlockContainer">
<div class="row">
<div class="col-md-6">
<h4>{% trans "Organism" %}</h4>
<div class="col-md-5">
<p class="label">{% trans "Observation" %} </p>
<h1 style="margin-top: 4px;margin-bottom: 30px"><span id="observationHeading"></span></h1>
<p class="label" id="observationTextLabel"></p>
<p id="observationText"></p>
<p class="label">{% trans "Organism" %}</p>
<p id="organismName"></p>
<h4>{% trans "Crop" %}</h4>
<p class="label">{% trans "Crop" %}</p>
<p id="cropOrganismName"></p>
<h4>{% trans "Date of observation" %}</h4>
<p class="label">{% trans "Date of observation" %}</h4>
<p id="timeOfObservation"></p>
<h2 id="observationHeading"></h2>
<p id="observationText"></p>
<h2>{% trans "Observation data" %}</h2>
<div id="observationData"></div>
<div id="observationIllustration"></div>
<div id="timeSeriesInfo">
<p class="label">{% trans "Time series" %}</p>
<p id="timeSeries"></p>
</div>
<div id="locationInfo">
<p class="label">{% trans "Location" %}</p>
<p id="location"></p>
</div>
<p class="label">{% trans "Observation data" %}</p>
<p id="observationData"></p>
<div id="illustrationInfo">
<p class="label">{% trans "Illustrations" %}</p>
<div id="observationIllustration"></div>
</div>
</div>
<div class="col-md-6">
<div class="col-md-7">
<div id="observationViewMap" class="map" style="height: 400px;"></div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<p style="margin-top: 15px">
<a href="/observations" class="btn btn-default back" role="button">{% trans "View all observations" %}</a>
</p>
</div>
</div>
<div style="display: none;"><div id="poiMarker" title="Marker"><img src="{% static "observations/images/observation_marker.png" %}"/></div></div>
</div>
{% endblock %}
......@@ -62,18 +80,21 @@
$(document).ready(function() {
var uuidParam = settings.userUuid != null ? "?userUUID=" + settings.userUuid : "";
$.getJSON( "/vipslogicproxy/rest/observation/{{observation_id}}/" + uuidParam , function( observation ) {
//console.log(observation);
if(observation.observationTimeSeriesId) {
document.getElementById("timeSeriesLink").href = "/observations/timeseries/" + observation.observationTimeSeriesId;
} else {
document.getElementById("timeSeriesLink").hidden = true;
}
document.getElementById("organismName").innerHTML = getLocalizedOrganismName(observation.organism) + " <i>(" + observation.organism.latinName + ")</i>";
document.getElementById("cropOrganismName").innerHTML = getLocalizedOrganismName(observation.cropOrganism) + " <i>(" + observation.cropOrganism.latinName + ")</i>";
document.getElementById("timeOfObservation").innerHTML = getStandardFormattedDate(observation.timeOfObservation);
//document.getElementById("observerName").innerHTML = observation.user.firstName + " " + observation.user.lastName;
document.getElementById("observationHeading").innerHTML = observation.observationHeading;
document.getElementById("observationText").innerHTML = observation.observationText;
if(observation.observationText && observation.observationText !== "") {
document.getElementById("observationTextLabel").innerHTML = gettext("Description");
document.getElementById("observationText").innerHTML = observation.observationText;
}
if(observation.observationTimeSeries) {
console.info("observation.observationTimeSeries", observation.observationTimeSeries)
document.getElementById("timeSeriesInfo").hidden = false;
document.getElementById("timeSeries").innerHTML = "<a href='/observations/timeseries/" + observation.observationTimeSeriesId + "'>" + observation.observationTimeSeries.name + "</a>";
} else {
document.getElementById("timeSeriesInfo").hidden = true;
}
if(observation.isQuantified != undefined && observation.isQuantified)
{
const dataSchema = JSON.parse(observation.observationDataSchema["dataSchema"])
......@@ -82,13 +103,13 @@
dataVars[key] = dataSchema['properties'][key]['title']
});
var observationDataHTML = "<ul>";
var observationDataHTML = "<table>";
var observationData = JSON.parse(observation.observationData);
for(var fieldName in observationData)
{
observationDataHTML += "<li>" + dataVars[fieldName] + ": " + observationData[fieldName] + "</li>";
observationDataHTML += "<tr><td width='180'>" + dataVars[fieldName] + "</td><td width='50' align='center'>" + observationData[fieldName] + "</td></tr>";
}
observationDataHTML += "</ul>";
observationDataHTML += "</table>";
document.getElementById("observationData").innerHTML = observationDataHTML;
}
......@@ -98,25 +119,30 @@
}
if(observation.observationIllustrationSet.length > 0)
{
document.getElementById("observationIllustration").innerHTML = "<h2>{% trans "Illustrations" %}</h2>";
document.getElementById("illustrationInfo").hidden = false;
for(let i=0;i<observation.observationIllustrationSet.length;i++)
{
var illustration = observation.observationIllustrationSet[i];
document.getElementById("observationIllustration").innerHTML += "<img src='" + settings.vipslogicProtocol + "://" + settings.vipslogicServerName + "/static/images/observations/" + observation.organismId + "/" + illustration.observationIllustrationPK.fileName + "' class='img-responsive'/>";
}
}
} else {
document.getElementById("illustrationInfo").hidden = true;
}
if(!observation.locationIsPrivate)
{
if(observation.locationPointOfInterestId > 0)
{
$.getJSON(settings.vipslogicProtocol + "://" + settings.vipslogicServerName + "/rest/poi/" + observation.locationPointOfInterestId , function( poi ) {
initMap(null,poi,"observationViewMap","{{settings.MAP_ATTRIBUTION|safe}}")
document.getElementById("locationInfo").hidden = false;
document.getElementById("location").innerHTML = poi.name
});
}
else
{
initMap(observation.geoinfo,null,"observationViewMap","{{settings.MAP_ATTRIBUTION|safe}}");
}
document.getElementById("locationInfo").hidden = true;
}
}
else
{
......
......@@ -22,31 +22,37 @@
{% load i18n %}
{% block title%}{% trans "Time series" %}{%endblock%}
{% block content %}
<div id="observationTimeSeries" class="singleBlockContainer">
<div id="observationTimeSeriesDetails" class="singleBlockContainer">
<div class="row">
<div class="col-md-6">
<p style=""><a href="/observations" class="btn btn-default back" role="button">{% trans "View all observations" %}</a></p>
<h1>{% trans "Time series" %} <span id="timeSeriesName"></span></h1>
<div class="description" id="timeSeriesDescription"></div>
<div class="col-md-5">
<p class="label">{% trans "Time series" %} </p>
<h1 style="margin-top: 4px;margin-bottom: 30px"><span id="timeSeriesName"></span></h1>
<p class="label" id="timeSeriesDescriptionLabel"></p>
<p id="timeSeriesDescription"></p>
<p class="label">{% trans "Organism" %}</p>
<p class="value" id="organismName"></p>
<p id="organismName"></p>
<p class="label">{% trans "Crop" %}</p>
<p class="value" id="cropOrganismName"></p>
<p id="cropOrganismName"></p>
<p class="label">{% trans "Location" %}</p>
<p class="value" id="timeSeriesLocation"></p>
<p id="timeSeriesLocation"></p>
<p class="label">{% trans "Number of observations" %}</p>
<p class="value" id="observationCount"></p>
<p id="observationCount"></p>
</div>
<div class="col-md-6">
<div class="col-md-7">
<div id="observationViewMap" class="map" style="height: 400px;"></div>
</div>
</div>
<div class="row singleBlockContainer">
<div class="row" style="margin-top: 20px;">
<div class="col-md-12">
<div id="observationTable" class="table-responsive"></div>
</div>
</div>
<div style="display: none;"><div id="poiMarker" title="Marker"><img src="{% static "observations/images/observation_marker.png" %}"/></div></div>
<div class="row">
<div class="col-md-12">
<p><a href="/observations" class="btn btn-default back" role="button">{% trans "View all observations" %}</a></p>
</div>
</div>
<div style="display: none;"><div id="poiMarker" title="Marker"><img src="{% static "observations/images/observation_marker.png" %}"/></div>
</div>
{% endblock %}
{% block customCSS %}
......@@ -66,9 +72,13 @@
document.getElementById("organismName").innerHTML = getLocalizedOrganismName(observationTimeSeries.organism) + " <i>(" + observationTimeSeries.organism.latinName + ")</i>";
document.getElementById("cropOrganismName").innerHTML = getLocalizedOrganismName(observationTimeSeries.cropOrganism) + " <i>(" + observationTimeSeries.cropOrganism.latinName + ")</i>";
document.getElementById("timeSeriesName").innerHTML = observationTimeSeries.name;
document.getElementById("timeSeriesDescription").innerHTML = observationTimeSeries.description;
document.getElementById("timeSeriesLocation").innerHTML = observationTimeSeries.locationPointOfInterest.name;
if(observationTimeSeries.description && observationTimeSeries.description !== "") {
document.getElementById("timeSeriesDescriptionLabel").innerHTML = gettext("Description");
document.getElementById("timeSeriesDescription").innerHTML = observationTimeSeries.description;
}
let observations = [];
$.getJSON( "/vipslogicproxy/rest/observation/list/filter/{{ organization_id }}?observationTimeSeriesId={{ observation_time_series_id }}", function( observations ) {
document.getElementById("observationCount").innerHTML = observations.length;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment