Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-1566

Alter Solr Metadata display (parameters)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Ready for Release
    • Fix Version/s: 7.x-1.7
    • Component/s: Solr Metadata
    • Labels:
      None

      Description

      Allow altering of Solr Metadata display/description theme parameters

      --Use Case--

      We wish to programmatically modify the associations used in the Solr Metadata display, for example, to change based on an arbitrary value in the metadata of the object being rendered. (Using and somewhat similar to ISLANDORA-1296, but avoiding introducing additional dependencies)

      --Technical Approach--

      Introduce calls using {{drupal_alter()}} before the relevant {{theme()}} calls.

      --Test Case--

      # Without implementations of the new alters, things should continue to function as-is.
      # Implementing the alters, and:
      ## Adding an existing config ID to the {{associations}} should cause the fields in the specified configuration to be combined into the metadata display.
      ## Setting the {{associations}} to an array containing a single configuration ID should cause it to be the only display used (excepting other implementations of the alter)

      --Impact--

      Additional flexibility with a negligible performance impact (from the introduction of another hook).

      ----
      Adam Vessey
      Developer
      discoverygarden inc. | Managing Digital Content

        Attachments

          Activity

            People

            • Assignee:
              mbagget1 Mark Baggett
              Reporter:
              adam.vessey Adam Vessey
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: