kbss-cvut / record-manager-ui

GNU Lesser General Public License v3.0
0 stars 2 forks source link

Refactor the way how JSON-LD is processed in template filter #173

Closed blcham closed 3 days ago

blcham commented 3 months ago

For code:

    for (const t of formTemplates) {
      templatesWithLabelAndValue.push({
        value: t["@id"],
        label: t["http://www.w3.org/2000/01/rdf-schema#label"][0]["@value"],

we need to use something like

JsonLdUtils.getJsonAttValue(item, Vocabulary.RDFS_LABEL)

_Originally posted by @blcham in https://github.com/kbss-cvut/record-manager-ui/pull/172#discussion_r1633090303_