Skip to content

Commit ade8363

Browse files
authored
Merge pull request #79 from EVERSE-ResearchSoftware/website_abbreviation
add abbreviation to website indicators table
2 parents d2067aa + c0dd065 commit ade8363

File tree

5 files changed

+25
-8
lines changed

5 files changed

+25
-8
lines changed

indicators/has_no_linting_issues.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"@type": "SoftwareQualityIndicator",
55
"name": "Software has no linting issues",
66
"alternateName": "has_no_linting_issues",
7+
"abbreviation": "has_no_linting_issues",
78
"description": "The project addresses or resolves warnings identified by compilers, safe modes, or linters.",
89
"keywords": [ "linting", "code analysis", "fair"],
910
"identifier": { "@id": "https://w3id.org/everse/i/indicators/has_no_linting_issues" },

tests/dimension_validation_schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@
204204
"required": [
205205
"@context",
206206
"name",
207+
"abbreviation",
207208
"description",
208209
"identifier",
209210
"source"

tests/indicator_validation_schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@
292292
"@context",
293293
"@type",
294294
"name",
295+
"abbreviation",
295296
"description",
296297
"author",
297298
"version",

website/dimensions.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,15 @@ <h2>Research Software Quality Dimensions</h2>
147147

148148
<table id="json-table">
149149
<colgroup>
150-
<col style="width: 25%;">
151-
<col style="width: 60%;">
152-
<col style="width: 15%;">
150+
<col style="width: 25%;"> <!-- Name -->
151+
<col style="width: 20%;"> <!-- Abbreviation -->
152+
<col style="width: 40%;"> <!-- Description -->
153+
<col style="width: 15%;"> <!-- Source -->
153154
</colgroup>
154155
<thead>
155156
<tr>
156157
<th>Name</th>
158+
<th>Abbreviation</th>
157159
<th>Description</th>
158160
<th>Source</th>
159161
</tr>
@@ -216,6 +218,10 @@ <h2>Research Software Quality Dimensions</h2>
216218
}
217219
row.appendChild(nameCell);
218220

221+
const abbreviationCell = document.createElement("td");
222+
abbreviationCell.textContent = data.abbreviation || "";
223+
row.appendChild(abbreviationCell);
224+
219225
const descriptionCell = document.createElement("td");
220226
descriptionCell.innerHTML = (data.description || "").replace(/\r?\n/g, "<br>");
221227
row.appendChild(descriptionCell);
@@ -282,6 +288,7 @@ <h2>Research Software Quality Dimensions</h2>
282288
const query = input.value.toLowerCase().trim();
283289
const filtered = allData.filter(item =>
284290
(item.name && item.name.toLowerCase().includes(query)) ||
291+
(item.abbreviation && item.abbreviation.toLowerCase().includes(query)) ||
285292
(item.keywords && JSON.stringify(item.keywords).toLowerCase().includes(query)) ||
286293
(item.description && item.description.toLowerCase().includes(query))
287294
);

website/indicators.html

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,15 +180,17 @@ <h2>Research Software Quality Indicators</h2>
180180

181181
<table id="json-table">
182182
<colgroup>
183-
<col style="width: 16%;">
184-
<col style="width: 12%;">
185-
<col style="width: 12%;">
186-
<col style="width: 28%;">
187-
<col style="width: 18%;">
183+
<col style="width: 16%;"> <!-- Name -->
184+
<col style="width: 12%;"> <!-- Abbreviation -->
185+
<col style="width: 12%;"> <!-- Keywords -->
186+
<col style="width: 24%;"> <!-- Quality Dimension -->
187+
<col style="width: 24%;"> <!-- Description -->
188+
<col style="width: 12%;"> <!-- Source -->
188189
</colgroup>
189190
<thead>
190191
<tr>
191192
<th>Name</th>
193+
<th>Abbreviation</th>
192194
<th>Keywords</th>
193195
<th>Quality Dimension</th>
194196
<th>Description</th>
@@ -266,6 +268,10 @@ <h2>Research Software Quality Indicators</h2>
266268

267269
row.appendChild(nameCell);
268270

271+
const abbreviationCell = document.createElement("td");
272+
abbreviationCell.textContent = data.abbreviation || "";
273+
row.appendChild(abbreviationCell);
274+
269275
const keywordsCell = document.createElement("td");
270276
keywordsCell.textContent = Array.isArray(data.keywords) ? data.keywords.join(", ") : data.keywords || "";
271277
row.appendChild(keywordsCell);
@@ -386,6 +392,7 @@ <h2>Research Software Quality Indicators</h2>
386392
const query = input.value.toLowerCase().trim();
387393
const filtered = allData.filter(item =>
388394
(item.name && item.name.toLowerCase().includes(query)) ||
395+
(item.abbreviation && item.abbreviation.toLowerCase().includes(query)) ||
389396
(item.keywords && JSON.stringify(item.keywords).toLowerCase().includes(query)) ||
390397
(item.description && item.description.toLowerCase().includes(query)) ||
391398
(item.identifier && item.identifier['@id'] && item.identifier['@id'].toLowerCase().includes(query))

0 commit comments

Comments
 (0)