[open-ils-commits] [GIT] Evergreen ILS branch rel_2_10 updated. 5bcd0af9c6962f4aaa04f607db44b78d85a3b4f8
Evergreen Git
git at git.evergreen-ils.org
Wed Apr 19 14:25:45 EDT 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_10 has been updated
via 5bcd0af9c6962f4aaa04f607db44b78d85a3b4f8 (commit)
from cadabc997aaf3c28dfacce4c66f317433f58ac35 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5bcd0af9c6962f4aaa04f607db44b78d85a3b4f8
Author: Galen Charlton <gmc at equinoxinitiative.org>
Date: Wed Apr 19 14:23:24 2017 -0400
2.10.10-2.10.11 schema update
Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>
diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.10.10-2.10.11-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.10.10-2.10.11-upgrade-db.sql
new file mode 100644
index 0000000..de5171e
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/version-upgrade/2.10.10-2.10.11-upgrade-db.sql
@@ -0,0 +1,45 @@
+--Upgrade Script for 2.10.10 to 2.10.11
+\set eg_version '''2.10.11'''
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1030', :eg_version);
+
+CREATE OR REPLACE FUNCTION evergreen.oils_xslt_process(TEXT, TEXT) RETURNS TEXT AS $func$
+ use strict;
+
+ use XML::LibXSLT;
+ use XML::LibXML;
+
+ my $doc = shift;
+ my $xslt = shift;
+
+ # The following approach uses the older XML::LibXML 1.69 / XML::LibXSLT 1.68
+ # methods of parsing XML documents and stylesheets, in the hopes of broader
+ # compatibility with distributions
+ my $parser = $_SHARED{'_xslt_process'}{parsers}{xml} || XML::LibXML->new();
+
+ # Cache the XML parser, if we do not already have one
+ $_SHARED{'_xslt_process'}{parsers}{xml} = $parser
+ unless ($_SHARED{'_xslt_process'}{parsers}{xml});
+
+ my $xslt_parser = $_SHARED{'_xslt_process'}{parsers}{xslt} || XML::LibXSLT->new();
+
+ # Cache the XSLT processor, if we do not already have one
+ $_SHARED{'_xslt_process'}{parsers}{xslt} = $xslt_parser
+ unless ($_SHARED{'_xslt_process'}{parsers}{xslt});
+
+ my $stylesheet = $_SHARED{'_xslt_process'}{stylesheets}{$xslt} ||
+ $xslt_parser->parse_stylesheet( $parser->parse_string($xslt) );
+
+ $_SHARED{'_xslt_process'}{stylesheets}{$xslt} = $stylesheet
+ unless ($_SHARED{'_xslt_process'}{stylesheets}{$xslt});
+
+ return $stylesheet->output_as_chars(
+ $stylesheet->transform(
+ $parser->parse_string($doc)
+ )
+ );
+
+$func$ LANGUAGE 'plperlu' STRICT IMMUTABLE;
+
+COMMIT;
-----------------------------------------------------------------------
Summary of changes:
.../2.10.10-2.10.11-upgrade-db.sql} | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
copy Open-ILS/src/sql/Pg/{upgrade/1030.function.oils_xslt_process_utf8_fix.sql => version-upgrade/2.10.10-2.10.11-upgrade-db.sql} (95%)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list