15 |
|
|
16 |
my $webpac = new WebPAC( |
my $webpac = new WebPAC( |
17 |
code_page => 'ISO-8859-2', |
code_page => 'ISO-8859-2', |
18 |
limit_mfn => 5, |
limit_mfn => 500, |
19 |
debug => 1, |
debug => 1, |
20 |
) || die; |
) || die; |
21 |
|
|
38 |
|
|
39 |
while (my $rec = $webpac->fetch_rec) { |
while (my $rec = $webpac->fetch_rec) { |
40 |
|
|
41 |
my $ds = $webpac->data_structure($rec); |
my @ds = $webpac->data_structure($rec); |
42 |
|
|
43 |
if(0) { |
print $webpac->output( |
44 |
|
template => 'text.tt', |
45 |
print "-- ",$webpac->parse($rec,'v250^a / [v562^4] v562^a'),"\n"; |
data => \@ds, |
46 |
|
) if (@ds); |
|
print " ", |
|
|
$webpac->parse($rec,'eval{v901^a eq "Deskriptor"}v250^a / [v562^4] v562^a'), |
|
|
$webpac->parse($rec,'eval{v901^a ne "Deskriptor"}250a [251]'), |
|
|
"\n"; |
|
|
|
|
|
my @t = $webpac->fill_in($rec,'v553^1;;v553^a'); |
|
|
print " Uži pojam: ",join("\t\n",@t),"\n" if (@t); |
|
|
|
|
|
@t = $webpac->fill_in($rec,'eval{v901^a eq "Područje"}[a:v251::];;[d:[a:v251::]]'); |
|
|
print " Područje: ",join("\t\n",@t),"\n" if (@t); |
|
|
|
|
|
@t = $webpac->fill_in($rec,'eval{v901^a eq "Mikrotezaurus"}[a:v561^4:v251:];;[d:[a:v561^4:v251:]]'); |
|
|
print " Mikrotezaurus: ",join("\t\n",@t),"\n" if (@t); |
|
|
|
|
|
@t = $webpac->fill_in($rec,'eval{v901^a eq "Deskriptor"}[a:v561^4:v562^4:v900];;[d:[a:v561^4:v562^4:v900]]'); |
|
|
print " Deskriptor: ",join("\t\n",@t),"\n" if (@t); |
|
|
} |
|
47 |
|
|
48 |
} |
} |
49 |
|
|