Changeset 30681
- Timestamp:
- 2016-08-05T19:22:05+12:00 (7 years ago)
- Location:
- main/trunk/greenstone2
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/gsConvert.pl
r28355 r30681 531 531 my $launch_cmd = "\"".&util::get_perl_exec()."\" -S wvware.pl \"$input_filename\" \"$output_filestem\" \"$faillogfile\" $verbosity $timeout"; 532 532 533 #print STDERR "***** wvware launch cmd = $launch_cmd\n";533 print STDERR "***** wvware launch cmd = $launch_cmd\n"; 534 534 535 535 $wvware_status = system($launch_cmd)/256; -
main/trunk/greenstone2/bin/script/gti.pl
r30582 r30681 917 917 { 918 918 my ($file_lines, $key_to_line_mapping, $translation_file_type) = @_; 919 920 &log_message("@@@ HELLO WORLD"); 921 919 922 920 923 my %key_to_text_mapping = (); … … 930 933 # Map from chunk key to text 931 934 eval "\$key_to_text_mapping{\${chunk_key}} = &import_chunk_from_${translation_file_type}(\$chunk_text)"; 935 936 #if($chunk_key =~ m/document\\/) { 937 #&log_message("Submission source: $source_file_key_to_submission_mapping{$chunk_key}"); 938 #&log_message("@@@ chunk key: $chunk_key"); 939 #} 940 932 941 } 933 942 … … 1608 1617 1609 1618 # Line contains a dictionary string 1610 if ($line =~ /^(\S+ ?)[:|=](.*)$/) {1619 if ($line =~ /^(\S+)[:|=](.*)$/) { 1611 1620 $chunk_key = $1; 1612 1621 $startindex = $i; … … 1633 1642 1634 1643 # Simple: just remove string key 1635 $chunk_text =~ s/^(\S+ ?)[:|=](\s*)//s;1644 $chunk_text =~ s/^(\S+)[:|=](\s*)//s; 1636 1645 $chunk_text =~ s/(\s*)$//s; # Remove any nasty whitespace, carriage returns etc. 1637 1646 $chunk_text =~ s/(\s*)\#\s+Updated\s+(\d?\d-\D\D\D-\d\d\d\d.*)\s*$//is; -
main/trunk/greenstone2/bin/script/wvware.pl
r27522 r30681 217 217 if ($ENV{'GSDLOS'} !~ m/^windows$/i || $is_winnt_2000); 218 218 219 #print STDERR "***** wvware.pl launching wvware with CMD:\n\t$cmd\n";219 print STDERR "***** wvware.pl launching wvware with CMD:\n\t$cmd\n"; 220 220 221 221 # execute the command -
main/trunk/greenstone2/collect/demo/etc/collect.cfg
r27355 r30681 11 11 levels section document 12 12 13 defaultlevel document 14 13 15 plugin GreenstoneXMLPlugin 14 plugin HTMLPlugin -description_tags 16 plugin HTMLPlugin -description_tags 15 17 # following two plugins not needed for the demo collection, but are useful to 16 18 # include for tutorial purposes … … 31 33 classify List -sort_leaf_nodes_using dc.Title -metadata dls.Organization -bookshelf_type always -partition_type_within_level constant_size 32 34 33 classify List -metadata dls.Keyword - partition_type_within_level constant_size -buttonname Howto35 classify List -metadata dls.Keyword -buttonname Howto -partition_type_within_level constant_size 34 36 35 37 format CL4VList "<td>[link][icon][/link]</td><td>[link][dls.Keyword][/link]" -
main/trunk/greenstone2/etc/main.cfg
r30423 r30681 10 10 # will be disabled. 11 11 maintainer NULL 12 13 # GTI 14 translator enabled 12 15 13 16 # Outgoing (SMTP) mail server for this Greenstone installation. … … 23 26 # Set status to "enabled" if you want the Maintenance and 24 27 # Administration facility to be available. 25 status disabled28 status enabled 26 29 27 30 # Set collector to "enabled" if you want the "collector" … … 299 302 # If you want an intermediate page to warn users that they've clicked on 300 303 # an external link, then uncomment the following line 301 #cgiarg shortname=el argdefault=prompt302 304 cgiarg shortname=el argdefault=prompt 305 -
main/trunk/greenstone2/perllib/plugins/DirectoryPlugin.pm
r30022 r30681 566 566 $raw_subfile = $shortcut->Path; 567 567 } 568 $shortcut->Close(); # see http://cpansearch.perl.org/src/JDB/Win32-Shortcut-0.08/docs/reference.html 568 569 } 569 570 -
main/trunk/greenstone2/runtime-src/src/recpt/gsdl_modules_cfg.h
r21875 r30681 56 56 #define GSDL_USE_DEPOSITOR_ACTION 57 57 #define GSDL_USE_EXTLINK_ACTION 58 # undefGSDL_USE_GTI_ACTION58 #define GSDL_USE_GTI_ACTION 59 59 60 60 #ifdef ENABLE_MGPP -
main/trunk/greenstone2/runtime-src/src/recpt/gtiaction.cpp
r30620 r30681 489 489 text_t num_chunks_per_page = args["ncpp"]; 490 490 logout << "Num chunks per page: " << num_chunks_per_page << endl; 491 // logout << "@@@@ translation_file_key: " << translation_file_key << endl; // "gs3interface" for GS3 492 // logout << "@@@@ target_language_code: " << target_language_code << endl; // e.g. "nl" 491 493 492 494 disp.setmacro("gtiformcontent", "gti", "_gti:gticore_"); … … 509 511 return; 510 512 } 513 514 // logout << "@@@@ Mapping: " << gti_response.translation_files_key_to_target_file_path_mapping[translation_file_key] << endl; // empty for translation_file_key=gs3interface 511 515 512 516 languageinfo_tmap loaded_languages = recpt->get_configinfo().languages; … … 519 523 disp.setmacro("gtitranslationfiledesc", "gti", "_gti:textgti" + translation_file_key + "_"); 520 524 disp.setmacro("gtitranslationfiledescHtmlsafe", "gti", "_gti:textgti" + encodeForHTML(translation_file_key) + "_"); 525 521 526 disp.setmacro("gtiviewtranslationfileinaction", "gti", "_gti:gtiview" + translation_file_key + "inaction_"); 527 522 528 disp.setmacro("gtiviewtranslationfileinactionHtmlsafe", "gti", "_gti:gtiview" + encodeForHTML(translation_file_key) + "inaction_"); 523 529
Note:
See TracChangeset
for help on using the changeset viewer.