Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor improvements related to DCAT support #5616

Merged
merged 14 commits into from
May 11, 2021
Merged

Conversation

fxprunayre
Copy link
Member

@fxprunayre fxprunayre commented Apr 21, 2021

Editor config

  • Side panel can now contain sections

image

Keywords

  • Add possibility to use the virtual all thesaurus to populate simple keyword structure
  • Add xpath mode to gnKeywordSelector directive

image

  • Fix XML API edits (trim XML snippet, detect self closing tags, ignore gn_delete tag)

image

Subtemplates

  • Add a new taginput mode to be able to populate contact like keywords

image

To enable it use the following configuration.

 <for name="dct:creator" addDirective="data-gn-directory-entry-selector">
      <directiveAttributes
        data-template-type="contact"
        data-element-xpath="./dcat:Dataset/dct:creator"
        data-max-tags="1"
        data-insert-modes="tags"
        data-values="xpath::string-join(.//dct:creator/@xlink:href, '◿')"
        data-default-role="creator"
        data-transformation="contact-from-iso19139-to-foaf-agent"/>
    </for>

In this mode, encoding is made using XLinks (so turn XLink resolution on in the admin > settings).

This mode does not work (yet?) for ISO records where the role has to be set. But the configuration would look like that:

    <for name="gmd:pointOfContact" addDirective="data-gn-directory-entry-selector">
      <directiveAttributes
        data-template-type="contact"
        data-insert-modes="tags"
        data-element-xpath="gmd:identificationInfo/*/gmd:pointOfContact"
        data-values="xpath::string-join(*/gmd:pointOfContact/@xlink:href, '◿')"
        data-default-role="pointOfContact"
        data-variables="gmd:role/gmd:CI_RoleCode/@codeListValue~{role}"/>
    </for>

Geometry

  • Add possibility to define a wrapper element (currently only ISO19139 can use the polygon directive)
  • Add utility to parse WKT to simple extent string

Label

  • Attributes may have context element for more contextual label (eg. use for rdf:resource or rdf:about in DCAT)

Add possibility to configure an editor to populate all keywords in a record whatever the thesaurus. This mainly target DCAT where we want to keep the editor interface as simple as possible.
…- used to make distinction dcat:theme, dcat:keyword, ...
@fxprunayre fxprunayre added this to the 4.0.5 milestone Apr 21, 2021
@fxprunayre fxprunayre marked this pull request as ready for review May 11, 2021 06:03
@josegar74 josegar74 merged commit 9b795de into main May 11, 2021
@fxprunayre fxprunayre deleted the 405-dcat2-related-features branch May 12, 2021 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants