- <xsl:value-of select="normalize-space(concat($screen-name, '. ', //user/biography))"/>
- <xsl:if test="$location-name != ''">
- <xsl:variable name="location-latitude" select="//LocationsPage/graphql/location/lat"/>
- <xsl:variable name="location-longitude" select="//LocationsPage/graphql/location/lng"/>
- <xsl:value-of select="concat(' (', $location-latitude, ', ', $location-longitude, ')')"/>
- </xsl:if>
- <xsl:variable name="external-url" select="//user/external_url"/>
- <xsl:if test="$external-url != ''">
- <xsl:text> </xsl:text><a href="{$external-url}"><xsl:value-of select="$external-url"/></a>
- </xsl:if>
+ <xsl:choose>
+ <xsl:when test="$location-name != ''">
+ <xsl:variable name="location-latitude" select="//LocationsPage/graphql/location/lat"/>
+ <xsl:variable name="location-longitude" select="//LocationsPage/graphql/location/lng"/>
+ <xsl:value-of select="concat($location-name, ' (', $location-latitude, ', ', $location-longitude, ')')"/>
+ </xsl:when>
+ <xsl:when test="$hashtag-name != ''">
+ <xsl:value-of select="concat('#', $hashtag-name)"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="normalize-space(concat($screen-name, '. ', //user/biography))"/>
+ <xsl:variable name="external-url" select="//user/external_url"/>
+ <xsl:if test="$external-url != ''">
+ <xsl:text> </xsl:text><a href="{$external-url}"><xsl:value-of select="$external-url"/></a>
+ </xsl:if>
+ </xsl:otherwise>
+ </xsl:choose>