Changeset 1602
- Timestamp:
- 01/31/05 20:55:17 (4 years ago)
- Files:
-
- trunk/swish_website/bin/build (modified) (2 diffs)
- trunk/swish_website/lib/config/page (modified) (1 diff)
- trunk/swish_website/lib/page/search.html (modified) (3 diffs)
- trunk/swish_website/src/search/.htaccess (modified) (1 diff)
- trunk/swish_website/src/search/index.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/swish_website/bin/build
r1601 r1602 24 24 #======================================================================== 25 25 26 26 $ENV{TZ} = 'UTC'; # Show all dates in UTC 27 27 28 28 # List of pod files relative to INCLUDE_PATH … … 409 409 ) { 410 410 if ( -x ) { 411 $ver = `$_ - version`;411 $ver = `$_ --version`; 412 412 chomp $ver; 413 413 warn "Found version [$ver] from program $_\n" if $self->config->verbose; trunk/swish_website/lib/config/page
r1587 r1602 1 1 [%- 2 USE Date ;2 USE Date( format = '%a, %d %b %Y %H:%M:%S %Z'); 3 3 4 4 USE locate = PathLocate; trunk/swish_website/lib/page/search.html
r1593 r1602 20 20 metaname=request.metaname, size=request.pagesize ); 21 21 22 USEresult_date = Date; # set date format for results22 result_date = Date; # set date format for results 23 23 24 24 … … 86 86 87 87 <div class="search-title"> 88 [% IF item.Property('swishdocpath').match('archive') %] 89 List Archive: 90 [% END %] 88 91 <a href="[% item.Property('swishdocpath') %]"> 89 92 [% item.Property('swishtitle') || 'missing title' | highlight('swishtitle', item ) %]</a> … … 101 104 - [% item.Property('swishdocsize') %] bytes<br> 102 105 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 %] 103 110 </div> 111 104 112 [% END %] 105 113 trunk/swish_website/src/search/.htaccess
r1587 r1602 1 1 <files index.html> 2 SetEnv LD_LIBRARY_PATH /usr/local/lib 2 3 Options +ExecCGI 3 4 SetHandler cgi-script trunk/swish_website/src/search/index.html
r1595 r1602 18 18 use vars '$VERSION'; 19 19 $VERSION = '1.1'; 20 21 # show dates in UTC 22 $ENV{TZ} = 'UTC'; 20 23 21 24 … … 74 77 75 78 79 76 80 # Params used for the highlighting modules 77 81 … … 210 214 my $msg; 211 215 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 212 219 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 ); 214 227 die "Failed to create SWISH::API object" unless $swish; 215 228 return { message => check_swish_error( $swish ) } if $swish->Error;
