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

Allow newlines to be rendered in Solr Metadata

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Fix Version/s: 7.x-1.6
    • Component/s: Solr Metadata
    • Labels:
      None

      Description

      Currently, when rendering metadata from Solr, newlines are not rendered in the display. It would be good to have the option to toggle their conversion to <br/> tags, so that they could be carried over to the display as line breaks.

      We should determine a place to insert an optional http://php.net/manual/en/function.nl2br.php - likely in the theme include - and add a per-field option to the field configuration (https://github.com/Islandora/islandora_solr_metadata/blob/7.x/includes/config.inc#L482) that can then be picked up in the _query_fields() method (https://github.com/Islandora/islandora_solr_metadata/blob/7.x/theme/theme.inc#L185). It should be turned off on fields by default and assumed to be so in the eventual variable_get() so that existing implementations don't change.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              daitken Daniel Aitken
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: