- else {
- my $sth2 = $dbh->prepare("SHOW COLUMNS from biblio");
- $sth2->execute;
- my %line = ( 'value' => "", 'text' => '---BIBLIO---' );
-
- push @SQLfieldname, \%line;
- while ( ( my $field ) = $sth2->fetchrow_array ) {
-
-# note : %line is redefined, otherwise \%line contains the same value for every entry of the list
- my %line = ( 'value' => "biblio." . $field, 'text' => "biblio." . $field );
- push @SQLfieldname, \%line;
- }
- my $sth2 = $dbh->prepare("SHOW COLUMNS from biblioitems");
- $sth2->execute;
- my %line = ( 'value' => "", 'text' => '---BIBLIOITEMS---' );
- push @SQLfieldname, \%line;
- while ( ( my $field ) = $sth2->fetchrow_array ) {
- my %line = (
- 'value' => "biblioitems." . $field,
- 'text' => "biblioitems." . $field
- );
- push @SQLfieldname, \%line;
- }
- my %line = ( 'value' => "", 'text' => '---ITEMS---' );
- push @SQLfieldname, \%line;
- my %line = ( 'value' => "items.content", 'text' => 'items.content' );
- push @SQLfieldname, \%line;
-
- my $sth2 = $dbh->prepare("SHOW COLUMNS from borrowers");
- $sth2->execute;
- my %line = ( 'value' => "", 'text' => '---BORROWERS---' );
- push @SQLfieldname, \%line;
- while ( ( my $field ) = $sth2->fetchrow_array ) {
- my %line = (
- 'value' => "borrowers." . $field,
- 'text' => "borrowers." . $field
- );
- push @SQLfieldname, \%line;
+ elsif ($module eq 'claimissues') {
+ push @{$field_selection}, add_fields('aqbooksellers', 'serial', 'subscription');
+ push @{$field_selection},
+ {
+ value => q{},
+ text => '---BIBLIO---'
+ };
+ foreach(qw(title author serial)) {
+ push @{$field_selection}, {value => "biblio.$_", text => ucfirst $_ };