From 9af001703330ce5da004929d63b1374012dd7c09 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 7 Feb 2008 00:11:38 -0600 Subject: [PATCH] authorities: limit by heading type during matching Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Heading.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Heading.pm b/C4/Heading.pm index 701cfbf394..94592e64f2 100644 --- a/C4/Heading.pm +++ b/C4/Heading.pm @@ -152,8 +152,8 @@ sub preferred_authorities { sub _query_limiters { my $self = shift; - my $limiters = ""; + my $limiters = " AND at='$self->{'auth_type'}'"; if ($self->{'subject_added_entry'}) { $limiters .= " AND Heading-use-subject-added-entry=a"; # FIXME -- is this properly in C4::Heading::MARC21? $limiters .= " AND Subject-heading-thesaurus=$self->{'thesaurus'}"; -- 2.39.5