Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package suse-xsl-stylesheets for
openSUSE:Factory checked in at 2023-08-02 16:47:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/suse-xsl-stylesheets (Old)
and /work/SRC/openSUSE:Factory/.suse-xsl-stylesheets.new.22712 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "suse-xsl-stylesheets"
Wed Aug 2 16:47:52 2023 rev:68 rq:1101529 version:2.92.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/suse-xsl-stylesheets/suse-xsl-stylesheets.changes
2023-07-27 16:50:27.313694506 +0200
+++
/work/SRC/openSUSE:Factory/.suse-xsl-stylesheets.new.22712/suse-xsl-stylesheets.changes
2023-08-02 16:47:56.868439324 +0200
@@ -1,0 +2,34 @@
+Mon Jul 31 11:47:45 UTC 2023 - Thomas Schraitle <[email protected]> -
2.92.1
+
+- Update 2.92.1
+ - Implement Qualtrics ratings #551:
+ * generate.qualtrics.div (default 0)
+ When this parameter is set to 1, the empty div
+ container is created.
+
+ * qualtrics.id (default "qualtrics_container")
+ The default id to reference in Qualtrics. Any
+ non-empty value will be used.
+ This parameter should normally not changed.
+
+ Keep in mind, only when $generate.qualtrics.div != 0
+ AND $qualtrics.id != '' are set that the empty <div> is
+ generated. This avoids a <div id=""> container.
+
+ - Improve Qualtrics implementation #556:
+ * Add qualtrics-feedback.js parameter
+ * Add the file "qualtrics-feedback.js".
+ * ATM, if generate.qualtrics.div != 0 and qualtrics-feedback.js == '', we
fallback to a hardcoded
+ implementation.
+ TODO: remove it once the file implementation is stable
+ * If the file needs to be customized, this should be the content:
+
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <!--BEGIN QUALTRICS WEBSITE FEEDBACK SNIPPET-->
+ <script type='text/javascript'><![CDATA[... add your content here
...]]></script>
+ <div id='ZN_8qZUmklKYbBqAYe'><!--DO NOT REMOVE-CONTENTS PLACED
HERE--></div>
+ <!--END WEBSITE FEEDBACK SNIPPET-->
+ </html>
+
+
+-------------------------------------------------------------------
Old:
----
suse-xsl-2.92.0.tar.bz2
New:
----
suse-xsl-2.92.1.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ suse-xsl-stylesheets.spec ++++++
--- /var/tmp/diff_new_pack.lnFkFX/_old 2023-08-02 16:47:57.616443874 +0200
+++ /var/tmp/diff_new_pack.lnFkFX/_new 2023-08-02 16:47:57.644444044 +0200
@@ -22,7 +22,7 @@
%define suse_styles_dir %{db_xml_dir}/stylesheet
#
Name: suse-xsl-stylesheets
-Version: 2.92.0
+Version: 2.92.1
Release: 0
Summary: SUSE-Branded Stylesheets for DocBook
License: GPL-2.0-only OR GPL-3.0-only
++++++ suse-xsl-2.92.0.tar.bz2 -> suse-xsl-2.92.1.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/suse-xsl-2.92.0/ChangeLog
new/suse-xsl-2.92.1/ChangeLog
--- old/suse-xsl-2.92.0/ChangeLog 2023-07-26 17:00:33.000000000 +0200
+++ new/suse-xsl-2.92.1/ChangeLog 2023-07-31 13:42:35.000000000 +0200
@@ -1,4 +1,37 @@
-------------------------------------------------------------------
+Mon Jul 31 13:36:00 UTC 2022 - [email protected]
+
+- Update 2.92.1
+ - Implement Qualtrics ratings #551:
+ * generate.qualtrics.div (default 0)
+ When this parameter is set to 1, the empty div
+ container is created.
+
+ * qualtrics.id (default "qualtrics_container")
+ The default id to reference in Qualtrics. Any
+ non-empty value will be used.
+ This parameter should normally not changed.
+
+ Keep in mind, only when $generate.qualtrics.div != 0
+ AND $qualtrics.id != '' are set that the empty <div> is
+ generated. This avoids a <div id=""> container.
+
+ - Improve Qualtrics implementation #556:
+ * Add qualtrics-feedback.js parameter
+ * Add the file "qualtrics-feedback.js".
+ * ATM, if generate.qualtrics.div != 0 and qualtrics-feedback.js == '', we
fallback to a hardcoded
+ implementation.
+ TODO: remove it once the file implementation is stable
+ * If the file needs to be customized, this should be the content:
+
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <!--BEGIN QUALTRICS WEBSITE FEEDBACK SNIPPET-->
+ <script type='text/javascript'><![CDATA[... add your content here
...]]></script>
+ <div id='ZN_8qZUmklKYbBqAYe'><!--DO NOT REMOVE-CONTENTS PLACED
HERE--></div>
+ <!--END WEBSITE FEEDBACK SNIPPET-->
+ </html>
+
+-------------------------------------------------------------------
Wed Jul 26 16:57:00 UTC 2022 - [email protected]
- Update 2.92.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/suse-xsl-2.92.0/Makefile new/suse-xsl-2.92.1/Makefile
--- old/suse-xsl-2.92.0/Makefile 2023-07-26 17:00:33.000000000 +0200
+++ new/suse-xsl-2.92.1/Makefile 2023-07-31 13:42:35.000000000 +0200
@@ -11,7 +11,7 @@
SHELL := /bin/bash
PACKAGE := suse-xsl-stylesheets
-VERSION := 2.92.0
+VERSION := 2.92.1
CDIR := $(shell pwd)
SUSE_XML_PATH := $(PREFIX)/xml/suse
DB_XML_PATH := $(PREFIX)/xml/docbook
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/suse-xsl-2.92.0/suse2022-ns/xhtml/docbook.xsl
new/suse-xsl-2.92.1/suse2022-ns/xhtml/docbook.xsl
--- old/suse-xsl-2.92.0/suse2022-ns/xhtml/docbook.xsl 2023-07-26
17:00:33.000000000 +0200
+++ new/suse-xsl-2.92.1/suse2022-ns/xhtml/docbook.xsl 2023-07-31
13:42:35.000000000 +0200
@@ -357,6 +357,28 @@
<xsl:with-param name="node" select="$node"/>
</xsl:call-template>
+ <xsl:if test="number($generate.qualtrics.div) != 0">
+ <xsl:choose>
+ <xsl:when test="$qualtrics-feedback.js != ''">
+ <xsl:copy-of select="document($qualtrics-feedback.js)/*/node()"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- TODO: This is just a fallback and can be removed at some point -->
+ <xsl:comment>BEGIN QUALTRICS WEBSITE FEEDBACK SNIPPET</xsl:comment>
+<script type='text/javascript'><![CDATA[(function(){var g=function(e,h,f,g){
+this.get=function(a){for(var
a=a+"=",c=document.cookie.split(";"),b=0,e=c.length;b<e;b++){for(var d=c[b];"
"==d.charAt(0);)d=d.substring(1,d.length);if(0==d.indexOf(a))return
d.substring(a.length,d.length)}return null};
+this.set=function(a,c){var b="",b=new Date;b.setTime(b.getTime()+6048E5);b=";
expires="+b.toGMTString();document.cookie=a+"="+c+b+"; path=/; "};
+this.check=function(){var a=this.get(f);if(a)a=a.split(":");else
if(100!=e)"v"==h&&(e=Math.random()>=e/100?0:100),a=[h,e,0],this.set(f,a.join(":"));else
return!0;var c=a[1];if(100==c)return!0;switch(a[0]){case "v":return!1;case
"r":return c=a[2]%Math.floor(100/c),a[2]++,this.set(f,a.join(":")),!c}return!0};
+this.go=function(){if(this.check()){var
a=document.createElement("script");a.type="text/javascript";a.src=g;document.body&&document.body.appendChild(a)}};
+this.start=function(){var
t=this;"complete"!==document.readyState?window.addEventListener?window.addEventListener("load",function(){t.go()},!1):window.attachEvent&&window.attachEvent("onload",function(){t.go()}):t.go()};};
+try{(new
g(100,"r","QSI_S_ZN_8qZUmklKYbBqAYe","https://zn8qzumklkybbqaye-suselinux.siteintercept.qualtrics.com/SIE/?Q_ZID=ZN_8qZUmklKYbBqAYe")).start()}catch(i){}})();]]>
+</script><div id='ZN_8qZUmklKYbBqAYe'><xsl:comment>DO NOT REMOVE-CONTENTS
PLACED HERE</xsl:comment></div>
+ <xsl:text> </xsl:text>
+ <xsl:comment>END WEBSITE FEEDBACK SNIPPET</xsl:comment>
+ <xsl:text> </xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:if>
</xsl:template>
@@ -578,6 +600,12 @@
</xsl:template>
+ <xsl:template name="qualtrics.rating">
+ <xsl:if test="number($generate.qualtrics.div) != 0 and $qualtrics.id !=
''">
+ <div id="{$qualtrics.id}"></div>
+ </xsl:if>
+ </xsl:template>
+
<xsl:template name="generate.sourcelink">
<xsl:param name="node" select="."/>
<xsl:variable name="meta-bugtracker"
select="$node/ancestor-or-self::*/d:info/d:meta[@name='bugtracker']/d:phrase[@role='editurl']"/>
@@ -979,6 +1007,7 @@
<xsl:call-template name="give.feedback"/>
<xsl:call-template name="share.and.print"/>
+ <xsl:call-template name="qualtrics.rating"/>
<xsl:text> </xsl:text>
</aside>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/suse-xsl-2.92.0/suse2022-ns/xhtml/param.xsl
new/suse-xsl-2.92.1/suse2022-ns/xhtml/param.xsl
--- old/suse-xsl-2.92.0/suse2022-ns/xhtml/param.xsl 2023-07-26
17:00:33.000000000 +0200
+++ new/suse-xsl-2.92.1/suse2022-ns/xhtml/param.xsl 2023-07-31
13:42:35.000000000 +0200
@@ -462,4 +462,23 @@
<xsl:param name="generate.json-ld" select="0"/>
<xsl:variable name="placeholder.ssi.language">{{#language#}}</xsl:variable>
+
+ <!-- The ID for the Qualtricks <div> -->
+ <xsl:param name="generate.qualtrics.div" select="0"/>
+ <xsl:param name="qualtrics.id">qualtrics_container</xsl:param>
+ <!-- The path to the Qualtrics JS file. By default, it's relative to the
stylesheet.
+ The content should be (correct the syntax HTML comment):
+
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <!- -BEGIN QUALTRICS WEBSITE FEEDBACK SNIPPET- ->
+ <script type='text/javascript'><![CDATA[... add your content here
...]]></script>
+ <div id='ZN_8qZUmklKYbBqAYe'><!- -DO NOT REMOVE-CONTENTS PLACED
HERE- -></div>
+ <!- -END WEBSITE FEEDBACK SNIPPET- ->
+ </html>
+
+ The root element is cut off (it can be any tagname, <html> is just an
example).
+ Anything below <html> is copied, including HTML comments and the
<script>.
+ -->
+ <xsl:param name="qualtrics-feedback.js">qualtrics-feedback.js</xsl:param>
+
</xsl:stylesheet>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/suse-xsl-2.92.0/suse2022-ns/xhtml/qualtrics-feedback.js
new/suse-xsl-2.92.1/suse2022-ns/xhtml/qualtrics-feedback.js
--- old/suse-xsl-2.92.0/suse2022-ns/xhtml/qualtrics-feedback.js 1970-01-01
01:00:00.000000000 +0100
+++ new/suse-xsl-2.92.1/suse2022-ns/xhtml/qualtrics-feedback.js 2023-07-31
13:42:35.000000000 +0200
@@ -0,0 +1,13 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<!--BEGIN QUALTRICS WEBSITE FEEDBACK SNIPPET-->
+<script type='text/javascript'><![CDATA[(function(){var g=function(e,h,f,g){
+this.get=function(a){for(var
a=a+"=",c=document.cookie.split(";"),b=0,e=c.length;b<e;b++){for(var d=c[b];"
"==d.charAt(0);)d=d.substring(1,d.length);if(0==d.indexOf(a))return
d.substring(a.length,d.length)}return null};
+this.set=function(a,c){var b="",b=new Date;b.setTime(b.getTime()+6048E5);b=";
expires="+b.toGMTString();document.cookie=a+"="+c+b+"; path=/; "};
+this.check=function(){var a=this.get(f);if(a)a=a.split(":");else
if(100!=e)"v"==h&&(e=Math.random()>=e/100?0:100),a=[h,e,0],this.set(f,a.join(":"));else
return!0;var c=a[1];if(100==c)return!0;switch(a[0]){case "v":return!1;case
"r":return c=a[2]%Math.floor(100/c),a[2]++,this.set(f,a.join(":")),!c}return!0};
+this.go=function(){if(this.check()){var
a=document.createElement("script");a.type="text/javascript";a.src=g;document.body&&document.body.appendChild(a)}};
+this.start=function(){var
t=this;"complete"!==document.readyState?window.addEventListener?window.addEventListener("load",function(){t.go()},!1):window.attachEvent&&window.attachEvent("onload",function(){t.go()}):t.go()};};
+try{(new
g(100,"r","QSI_S_ZN_8qZUmklKYbBqAYe","https://zn8qzumklkybbqaye-suselinux.siteintercept.qualtrics.com/SIE/?Q_ZID=ZN_8qZUmklKYbBqAYe")).start()}catch(i){}})();]]>
+</script>
+ <div id='ZN_8qZUmklKYbBqAYe'><!--DO NOT REMOVE-CONTENTS PLACED HERE--></div>
+<!--END WEBSITE FEEDBACK SNIPPET-->
+</html>
\ No newline at end of file