X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/50ccfa618edab58b8079d331ecac3b66e7c6b153..2bcb8505afe0be35329589845f835c9a64d709a8:/src/rss_converter_instagram.com.xsl diff --git a/src/rss_converter_instagram.com.xsl b/src/rss_converter_instagram.com.xsl index 4045224..2d54f3d 100644 --- a/src/rss_converter_instagram.com.xsl +++ b/src/rss_converter_instagram.com.xsl @@ -47,9 +47,7 @@ - - - + @@ -67,7 +65,7 @@ <xsl:variable name="title-length" select="140"/> - <xsl:variable name="item-content-title" select="normalize-space(concat($user-name, ': ', $item-content-caption))"/> + <xsl:variable name="item-content-title" select="normalize-space(concat($screen-name, ': ', $item-content-caption))"/> <!-- ellipsize, inspired from http://stackoverflow.com/questions/13622338 --> <xsl:choose> <xsl:when test="string-length($item-content-title) > $title-length"> @@ -136,6 +134,11 @@ <description> <xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text> <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>