Skip to content

Commit

Permalink
Merge branch 'test' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Basil Marti authored Sep 20, 2018
2 parents c899216 + d586669 commit 59abb0a
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 15 deletions.
4 changes: 2 additions & 2 deletions bin/devel/create-delta-files_initialserials.pl
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ =head1 HISTORY
# ---------------------------
my $FULL_XML = 'basel-bern-emedia.xml';
my $DELTA_XML = 'sersol-idsbb-emedia-initialserials.xml';
my $DATA_DIR = '/opt/data/e-books/data';
my $DOWNLOAD_DIR= '/opt/data/e-books/download';
my $DATA_DIR = '/opt/data/e-books_test/data';
my $DOWNLOAD_DIR= '/opt/data/e-books_test/download';
#my $DATA_DIR = '/opt/data/e-books/data';
#my $DOWNLOAD_DIR= '/opt/data/e-books/download';

Expand Down
9 changes: 5 additions & 4 deletions bin/devel/initial-load-e_swissbib-db.pl
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@
source: basel-bern-emedia.xml
EOD
#@print "komplett neu aufbauen [j/N] ? ";
#my $ans = <STDIN>;
#exit unless $ans =~ /j/i;

@print "komplett neu aufbauen [j/N] ? ";
my $ans = <STDIN>;
exit unless $ans =~ /j/i;

my $PACIF = 500;
my $pacif = $PACIF;
Expand All @@ -60,7 +61,7 @@

my $XML;
if ( hostname eq 'ub-catmandu' ) {
$XML='/opt/data/e-books/data/basel-bern-emedia.xml';
$XML='/opt/data/e-books_test/data/basel-bern-emedia.xml';
} else {
$XML = '../../data/basel-bern-emedia.xml';
}
Expand Down
2 changes: 1 addition & 1 deletion bin/devel/initial-load-serials_swissbib-db.pl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

my $XML;
if ( hostname eq 'ub-catmandu' ) {
$XML='/opt/data/e-books/data/basel-bern-emedia.xml';
$XML='/opt/data/e-books_test/data/basel-bern-emedia.xml';
} else {
$XML = '../../data/basel-bern-emedia.xml';
}
Expand Down
4 changes: 2 additions & 2 deletions bin/e_swissbib_db.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ my $cfg = new Config::Simple('/opt/scripts/e-books/bin/idsbb_emedia.conf');
my $cfg_hidden = new Config::Simple($cfg->param('HIDDENCONF'));
use strict;

my $DBHOST = 'ub-filesvm';
my $DB_NAME = 'e_swissbib';
my $DBHOST = 'localhost';
my $DB_NAME = 'e_swissbib_test';
my $DBUSER = 'e_swissbib_staff';
my $DBPASSWORD = $cfg_hidden->param('DBPASSWORD');

Expand Down
5 changes: 3 additions & 2 deletions bin/ftp-download-data.pl
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ sub extract_mono_full {
unlink $MONO_RUN_SUMMARY;
unlink 'RunSummary.txt';


my @lib = keys %{$downloads->{mono_full}};

foreach my $lib ( @lib ) {
Expand Down Expand Up @@ -270,7 +271,7 @@ sub extract_ser_full {
unlink 'RunSummary.txt';

my @lib = keys %{$downloads->{ser_full}};

foreach my $lib ( @lib ) {
my @zip = glob( $downloads->{ser_full}->{$lib} );
my $zip = $zip[0];
Expand Down Expand Up @@ -307,7 +308,7 @@ sub extract_mono_delta {
say "ftp: extracting monographs delta\n";

my @key = keys %{$downloads->{mono_delta}};

foreach my $key ( @key ) {
my $dir = $key .'_delta';
mkdir $dir
Expand Down
8 changes: 4 additions & 4 deletions bin/idsbb_emedia.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DATADIR='/opt/data/e-books/data'
DOWNLOADDIR='/opt/data/e-books/download'
LOGDIR='/opt/data/e-books/log'
HIDDENCONF='/opt/scripts/e-books/bin/idsbb_emedia_hidden.conf'
DATADIR='/opt/data/e-books_test/data'
DOWNLOADDIR='/opt/data/e-books_test/download'
LOGDIR='/opt/data/e-books_test/log'
HIDDENCONF='/opt/scripts/e-books/bin/idsbb_emedia_hidden_test.conf'

0 comments on commit 59abb0a

Please sign in to comment.