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

Links for multi-strings values link ONLY to first string value's object



    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.x-1.5
    • Fix Version/s: 7.x-1.7
    • Component/s: Solr Search
    • Labels:


      In the Solr Index section of admin config, when the default display settings are configured for a Solr field that is actually a multi-string value, and that field's Linking is configured as "Link this field to the object's page.", it should probably link each results string from the array to the object behind it.

      For example, in our implementation, we allow an object to be related to more than one collection. So, our Solr field RELS_EXT_isMemberOfCollection_uri_ms will store these relationship. We are expecting to see multiple links, but the result is that both collection names are wrapped with a link to only the first collection's object_url.

      Additionally, it also seems that the link is made to the object behind the search result – while the related field value points to another object in the system. This may be outside of the scope of this issue, but an additional option to "Link to URL alias that matches field's original value." would be perfect - and to have the option to override the displayed text by displaying a related field's value.

      In the search results, the link we currently see for an object that has more than one collection:
      {{<a href="/islandora/object/pitt%3A31735051653909" title="Greek Room in the Cathedral of Learning, University of Pittsburgh">info:fedora/pitt:collection.3, info:fedora/pitt:collection.6</a>

      What we expect to see for that same object (at least to address the Bug aspect of this ticket):
      {{<a href="/islandora/object/pitt:collection.3" title="Greek Room in the Cathedral of Learning, University of Pittsburgh">info:fedora/pitt:collection.3</a>
      <a href="/islandora/object/pitt:collection.6" title="Greek Room in the Cathedral of Learning, University of Pittsburgh">info:fedora/pitt:collection.6</a>}}

      Optimally, (if all configuration options are added for the new link target and optional field to override the link text (in this example with fgs_label_s)) we'd hope to see:
      {{<a href="/islandora/object/pitt:collection.3" title="Pitt Publications">Pitt Publications</a><br />
      <a href="/islandora/object/pitt:collection.6" title="Pitt Nationality Rooms">Pitt Nationality Rooms</a>}}




            • Assignee:
              bgilling Brian Gillingham
            • Votes:
              0 Vote for this issue
              2 Start watching this issue


              • Created:

                Time Tracking

                Original Estimate - 4 hours
                Remaining Estimate - 4 hours
                Time Spent - Not Specified
                Not Specified