GetDKAN / dkan

DKAN Open Data Portal
https://dkan.readthedocs.io/en/latest/index.html
GNU General Public License v2.0
373 stars 171 forks source link

landingPage missing from data.json feed #1975

Closed dafeder closed 7 years ago

dafeder commented 7 years ago

CIVIC-6512

Reported by @sheldonrampton: The landingPage field is missing from data.json feeds for datasets that have been manually created. This is happening because the schema definition for data.json fields defines the Homepage URL (landingPage) field as follows:

[node:field_landing_page:url]

Previously the landingPage field was defined as:

[node:url]

The earlier field mapping displayed the URL of the dataset where it appears on the DKAN site. The new mapping will display the URL of harvested datasets where they appear on their source websites. However, it fails for datasets that have been manually added directly to the DKAN site. To correct this, the landingPage field should be defined as:

[node:field_landing_page:url] || [node:url]

Steps to reproduce

Acceptance criteria

dangur commented 7 years ago

https://docs.google.com/spreadsheets/d/1xs8B3frnnZGjkdwQmuTk3HdD-QECEDs2JoHbCkl1l1U/edit?usp=sharing