Skip to content

Commit

Permalink
Bugfixing Generierung top-id und top-title fuer Hierarchien (funktion…
Browse files Browse the repository at this point in the history
…iert nun auch mit Hierarchien, die nicht mit Beständen enden).
  • Loading branch information
Basil Marti committed May 15, 2017
1 parent b9007b7 commit 4674e3e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
File renamed without changes.
17 changes: 5 additions & 12 deletions transform.seq2hanmarc.pl
Original file line number Diff line number Diff line change
Expand Up @@ -130,19 +130,12 @@
sub addparents{
my $sysnum = $_[0];

my $toptitle;
my $topid;
my $topid = $sysnum;
my $toptitle = $f245a{$sysnum};
my $parent = $f490w{$sysnum};

if ($sysnum && ($sysnum != '000000000')) {

$topid = $sysnum;
$toptitle = $f245a{$sysnum};

my $parent = $f490w{$sysnum};

unless (defined $f351c{$sysnum} && $f351c{$sysnum} =~ /(Abteilung|Hauptabteilung|Bestand)/) {
($topid, $toptitle) = addparents($parent);
}
unless (($f351c{$sysnum} =~ /(Abteilung|Hauptabteilung|Bestand)/) || !($f490w{$sysnum})) {
($topid, $toptitle) = addparents($parent);
}
return ($topid, $toptitle);
};
2 changes: 1 addition & 1 deletion workflow.HAN.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ DO_FINISH=0

if [ "$DO_DOWNLOAD" == "1" ]; then
echo "Downloading Aleph-Sequential"
$basedir/download-dsv05-sequential.sh
$basedir/download.dsv05.sequential.sh
mv $basedir/dsv05.seq $basedir/raw.hanseq/
fi

Expand Down

0 comments on commit 4674e3e

Please sign in to comment.