13 |
h1 { _("Search out data") }, |
h1 { _("Search out data") }, |
14 |
form { |
form { |
15 |
render_param( $action => 'field', default_value => get('field') ), |
render_param( $action => 'field', default_value => get('field') ), |
16 |
|
render_param( $action => 'database', default_value => get('database') ), |
17 |
render_param( $action => 'query', default_value => get('query') ), |
render_param( $action => 'query', default_value => get('query') ), |
18 |
form_submit( |
form_submit( |
19 |
label => _('Search'), |
label => _('Search'), |
24 |
|
|
25 |
if ( my $results = $action->result->content( 'results' ) ) { |
if ( my $results = $action->result->content( 'results' ) ) { |
26 |
ul { |
ul { |
27 |
while ( my $row = $results->next ) { |
while ( my $ds = $results->next ) { |
28 |
warn "view :: row = ",dump( $row ); |
warn "view :: ds = ",dump( $ds ); |
29 |
li { |
li { |
30 |
div { |
div { |
31 |
$row->( 'TitleProper' ) . '. ' . $row->( 'Series' ) |
$ds->display( 'TitleProper' ) . '. ' . $ds->display( 'Series' ) |
32 |
} |
} |
33 |
div { $row->( 'DatePublication' ) } |
div { $ds->display( 'DatePublication' ) } |
34 |
my $po = $row->( 'PripadajuciOznaka' ); |
my $po = $ds->display( 'PripadajuciOznaka' ); |
35 |
warn('$po=',dump($po)); |
warn('$po=',dump($po)); |
36 |
my @po = $row->( 'PripadajuciOznaka' ); |
my @po = $ds->display( 'PripadajuciOznaka' ); |
37 |
warn('@po=',dump(@po)); |
warn('@po=',dump(@po)); |
38 |
ul { attr { class => 'linked'}; |
ul { attr { class => 'linked'}; |
39 |
foreach my $i ( @po ) { |
foreach my $i ( @po ) { |
44 |
} |
} |
45 |
} |
} |
46 |
} |
} |
47 |
div { $row->( 'Fond' ) } |
div { $ds->display( 'Fond' ) } |
48 |
div { $row->( 'ISBN' ) } |
div { $ds->display( 'ISBN' ) } |
49 |
tt { $row->( 'database' ) . '/' . $row->( 'input' ) . '/' . $row->( 'id' ) } |
tt { $ds->display( 'database' ) . '/' . $ds->display( 'input' ) . '/' . $ds->display( 'id' ) } |
50 |
} |
} |
51 |
} |
} |
52 |
} |
} |