276 |
return(9, $l->{"a:$code:"} ) if (defined($l->{"a:$code:"})); |
return(9, $l->{"a:$code:"} ) if (defined($l->{"a:$code:"})); |
277 |
}, |
}, |
278 |
style => 'display: none', |
style => 'display: none', |
279 |
|
iframe => 1, |
280 |
},{ |
},{ |
281 |
# 1 |
# 1 |
282 |
code_arr => sub { @{$_[0]} }, |
code_arr => sub { @{$_[0]} }, |
286 |
lookup_mfn => sub { shift @{$l->{"900_mfn:".$_[0]}} }, |
lookup_mfn => sub { shift @{$l->{"900_mfn:".$_[0]}} }, |
287 |
have_children => sub { return $l->{"a:".$_[1].":"} }, |
have_children => sub { return $l->{"a:".$_[1].":"} }, |
288 |
style => 'display: none', |
style => 'display: none', |
|
iframe => 1, |
|
289 |
},{ |
},{ |
290 |
# 2 |
# 2 |
291 |
code_arr => sub { @{$_[0]} }, |
code_arr => sub { @{$_[0]} }, |
360 |
tree => \@tree, |
tree => \@tree, |
361 |
detail_url => sub { |
detail_url => sub { |
362 |
my $mfn = shift; |
my $mfn = shift; |
363 |
my $url = "./out/thes/${mfn}.html"; |
my $url = "thes/${mfn}.html"; |
364 |
return $url if (-e $url); |
return $url if (-e "./out/$url"); |
365 |
}, |
}, |
366 |
|
nodes_dir => 'nodes', |
367 |
); |
); |
368 |
|
|
369 |
$tree->output( |
$tree->output( |
372 |
template_dir => './output_template/', |
template_dir => './output_template/', |
373 |
template_tree => 'tree.tt', |
template_tree => 'tree.tt', |
374 |
template_node => 'node.tt', |
template_node => 'node.tt', |
|
nodes => 'nodes', |
|
375 |
js => 'tree-ids.js', |
js => 'tree-ids.js', |
376 |
); |
); |
377 |
|
|
381 |
template_dir => './output_template/', |
template_dir => './output_template/', |
382 |
template_tree => 'hijerarhija.tt', |
template_tree => 'hijerarhija.tt', |
383 |
template_node => 'hijerarhija_node.tt', |
template_node => 'hijerarhija_node.tt', |
|
nodes => 'nodes', |
|
384 |
js => 'tree-ids.js', |
js => 'tree-ids.js', |
385 |
); |
); |
386 |
|
|