How do I get results to open in new tab

Link: http://www.spe.org/search?q=oil&client=onepetro&proxystylesheet=spe&site=SPEsite

We are using GSA as our search engine. GSA uses XSLT. When I get a list of results and click on a title, I would like it to open the page in a new tab. I don't know how to do this and I don't know what code snippet I would include for this. I'm hoping someone has done this with GSA before.

Answers


If you have the newest version of the GSA (6.14), then the searched snippet lies on line 4904-4909 of the DEFAULT NON-TOUCHED XSLT file:

Default:

<xsl:text disable-output-escaping='yes'>&lt;a 
      ctype="c"
</xsl:text>
      rank=&quot;<xsl:value-of select="position()"/>&quot;
<xsl:text disable-output-escaping='yes'>
      href="</xsl:text>

Target Blank (Open in new window):

<xsl:text disable-output-escaping='yes'>&lt;a 
      ctype="c"
</xsl:text>
      rank=&quot;<xsl:value-of select="position()"/>&quot; target=&quot;_blank&quot;
<xsl:text disable-output-escaping='yes'>
      href="</xsl:text>

I hope that helps. You have to do this in every language of the frontend that serves results.


Need Your Help

Superkey consists of three attributes - how to cope with Hibernate?

java hibernate orm

Consider a relation with a candidate key of three attributes:

Setting Up ADFS 2.0 in Virtual Machine

asp.net virtual-machine saml-2.0 adfs federated-identity

I'm trying to setup a test environment on a Windows 7 professional box wherein I can test building a federated ASP.NET application that connects to an ADFS 2.0 issuer.