geonetwork / core-geonetwork

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.
http://geonetwork-opensource.org/
GNU General Public License v2.0
428 stars 489 forks source link

Position name is not displayed if there is no individual specified #4276

Closed jonescc closed 4 years ago

jonescc commented 4 years ago

Describe the bug Position name is not displayed in 19139 full view if there is no individual specified (individual name is optional if organisation or position is present). Also applies to 19115-3:2018

To Reproduce Steps to reproduce the behavior:

  1. Create or edit a 19139 record
  2. Switch to ful view mode
  3. Add or modify a responsible party
  4. Specify an organisation and a position name but delete the empty individual name (its not required)
  5. Save and close the metadata record
  6. Switch to full view
  7. The organisation name is displayed but not the position name

Expected behavior Position name is displayed

Additional context Looks like the position name is only displayed if an organisation AND individual is also specified (https://github.com/geonetwork/core-geonetwork/blob/master/schemas/iso19139/src/main/plugin/iso19139/formatter/xsl-view/view.xsl#L391)

jonescc commented 4 years ago

Fixed by https://github.com/geonetwork/core-geonetwork/pull/4329 and https://github.com/metadata101/iso19115-3.2018/pull/20 in master and https://github.com/geonetwork/core-geonetwork/pull/4328 and https://github.com/metadata101/iso19115-3.2018/pull/19 in 3.8.x