From ef68673a2a5650b6af799f7c01cc80f0daa6998d Mon Sep 17 00:00:00 2001 From: Jack Brinkman Date: Tue, 30 Apr 2024 12:10:14 +1000 Subject: [PATCH] Added script to add static page to HCAT hub --- .../addStaticReferenceAssessmentPageHCAT.js | 19 + .../6.8.1/html/ref-assess-static.html | 343 ++++++++++++++++++ 2 files changed, 362 insertions(+) create mode 100644 src/main/scripts/releases/6.8.1/addStaticReferenceAssessmentPageHCAT.js create mode 100644 src/main/scripts/releases/6.8.1/html/ref-assess-static.html diff --git a/src/main/scripts/releases/6.8.1/addStaticReferenceAssessmentPageHCAT.js b/src/main/scripts/releases/6.8.1/addStaticReferenceAssessmentPageHCAT.js new file mode 100644 index 000000000..f1ede6a58 --- /dev/null +++ b/src/main/scripts/releases/6.8.1/addStaticReferenceAssessmentPageHCAT.js @@ -0,0 +1,19 @@ +const fs = require('fs'); + +const pageContent = fs.readFileSync('./html/ref-assess-static.html', 'utf8'); + +db.setting.updateOne( + { key: 'hcat.Request_Assessment_Records' }, + { + $set: { + key: 'hcat.Request_Assessment_Records', + value: pageContent.replaceAll('\n', '\r\n'), + version: NumberLong(1) + }, + $currentDate: { + lastUpdated: true, + dateCreated: true + }, + }, + { upsert: true } +); \ No newline at end of file diff --git a/src/main/scripts/releases/6.8.1/html/ref-assess-static.html b/src/main/scripts/releases/6.8.1/html/ref-assess-static.html new file mode 100644 index 000000000..a38f408ac --- /dev/null +++ b/src/main/scripts/releases/6.8.1/html/ref-assess-static.html @@ -0,0 +1,343 @@ + + +
+
+
+
+

Select your areas of expertise

+

Major Vegetation Groups

+

+ For the Image Assessment task, we ask that you provide an ecosystem + condition score for a suite of photographic images of different + habitats allocated to you based on the Major Vegetation Groups and + Hutchison geographic agro-climatic classifications that you nominate + as being within your area of expertise. Scoring these images will + enable your Site Condition Assessments to be calibrated with other + participants. +

+

+ Please select all of the Major Vegetation Groups (MVG) and Hutchison + geographic agro-climatic classifications in which you have expertise. +

+

+ After nominating your areas of expertise, please indicate if you would + like your assessments to be de-identified and confirm you have read, + understood, and accepted the privacy, IP and ethics arrangements for + this project. These arrangements are included in the HCAT instructions + manual accessible via the HCAT homepage. +

+
+ +
+
+ + + +
+

Agro-climatic Classifications

+
+ +
+
+ + + +
+
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
+

+ Only members of the HCAT project team will be able to see your name + associated with the condition assessments you provide. When HCAT data + is included in publicly available material (e.g. publications, + reports, presentations, or data repositories) your contributions will + be anonymised. Your Image Aassessments will not be made public + regardless of your selection - they are used for calibration purposes + only +

+

+ Your individual Site Condition Assessments will be credited in + publicly available material. Your Image Aassessments will not be made + public regardless of your selection - they are used for calibration + purposes only +

+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+ +
+
+
+ +