Xing 4 TWiki

Function: RenderTriPageSearchHitList

Renders the hit list of a TriPageSearch

Documentation

TODO

Parameters
  • FIRSTNAME (ldap)
  • LASTNAME (ldap)
  • LOGIN (ldap)
  • ROLE (ldap)
  • DEPARTMENT (ldap)
  • LOCATION (ldap)
  • PREVIOUSCOMPANY
  • PROJECTS (twiki app)
  • EDUCATION
  • BRANCHOFTRADE
  • CERTIFICATS
  • LANGUAGESKILLS
  • SKILLSLEVEL0
  • SKILLSLEVEL1
  • SKILLSLEVEL2
  • SKILLSLEVEL3
  • SKILLSLEVEL4
  • OTHERSKILLS

Css

Implementation

%STARTINCLUDE%
~~~ <noautolink>
%~~ DBQUERY{
~~~   web="%BASEWEB%"
%~~   IFDEFINED{"%FIRSTNAME%%LASTNAME%%LOGIN%%ROLE%%DEPARTMENT%%LOCATION%"
~~~     then="
~~~       topics=\"
*~~         $percntLDAP{\"(&
~~~           $percntIFDEFINED{\"%FIRSTNAME%\" then=\"(givenName=$test)\"}$percnt
~~~           $percntIFDEFINED{\"%LASTNAME%\" then=\"(sn=$test)\"}$percnt
~~~           $percntIFDEFINED{\"%LOGIN%\" then=\"(uid=$test)\"}$percnt
~~~           $percntIFDEFINED{\"%ROLE%\" then=\"(employeeType=$test)\"}$percnt
~~~           $percntIFDEFINED{\"%DEPARTMENT%\" then=\"(ou=$test)\"}$percnt
~~~           $percntIFDEFINED{\"%LOCATION%\" then=\"(l=$test)\"}$percnt
~~~           )\"
~~~           format=\"
*~~             $dollarpercntIFDEFINED{\\"$uid\\" as=\\"\$[u]id\\" then=\\" \\" else=\\"
*~~               $dollarpercntUSERINFO$dollarnop{\\"$uid\\" format=\\"$wikiname\\"}$dollarpercnt\\"
*~~             }$dollarpercnt\"
~~~           sep=\",\"
~~~         }$percnt
*~~       \"
*~~     "
~~~   glue="off"}%
~~~   "TopicType=~'\b(TriPage)\b'
~~~   %IFDEFINED{"%PREVIOUSCOMPANY%" then=" AND PreviousCompany=~'\b$test\b'"}%
~~~   %IFDEFINED{"%EDUCATION%" then=" AND (EducationDE =~'\b$test\b' OR EducationEN =~ '\b$test\b')"}%
~~~   %IFDEFINED{"%BRANCHOFTRADE%" then=" AND BranchOfTrade =~ '\b$test\b'"}%
~~~   %IFDEFINED{"%CERTIFICATS%" then=" AND CertificatesOfCompetence =~ '\b$test\b'"}%
~~~   %IFDEFINED{"%OTHERSKILLS%" then=" AND OtherSkills =~ '\b$test\b')"}%
~~~
%~~    IFDEFINED{"%LANGUAGESKILLS%" 
~~~      then=" AND (LanguageSkillsDE =~ '\b$test\b' OR 
~~~                  LanguageSkillsDE =~ '\b$test\b' OR
~~~                  OtherLanguageSkillsDE =~ '\b$test\b' OR
~~~                  OtherLanguageSkillsEN =~ '\b$test\b')"
~~~   }%
~~~
%~~   IFDEFINED{"%SKILLSLEVEL0%" then="
~~~     $percntFORMATLIST{\"$test\"
~~~       header=\" AND (\"
~~~       footer=\")\"
~~~       separator=\" OR \"
~~~       format=\"SkillsLevel0 =~ '\b$1\b'\"
~~~     }$percnt"
~~~   }%
~~~
%~~   IFDEFINED{"%SKILLSLEVEL1%" then="
~~~     $percntFORMATLIST{\"$test\"
~~~       header=\" AND (\"
~~~       footer=\")\"
~~~       separator=\" OR \"
~~~       format=\"SkillsLevel1 =~ '\b$1\b'\"
~~~     }$percnt"
~~~   }%
~~~
%~~   IFDEFINED{"%SKILLSLEVEL2%" then="
~~~     $percntFORMATLIST{\"$test\"
~~~       header=\" AND (\"
~~~       footer=\")\"
~~~       separator=\" OR \"
~~~       format=\"SkillsLevel2 =~ '\b$1\b'\"
~~~     }$percnt"
~~~   }%
~~~
%~~   IFDEFINED{"%SKILLSLEVEL3%" then="
~~~     $percntFORMATLIST{\"$test\"
~~~       header=\" AND (\"
~~~       footer=\")\"
~~~       separator=\" OR \"
~~~       format=\"SkillsLevel3 =~ '\b$1\b'\"
~~~     }$percnt"
~~~   }%
~~~
%~~   IFDEFINED{"%SKILLSLEVEL4%" then="
~~~     $percntFORMATLIST{\"$test\"
~~~       header=\" AND (\"
~~~       footer=\")\"
~~~       separator=\" OR \"
~~~       format=\"SkillsLevel4 =~ '\b$1\b'\"
~~~     }$percnt"
~~~   }%
~~~   "
~~~    header="
*~~      $percntTABLE{tablewidth=\"100%\"}$percnt$n
~~~      | *Nr* 
~~~      | *Name* 
~~~      | *Role*
~~~      | *Last modified* 
~~~      |$n"
~~~    format="
~~~      | $index 
~~~      | [[$web.$topic][$expand(Name or topic)]]
~~~      | $expand(RoleEN or RoleDE)
~~~      | $formatTime(info.date) 
~~~      |$n"
~~~      separator=" "
~~~ }%
~~~ </noautolink>
~~~
%STOPINCLUDE%

Test

%DBQUERY{ web="Applications/EmployeePortalApp" topics="%LDAP{"(&<a href="TopicType=~'\b(TriPage)\b'

Calls to 'RenderTriPageSearchHitList'

Copyright

© 2007 Michael Daum daum@wikiring.de

This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. For more details read the LICENSE.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Applications.ApplicationTopic
TopicType: DocuTopic, TopicFunction
Summary: Renders the hit list of a TriPageSearch
TWikiApplication: EmployeePortalApp
r0 - 29 Jul 2007 - 06:15:50 - TWikiContributor
© giant orange extension cord that reeks hip-hop, funk & soul