Hi Damian, I did it (torturously) by setting some variables:
<xsl:variable name="searchBase"><xsl:value-of select="/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='contextPath']"/>/handle/<xsl:value-of select="substring-after(/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='focus']...@qualifier='container'],':')"/>/</xsl:variable> <xsl:variable name="advancedSearchAction"> <xsl:value-of select="$searchBase"/><xsl:value-of select="substring-after(substring-after(/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='search']...@qualifier='advancedURL'],'/'),'/')"/> </xsl:variable> And then using $advancedSearchAction when making the Advanced Search URL: <a> <xsl:attribute name="href"> <xsl:value-of select="$advancedSearchAction"/> </xsl:attribute> <i18n:text>xmlui.dri2xhtml.structural.search-advanced</i18n:text> </a> This is not the final solution but it's part way along (critiques welcome). See also Dorothea's response on this thread: http://sourceforge.net/mailarchive/message.php?msg_name=356cf3980906260637s594093d8h664fc9f84da7c181%40mail.gmail.com Cheers, Colin > -----Original Message----- > From: Sobieralski, Damian Michael [mailto:[email protected]] > Sent: Thursday, July 09, 2009 15:45 > To: [email protected] > Subject: Re: [Dspace-tech] Advanced Search - default select a community > on page load > > I didn't get any answers. So on hope that it might be seen by a new set > of eyes this time :) > > If this isn't clear, let me know and I will try to clarify what I am > asking. > > > -----Original Message----- > > From: Sobieralski, Damian Michael > > Sent: Monday, June 29, 2009 3:42 PM > > To: [email protected] > > Subject: Advanced Search - default select a community on page load > > > > Is there a way to have a specific community pre-selected when the > Advanced > > Search page is loaded (via xmlui)? We only have one community and we > > would like it already selected so that the top pulldown (Search Scope) > on > > the Advanced Search Page, that this Search Scope pulldown already has > a > > selection of collections (not communities) on initial page load. > > > > This can currently be accomplished by selecting the community, > clicking > > the "Go" Button. This second page lists the collections in the > community > > in the Search Scope pulldown now. So I'd like this state to be loaded > on > > initial Advanced Search page load. > > > > Is it possible? > > > > As always, thanks in advance for any help that you can offer. > > > > - Damian > > ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

