Changeset 1602

Show
Ignore:
Timestamp:
01/31/05 20:55:17 (4 years ago)
Author:
whmoseley
Message:

A few updates to make it work on sunsite.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/swish_website/bin/build

    r1601 r1602  
    2424#======================================================================== 
    2525 
    26  
     26$ENV{TZ} = 'UTC';  # Show all dates in UTC 
    2727 
    2828# List of pod files relative to INCLUDE_PATH 
     
    409409    ) { 
    410410        if ( -x ) { 
    411             $ver = `$_ -version`; 
     411            $ver = `$_ --version`; 
    412412            chomp $ver; 
    413413            warn "Found version [$ver] from program $_\n" if $self->config->verbose; 
  • trunk/swish_website/lib/config/page

    r1587 r1602  
    11[%- 
    2     USE Date
     2    USE Date( format = '%a, %d %b %Y %H:%M:%S %Z')
    33 
    44    USE locate = PathLocate; 
  • trunk/swish_website/lib/page/search.html

    r1593 r1602  
    2020                     metaname=request.metaname, size=request.pagesize ); 
    2121 
    22     USE result_date = Date;  # set date format for results 
     22    result_date = Date;  # set date format for results 
    2323 
    2424 
     
    8686 
    8787    <div class="search-title"> 
     88        [% IF item.Property('swishdocpath').match('archive') %] 
     89            List Archive: 
     90        [% END %] 
    8891        <a href="[% item.Property('swishdocpath') %]"> 
    8992            [%  item.Property('swishtitle') || 'missing title' | highlight('swishtitle', item ) %]</a> 
     
    101104            - [% item.Property('swishdocsize') %] bytes<br> 
    102105        Date: [% result_date.format( item.Property('swishlastmodified')) %]<br> 
     106 
     107        [% IF  item.Property('swishdocpath').match('devel_docs') %] 
     108            Warning: <b>** Development Documentation **</b> 
     109        [% END %] 
    103110    </div> 
     111 
    104112[% END %] 
    105113 
  • trunk/swish_website/src/search/.htaccess

    r1587 r1602  
    11<files index.html> 
     2    SetEnv LD_LIBRARY_PATH /usr/local/lib 
    23    Options +ExecCGI 
    34    SetHandler cgi-script 
  • trunk/swish_website/src/search/index.html

    r1595 r1602  
    1818use vars '$VERSION'; 
    1919$VERSION = '1.1'; 
     20 
     21# show dates in UTC 
     22$ENV{TZ} = 'UTC'; 
    2023 
    2124 
     
    7477 
    7578 
     79 
    7680# Params used for the highlighting modules 
    7781 
     
    210214    my $msg; 
    211215 
     216    # $$$ TODO need to test for index file being modified 
     217    # one trick is to touch public_html/seach/index.html and then speedy will reload. 
     218 
    212219    if ( ! $swish ) { 
    213         $swish = SWISH::API->new( $config->{index} ); 
     220        my $index = $config->{index}; 
     221 
     222        # Hack in search for archive index. 
     223        my $archive_index = '../../../search/index.swish-e'; 
     224        $index = "$index $archive_index" if -f $archive_index; 
     225 
     226        $swish = SWISH::API->new( $index ); 
    214227        die "Failed to create SWISH::API object" unless $swish; 
    215228        return { message => check_swish_error( $swish ) } if $swish->Error;