310 |
chop $tags_using_authtype; |
chop $tags_using_authtype; |
311 |
if ($tags_using_authtype) { |
if ($tags_using_authtype) { |
312 |
$sth = $dbh->prepare("select count(*) from marc_subfield_table where concat(tag,subfieldcode) in ($tags_using_authtype) and subfieldvalue=?"); |
$sth = $dbh->prepare("select count(*) from marc_subfield_table where concat(tag,subfieldcode) in ($tags_using_authtype) and subfieldvalue=?"); |
313 |
} else { |
# } else { |
314 |
$sth = $dbh->prepare("select count(*) from marc_subfield_table where subfieldvalue=?"); |
# $sth = $dbh->prepare("select count(*) from marc_subfield_table where subfieldvalue=?"); |
315 |
} |
} |
316 |
# warn "Q : select count(*) from marc_subfield_table where concat(tag,subfieldcode) in ($tags_using_authtype) and subfieldvalue=$authid"; |
# warn "Q : select count(*) from marc_subfield_table where concat(tag,subfieldcode) in ($tags_using_authtype) and subfieldvalue=$authid"; |
317 |
$sth->execute($authid); |
$sth->execute($authid); |
938 |
|
|
939 |
# $Id$ |
# $Id$ |
940 |
# $Log$ |
# $Log$ |
941 |
|
# Revision 1.9.2.9 2005/12/01 17:30:26 tipaul |
942 |
|
# no need to do a search on an authority when the authority has no MARC field (like EDITORS pseudo authority) |
943 |
|
# |
944 |
# Revision 1.9.2.8 2005/10/25 12:38:59 tipaul |
# Revision 1.9.2.8 2005/10/25 12:38:59 tipaul |
945 |
# * fixing bug in summary (separator before subfield was in fact after) |
# * fixing bug in summary (separator before subfield was in fact after) |
946 |
# * fixing bug in authority order : authorities are not ordered alphabetically instead of no order. Requires all the dataset to be retrieved, but the benefits is important ! |
# * fixing bug in authority order : authorities are not ordered alphabetically instead of no order. Requires all the dataset to be retrieved, but the benefits is important ! |