Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents

Introduction-

From 7.0 onwards, if the customer wants to hide any specific field from the query interface, it is possible via the external plugin.

...

Entity

File location in plugin

XML code

Specimen

$OS_PLUGIN_HOME/src/main/resources/query-forms/specimen/

Code Block
languagexml
<hiddenFields>
  <field udn="type"/>
  <field udn="label"/>
  <field udn="class"/>
</hiddenFields>

Hides specimen type, label, and class from the specimen filter.

Visit

$OS_PLUGIN_HOME/src/main/resources/query-forms/visit/

Code Block
languagexml
<hiddenFields>
  <field udn="site"/>
  <field udn="barcode"/>
  <field udn="name"/>
</hiddenFields>

Hides the site, barcode, and name from the visit filter.

Participant

$OS_PLUGIN_HOME/src/main/resources/query-forms/cpr/

Code Block
languagexml
<hiddenFields>
  <field udn="firstName"/>
  <field udn="middleName"/>
</hiddenFields>

Hides first name, middle name from the participant filter.

Collection Protocol

$OS_PLUGIN_HOME/src/main/resources/query-forms/cp/

Code Block
languagexml
<hiddenFields>
  <field udn="shortTitle"/>
  <field udn="Title"/>
</hiddenFields>

Hides short title, title from collection protocol filter.

Note: user defined name (udn) for the fields can be retrieved from files present at openspecimen/WEB-INF/resources/query-forms/ location on OpenSpecimen GitHub repository.

Instructions to build the plugin:-

  1. Download the below zip file.

View file
nameHide-Unwanted-Query-Fields-Jar.zip

2. Unzip the file.

3. How to build code in eclipse.

File ---> Import ---> Existing gradle project

4. The existing code is for hiding unwanted fields from specimen query fields.

5. Remove the existing XML and directory from the code and create the directory in which type you want to hide the fields.

How to build the jar

A. gradle clean

B. gradle build

After running the above two commands, the new jar will get created into $Jar-Directory/build/libs/