Commits

btingle committed ab0043a

changes to calisphere prefilter for institution showcase pages

  • Participants
  • Parent commits 9e3df4b
  • Branches dsc-prod-xtf3.0

Comments (0)

Files changed (1)

style/crossQuery/queryParser/cui/queryParser.xsl

   <!-- browsing parameters -->
   <xsl:param name="facet"/>
   <xsl:param name="group"/>
+  <xsl:param name="institution"/>
+  <xsl:param name="collection-title"/>
   
   <xsl:param name="endDoc" as="xs:integer" select="($startDoc + $docsPerPage)-1"/>
   <xsl:param name="docRange">
         </xsl:if>
         
       </xsl:if>
+      
+      <and>
+      <xsl:if test="$institution != ''">
+        <and field="facet-institution">
+          <term><xsl:value-of select="$institution"/></term>
+        </and>
+        <xsl:apply-templates/>
+      </xsl:if>
+      <xsl:if test="$collection-title != ''">
+        <and field="facet-collection-title">
+          <term><xsl:value-of select="$collection-title"/></term>
+        </and>
+      </xsl:if>
  
-      <!-- process query -->
-      <xsl:apply-templates/>
-
+        <!-- process query -->
+        <xsl:apply-templates/>
+      </and>
     </query>
   </xsl:template>
+  <xsl:template match="param[@name='institution']"/>
+  <xsl:template match="param[@name='collection-title']"/>
 
   <xsl:template match="parameters">