Skip to content

Instantly share code, notes, and snippets.

View daniel-dgi's full-sized avatar

Daniel Lamb daniel-dgi

  • Discovery Garden
  • Charlottetown, PE
View GitHub Profile
@daniel-dgi
daniel-dgi / gist:6001819
Last active August 25, 2016 21:03
Indexing ancestors for islandora_collection_search module.
<!-- In your demoFoxmlToSolr.xslt, do this! -->
<!-- Put this with the rest of your includes -->
<xsl:include href="/path/to/islandora_transforms/hierarchy.xslt"/>
<!-- Then put this in your main template -->
<xsl:variable name="ancestors">
<xsl:call-template name="get-ancestors">
<xsl:with-param name="PID" select="/foxml:digitalObject/@PID" />
</xsl:call-template>