Fixed bug #1013. Works for me, if someone can check.

This commit is contained in:
doxulting 2005-10-05 16:19:21 +00:00
parent 20bb2896d6
commit b65bf02b9c

View file

@ -130,7 +130,15 @@ if ($op eq "do_search") {
if ($tag) {
push @tags,$dbh->quote("$tag$subfield");
} else {
push @tags, $dbh->quote(substr($marc,0,4));
if ($marc =~ /^(\d){3}(. -)(.)*/)
{
# The user is using the search catalogue part, more fields
push @tags, $dbh->quote(substr($marc,0,4));
}
else
{
push @tags, $marc;
}
}
} else {
push @tags, "";