[interchange-cvs] interchange - racke modified lib/Vend/Swish2.pm

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Wed Jun 28 08:07:25 EDT 2006


User:      racke
Date:      2006-06-28 12:07:24 GMT
Modified:  lib/Vend Swish2.pm
Log:
made output of modified date compatible to old Swish module

Revision  Changes    Path
1.8       +6 -3      interchange/lib/Vend/Swish2.pm


rev 1.8, prev_rev 1.7
Index: Swish2.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Swish2.pm,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- Swish2.pm	23 Jun 2006 20:19:33 -0000	1.7
+++ Swish2.pm	28 Jun 2006 12:07:24 -0000	1.8
@@ -1,6 +1,6 @@
 # Vend::Swish2 - Search indexes with Swish-e's new SWISH::API
 #
-# $Id: Swish2.pm,v 1.7 2006/06/23 20:19:33 racke Exp $
+# $Id: Swish2.pm,v 1.8 2006/06/28 12:07:24 racke Exp $
 #
 # Adapted from Vend::Swish by Brian Miller <brian at endpoint.com>
 #
@@ -26,7 +26,7 @@
 require Vend::Search;
 @ISA = qw(Vend::Search);
 
-$VERSION = substr(q$Revision: 1.7 $, 10);
+$VERSION = substr(q$Revision: 1.8 $, 10);
 use strict;
 
 use SWISH::API;
@@ -241,7 +241,10 @@
                 }
                 push @$out_ref, $text;
             }
-            else {
+			elsif ($field eq 'mod_date') {
+				push @$out_ref, POSIX::strftime('%Y-%m-%d %H:%M:%S', localtime($result->Property( $fmap{$field} )));
+			}
+			else {
                 push @$out_ref, $result->Property( $fmap{$field} );
             }
         }








More information about the interchange-cvs mailing list