Hi Brandon,
Not sure about out of the box, but we did this by modifying the default
hierarchy.xslt to include a new "collection_title_ms" field which looks
nice to display and works to facet.
It is not super hard, but it really depends on how comfortable you are
messing with XSLTs.
We needed to include the parent objects title[1][2] in the sparql query
results and then add it to the Solr document[3] at indexing time.
This is specific to our display as it only adds this field for objects
that are not collections or newspapers and whose parent are a
collections or a newspaper.
So you would need to play around with it.
cheers,
jared
[1]
https://github.com/uml-digitalinitiatives/UofM_gsearch_config/blob/camel-indexer-xslt/islandora_transforms/hierarchy.xslt#L19
[2]
https://github.com/uml-digitalinitiatives/UofM_gsearch_config/blob/camel-indexer-xslt/islandora_transforms/hierarchy.xslt#L28-L30
[3]
https://github.com/uml-digitalinitiatives/UofM_gsearch_config/blob/camel-indexer-xslt/islandora_transforms/hierarchy.xslt#L66-L68
On 2016-04-18 1:56 PM, Brandon Weigel wrote:
> We're trying to include Collection as a Solr facet as well as one of the
> search result display fields. To accomplish this, I've tried adding the
> SOLR field RELS_EXT_isMemberOfCollection_uri_s (and other similar
> versions), with mixed results including at least one bug.
>
> <
https://lh3.googleusercontent.com/-yr_XXih7Elg/VxUrpzeK9MI/AAAAAAAAAAc/Mncq7NRnPqokPxjKviX5NraKhZbnQpxkwCLcB/s1600/Screen%2BShot%2B2016-04-18%2Bat%2B11.43.42%2BAM.png>
>
> As you can see from the screenshot, the field generates some information
> that the viewer doesn't need to see (info:fedora), in addition to
> showing the collection PID rather than the title (even when you check
> the "Object Label" box in the facet settings).
>
> Additionally, in the Display Fields area, clicking the link that should
> take you to a search fielded on that collection results in an
> error: Error searching Solr index "400" Status: Bad Request
> This one, at least, is clearly a bug due to a failure to escape the
> slash in the generated search string. If you change the "/" to "~slsh~"
> it works as expected:
>
> * Generated path:
>
http://arcabc.ca/islandora/search/RELS_EXT_isMemberOfCollection_uri_ss%3A%22info%5C%3Afedora%5C/ecuad%5C%3AarchivalPhotos%22
> * Fixed
> --
> For more information about using this group, please read our Listserv
> Guidelines:
http://islandora.ca/content/welcome-islandora-listserv
> ---
> You received this message because you are subscribed to the Google
> Groups "islandora" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
islandora+...@googlegroups.com
> <mailto:
islandora+...@googlegroups.com>.
> Visit this group at
https://groups.google.com/group/islandora.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/islandora/db38937a-f6f8-4466-94b9-5c536ed879ff%40googlegroups.com
> <
https://groups.google.com/d/msgid/islandora/db38937a-f6f8-4466-94b9-5c536ed879ff%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit
https://groups.google.com/d/optout.
--
Jared Whiklo
jwh...@gmail.com
--------------------------------------------------
People are more violently opposed to fur than leather because it's safer
to harass rich women than motorcycle gangs.