[open-ils-commits] [GIT] Evergreen ILS branch master updated. e4e8dda3b09ce11acc85cb526c22c1c99b0d8589

Evergreen Git git at git.evergreen-ils.org
Wed Apr 17 13:15:45 EDT 2013


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, master has been updated
       via  e4e8dda3b09ce11acc85cb526c22c1c99b0d8589 (commit)
      from  2fb125be8ae168cef03c947cedcc9c7db9ba4e28 (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 e4e8dda3b09ce11acc85cb526c22c1c99b0d8589
Author: Mike Rylander <mrylander at gmail.com>
Date:   Wed Apr 17 12:08:41 2013 -0400

    Address hash/list thinko; Ensure initialization
    
    Two cascading defects were identified after being reported by users. The
    first, which was only a potential issue, was an apparent lack of mod_perl
    initialization for the item-age record feed.  While not the direct cause
    of the error message, a lack of initialization here would manifest in the
    same way.  So, we check that initialization.
    
    Feed-generating callbacks were not being constructed properly due to a
    simple thinko in the construction of the default record format list provided
    by the SuperCat backend.  We need a list of two hashes, not a hash of two
    keys.
    
    Signed-off-by: Mike Rylander <mrylander at gmail.com>
    Signed-off-by: Jason Stephenson <jstephenson at mvlc.org>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm
index c8d35b6..2e7000e 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm
@@ -3002,8 +3002,8 @@ sub list_record_formats {
 			  docs		  => 'http://www.loc.gov/marcxml/',
 			  schema_location => 'http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd',
 			},
-		  marc21 => { docs => 'http://www.loc.gov/marc/' }
 		},
+		{ marc21 => { docs => 'http://www.loc.gov/marc/' } }
 	);
 
 	for my $type ( keys %record_xslt ) {
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm
index 1956b5a..16fdb24 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm
@@ -1713,6 +1713,8 @@ sub item_age_browse {
     my $apache = shift;
     return Apache2::Const::DECLINED if (-e $apache->filename);
 
+    check_child_init();
+
     my $cgi = new CGI;
     my $year = (gmtime())[5] + 1900;
 

-----------------------------------------------------------------------

Summary of changes:
 .../perlmods/lib/OpenILS/Application/SuperCat.pm   |    2 +-
 Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm  |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list