Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.x-1.4, 7.x-1.5, 7.x-1.6, 7.x-1.7
    • Fix Version/s: 7.x-1.8
    • Component/s: Solr Metadata
    • Labels:
      None

      Description

      If a Solr field is multivalued and all values are empty, the "Omit Empty Values" setting is not omitting the field.

      Steps to Reproduce

      • Using a basic image object, replace the DC datastream with the attached DC XML.
      • Enable Solr metadata
      • Enable "Omit Empty Values" (admin/islandora/search/islandora_solr/metadata)
      • Create a Solr metadata profile
      • Add basic image content model to profile
      • Add dc.relation to profile (assuming you're using https://github.com/discoverygarden/basic-solr-config)
      • View the object you replaced the DC datastream on and you will see "dc.relation:" displayed as a label with no value

      Test Case

      • Follow steps to reproduce
      • With the attached pull request implemented on your server, you should not see "dc.relation:" displayed in the metadata of the object you replaced the DC datastream on because it is empty.

      Pull Request
      https://github.com/Islandora/islandora_solr_metadata/pull/45


      Nelson Hart
      Developer
      discoverygarden inc. | Managing Digital Content

        Attachments

          Activity

            People

            • Assignee:
              nhart Nelson Hart
              Reporter:
              nhart Nelson Hart
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: