[open-ils-commits] [GIT] Evergreen ILS branch rel_2_11 updated. eb52391c01532f7f3a714ed258a751bd73b3bad1

Evergreen Git git at git.evergreen-ils.org
Thu Apr 20 17:21:49 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_11 has been updated
       via  eb52391c01532f7f3a714ed258a751bd73b3bad1 (commit)
      from  55ae9538cdf6be5a59e45fb96c2e639b4134e074 (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 eb52391c01532f7f3a714ed258a751bd73b3bad1
Author: Dan Wells <dbw2 at calvin.edu>
Date:   Wed Apr 19 17:37:56 2017 -0400

    Forward-port 2.11.4 upgrade script
    
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>

diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.11.3-2.11.4-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.11.3-2.11.4-upgrade-db.sql
new file mode 100644
index 0000000..340db09
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/version-upgrade/2.11.3-2.11.4-upgrade-db.sql
@@ -0,0 +1,46 @@
+--Upgrade Script for 2.11.3 to 2.11.4
+\set eg_version '''2.11.4'''
+BEGIN;
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('2.11.4', :eg_version);
+
+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:
 ...upgrade-db.sql => 2.11.3-2.11.4-upgrade-db.sql} |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
 copy Open-ILS/src/sql/Pg/version-upgrade/{2.10.10-2.10.11-upgrade-db.sql => 2.11.3-2.11.4-upgrade-db.sql} (90%)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list