Skip to content

Commit 79063a5

Browse files
Merge pull request #143 from blw-ofag-ufag/develop
Changes in preparation of internal collaboration with domain experts
2 parents f60e3f5 + 52be4a5 commit 79063a5

3 files changed

Lines changed: 5 additions & 32 deletions

File tree

docs/assets/forms.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191
{
9292
"key": "bv:personalData",
9393
"title": "Data Protection Category"
94+
},
95+
{
96+
"key": "bv:typeOfData",
97+
"title": "Type of data"
9498
}
9599
]
96100
},

docs/assets/js/details.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,6 @@ document.addEventListener("DOMContentLoaded", () => {
501501
} else {
502502
window.cachedDataset = data; // Cache for language re-rendering
503503
renderDatasetDetails(data, lang);
504-
Utils.verifyUrls();
505504
}
506505
})
507506
.catch((error) => {

docs/assets/js/utils.js

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -100,37 +100,7 @@ const Utils = {
100100
}
101101
return "";
102102
}).join("<br>");
103-
},
104-
verifyUrls() {
105-
// Select all anchor elements with the 'check-url' class
106-
const links = document.querySelectorAll('.check-url');
107-
links.forEach(link => {
108-
const url = link.href;
109-
// Use a HEAD request to check if the URL is accessible
110-
fetch(url, { method: 'HEAD' })
111-
.then(response => {
112-
if (!response.ok) {
113-
// If the response isn't OK, show a warning icon with the status code
114-
const warning = document.createElement('span');
115-
warning.innerHTML = '<i class="bi bi-exclamation-circle-fill"></i>';
116-
warning.style.marginLeft = "5px";
117-
warning.style.color = "var(--color-danger)";
118-
warning.title = `URL returned status: ${response.status}`;
119-
link.insertAdjacentElement('afterend', warning);
120-
}
121-
})
122-
.catch(error => {
123-
// If an error occurs (e.g., CORS issues), mark the URL as unverified
124-
const warning = document.createElement('span');
125-
warning.innerHTML = '<i class="bi bi-question-circle-fill"></i>';
126-
warning.style.marginLeft = "5px";
127-
warning.style.color = "var(--color-accent)";
128-
// Provide a fallback message to the user
129-
warning.title = "URL could not be verified (possibly due to CORS restrictions or other errors).";
130-
link.insertAdjacentElement('afterend', warning);
131-
});
132-
});
133-
},
103+
},
134104
getLocalized(fieldObj, lang) {
135105
if (!fieldObj) return "";
136106
return fieldObj[lang] || fieldObj["en"] || "";

0 commit comments

Comments
 (0)