3 |
# $Id$ |
# $Id$ |
4 |
# |
# |
5 |
# $Log$ |
# $Log$ |
6 |
|
# Revision 1.48 2004/10/28 11:35:51 jonen |
7 |
|
# + bugfix related to select-criterias(filter) |
8 |
|
# |
9 |
# Revision 1.47 2004/08/31 14:26:08 jonen |
# Revision 1.47 2004/08/31 14:26:08 jonen |
10 |
# updated |
# updated |
11 |
# |
# |
727 |
|
|
728 |
} elsif (my $guid = $query->{options}->{GUID}) { |
} elsif (my $guid = $query->{options}->{GUID}) { |
729 |
$type = 'TRANSPARENT'; |
$type = 'TRANSPARENT'; |
730 |
$query->{criterias} = [ { key => 'guid', op => 'eq', val => $guid } ]; |
if(ref($query->{criterias}) eq 'ARRAY') { |
731 |
|
push @{$query->{criterias}}, { key => 'guid', op => 'eq', val => $guid }; |
732 |
|
} else { |
733 |
|
$query->{criterias} = [ { key => 'guid', op => 'eq', val => $guid } ]; |
734 |
|
} |
735 |
|
} |
736 |
# if operator is different (dispatcher for 'getListFiltered') |
# if operator is different (dispatcher for 'getListFiltered') |
737 |
} elsif (my $op = $query->{options}->{op}) { |
if (my $op = $query->{options}->{op}) { |
738 |
$type = 'TRANSPARENT'; |
$type = 'TRANSPARENT'; |
739 |
$query->{criterias} = [ { key => $query->{options}->{meta_label}, op => $op, val => $query->{options}->{meta_value} } ]; |
if(ref($query->{criterias}) eq 'ARRAY') { |
740 |
|
push @{$query->{criterias}}, { key => $query->{options}->{meta_label}, op => $op, val => $query->{options}->{meta_value} }; |
741 |
|
} else { |
742 |
|
$query->{criterias} = [ { key => $query->{options}->{meta_label}, op => $op, val => $query->{options}->{meta_value} } ]; |
743 |
|
} |
744 |
} |
} |
745 |
|
|
746 |
# HACK: special case: querying by id does not translate into a common tangram query |
# HACK: special case: querying by id does not translate into a common tangram query |