Skip to content

Commit f5bfd09

Browse files
author
Hofstetter Benjamin
committed
remove unused method
1 parent ae31f90 commit f5bfd09

File tree

1 file changed

+3
-43
lines changed

1 file changed

+3
-43
lines changed

opendata.swiss/ui/app/components/dataset-detail/model/dcat-ap-ch-v2-dataset-adapter.ts

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -200,53 +200,13 @@ export class DcatApChV2DatasetAdapter {
200200
return this.#dataset?.getKeywords ?? [];
201201
}
202202

203+
/**
204+
* Get the catalog information of the dataset if available
205+
*/
203206
get catalog(): Catalog {
204207
return this.#dataset.getOdsCatalogInfo
205208
}
206209

207-
get catalogTable(): TableEntry[] {
208-
const catalogTable: TableEntry[] = [];
209-
const catalog = this.catalog;
210-
211-
catalogTable.push({
212-
label: 'title',
213-
value: [{ value: catalog.title, type: 'value' }],
214-
nodeType: 'value'
215-
});
216-
217-
catalogTable.push({
218-
label: 'description',
219-
value: [{ value: catalog.description, type: 'value' }],
220-
nodeType: 'value'
221-
});
222-
223-
catalogTable.push({
224-
label: 'issued',
225-
value: [{ value: catalog.issued, type: 'value' }],
226-
nodeType: 'value'
227-
});
228-
229-
catalogTable.push({
230-
label: 'modified',
231-
value: [{ value: catalog.modified, type: 'value' }],
232-
nodeType: 'value'
233-
});
234-
235-
236-
catalogTable.push({
237-
label: 'dataset issued',
238-
value: [{ value: catalog.record.issued, type: 'value' }],
239-
nodeType: 'value'
240-
});
241-
242-
catalogTable.push({
243-
label: 'dataset modified',
244-
value: [{ value: catalog.record.modified, type: 'value' }],
245-
nodeType: 'value'
246-
});
247-
248-
return catalogTable;
249-
}
250210

251211
/**
252212
* Get the accrual periodicity of the dataset if available

0 commit comments

Comments
 (0)