- Timestamp:
- 2018-10-25T19:35:32+13:00 (5 years ago)
- Location:
- main/trunk/greenstone2/perllib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/inexport.pm
r32539 r32540 680 680 push @$plugout,("-gzip_output") if ($gzip); 681 681 push @$plugout,("-output_handle",$out) if (defined $out); 682 push @$plugout,("-site_name",$self->{'site'}) if (defined $self->{'site'}); 682 683 683 684 push @$plugout,("-xslt_file",$xsltfile) if (defined $xsltfile && $xsltfile ne ""); -
main/trunk/greenstone2/perllib/plugouts/BasePlugout.pm
r32519 r32540 44 44 $SIG{__WARN__} = sub {warn($_[0]) unless ($_[0] =~ /Subroutine\s+\S+\sredefined/)}; 45 45 46 my $arguments = [ 46 my $arguments = [ 47 { 'name' => "site_name", 48 'desc' => "{BasPlugout.site_name}", 49 'type' => "string", 50 'reqd' => "no", 51 'hiddengli' => "yes" }, 47 52 { 'name' => "xslt_file", 48 53 'desc' => "{BasPlugout.xslt_file}", … … 135 140 # the args, just return the object. 136 141 #print STDERR "#### " . join(",", @${args}) . "\n\n"; 142 my $v=0; 137 143 foreach my $strArg (@{$args}) 138 144 { 139 if(defined $strArg && $strArg eq "-gsdlinfo") 140 { 141 $self->{"info_only"} = 1; 142 return bless $self, $class; 145 if(defined $strArg) { 146 if($strArg eq "-gsdlinfo") 147 { 148 $self->{"info_only"} = 1; 149 return bless $self, $class; 150 } 151 elsif ($strArg eq "-site_name") { 152 $v = $strArg; 153 } 154 elsif($v eq "-site_name") { 155 $self->{'site_name'} = $strArg; 156 } 143 157 } 144 158 } -
main/trunk/greenstone2/perllib/strings.properties
r32537 r32540 1236 1236 PrintInfo.desc:Most base plugin, handles printing info (using pluginfo.pl) and parsing of the arguments. 1237 1237 1238 PrintInfo.site_name:The name of the Greenstone 3 site. The default site for a GS3 installation is localsite. 1239 1238 1240 ProCitePlugin.desc:A plugin for (exported) ProCite databases 1239 1241 … … 1418 1420 BasPlugout.no_auxiliary_databases:Don't generate archivesinf databases - useful when exporting. 1419 1421 # ' 1422 BasPlugout.site_name:The name of the Greenstone 3 site. The default site for a GS3 installation is localsite. 1420 1423 BasPlugout.output_handle: the file descriptor used to receive output data 1421 1424 BasPlugout.output_info:The reference to an arcinfo object used to store information about the archives. … … 1445 1448 METSPlugout.xslt_mets:Transform a mets's docmets.xml with the XSLT in the named file. 1446 1449 1447 GreenstoneSQLPlugout.desc:Output metadata and/or full text to a MySQL database instead of doc.xml.1450 GreenstoneSQLPlugout.desc:Output metadata and/or full text to a MySQL database (named after GS3 site name for GS3 or named greenstone2 for GS2) instead of doc.xml. For Greenstone 3, the database name is the GS3 site name. For Greenstone 2, the database name is greenstone2. 1448 1451 1449 1452 # … … 1454 1457 GreenstoneSQLPlug.process_mode.meta_only:Import stage outputs the metadata to a MySQL database and any text to doc.xml. 1455 1458 GreenstoneSQLPlug.process_mode.text_only:Import stage outputs the full text to a MySQL database and any metadata to doc.xml. 1456 1459 GreenstoneSQLPlug.db_driver:The database driver. Support has been implemented for MySQL so far, so the default is mysql. 1460 GreenstoneSQLPlug.db_client_user:The username with which you connect to the (My)SQL database, root by default. 1461 GreenstoneSQLPlug.db_client_pwd:The password with which you connect to the (My)SQL database. 1462 GreenstoneSQLPlug.db_host:The hostname on which the (My)SQL database server is running, 127.0.0.1 by default. Other values to try include localhost. 1463 GreenstoneSQLPlug.db_encoding:The encoding of the contents of the database, utf8 by default. For other options, see https://dev.mysql.com/doc/refman/5.7/en/charset-applications.html. Use the same encoding to write contents to the database with GreenstoneSQLPlugout as to read back in with GreenstoneSQLPlugin. 1457 1464 1458 1465 #
Note:
See TracChangeset
for help on using the changeset viewer.