Adding titles to claimissues letter.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Henri-Damien LAURENT 2007-10-31 13:12:14 -05:00 committed by Joshua Ferraro
parent 973adba104
commit d2b15eeb9a
2 changed files with 9 additions and 3 deletions

View File

@ -371,7 +371,7 @@ sub SendAlerts {
# prepare the letter...
# search the biblionumber
my $strsth =
"select serial.*,subscription.*, biblio.title from serial LEFT JOIN subscription on serial.subscriptionid=subscription.subscriptionid LEFT JOIN biblio on serial.biblionumber=biblio.biblionumber where serial.serialid IN ("
"select serial.*,subscription.*, biblio.* from serial LEFT JOIN subscription on serial.subscriptionid=subscription.subscriptionid LEFT JOIN biblio on serial.biblionumber=biblio.biblionumber where serial.serialid IN ("
. join( ",", @$externalid ) . ")";
my $sthorders = $dbh->prepare($strsth);
$sthorders->execute;

View File

@ -193,8 +193,14 @@ if ( $op eq 'add_form' ) {
);
push @SQLfieldname, \%line;
}
# add biblio specific tables.
my %line = ( 'value' => "", 'text' => '---Biblio---' );
push @SQLfieldname, \%line;
my %line = ('value' => "biblio.title",'text' => "Title");
push @SQLfieldname, \%line;
my %line = ('value' => "biblio.author",'text' => "Author");
push @SQLfieldname, \%line;
my %line = ('value' => "biblio.serial",'text' => "Serial");
push @SQLfieldname, \%line;
}
else {
my $sth2 = $dbh->prepare("SHOW COLUMNS from biblio");