Finished Metadata implementation
This commit is contained in:
parent
3ef3248e61
commit
cfceb1f68c
15 changed files with 272 additions and 82 deletions
|
|
@ -21,7 +21,7 @@ sub process {
|
|||
@param = WebGUI::Macro::getParams($_[0]);
|
||||
my $key = $param[0];
|
||||
my $value = $param[1];
|
||||
my $sql = "select count from passiveProfileAOI a, metaData_fields f
|
||||
my $sql = "select count from passiveProfileAOI a, metaData_properties f
|
||||
where a.fieldId=f.fieldId
|
||||
and userId=".quote($session{user}{userId})."
|
||||
and fieldName=".quote($key)."
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ sub process {
|
|||
my $key = $param[0];
|
||||
my $rank = $param[1] || 1; # 1 is highest rank
|
||||
$rank--; # Rank is zero based
|
||||
my $sql = "select value from passiveProfileAOI a, metaData_fields f
|
||||
my $sql = "select value from passiveProfileAOI a, metaData_properties f
|
||||
where a.fieldId=f.fieldId
|
||||
and userId=".quote($session{user}{userId})."
|
||||
and fieldName=".quote($key)." order by a.count desc";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue