Uploaded image for project: 'Hyrax-Kanban'
  1. HK-146

Make JSON-LD localization configuration for OLFS.

    Details

    • Type: Task
    • Status: Done (View workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Hyrax 1.15.2
    • Labels:
      None

      Description

      The JSON-LD content sent by Hyrax contains fields that should be part of the localized configuration of the server. We may wish to add these tot the BES and have the OLFS retrieve them, or we may want to add it to the olfs configuration.
      There are two places in the OLFS that build json-ld responses.

      One is in the construction of the contents.html page, the other is in the OPeNDAP Data Access form page (aka IFH).

      In the contents.html pages we have this block:

      "@type": "Organization",
      "name": "@PublisherName@",
      "address": {
          "@type": "PostalAddress",
          "addressCountry": "@Country@",
          "addressLocality": "@Street,City@",
          "addressRegion": "@State@",
          "postalCode": "@PostalCode@"
      },
      "telephone": "@PublisherPhoneNumber@",
      "email": "@PublisherEmail@",
      "sameAs": "@OrganizationLandingPageURL@"
      

      All of the RValues bracketed by '@' characters need to be provided in a configuration setting.

      In the OPeNDAP Data Access Form page we currently have this block of json-ld:

        "includedInDataCatalog": { 
          "@type": "DataCatalog", 
          "name": "Hyrax Data Server", 
          "sameAs": "http://localhost:8080/opendap/hyrax/contents.html"
        },
      

      And the value of includedInDataCatalog.name should be reviewed against the schema and I suspect it will need to be replaced with some site wide configuration value.

        Attachments

          Activity

            People

            • Assignee:
              ndp Nathan Potter
              Reporter:
              ndp Nathan Potter
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: