| ##### Filter your results

Welcome to DROID | Run your profile | Information collected by DROID | Open and save profiles

## Results

Results appear in your profile tab as soon as they are profiled. If you have profiled any folders, then you can see the files and sub-folders inside them by clicking on the open folder icon to their left. To the right of each resource are columns containing information about each resource.

### Sorting

You can sort the columns by clicking on the column header. Clicking once will sort in descending order, another click will sort in ascending order, and a third click will remove the sort. The sort will also group resources that can have resources inside them (e.g. folders or zip files) together, followed by the files, to keep similar resources together.

## Filtering

When you have a lot of results, it is useful to be able to filter them, in order to narrow down on the files or folders of particular interest. You can define a filter for your results by clicking the Filter button, or by selecting the Filter / Edit Filter... menu item. In the filter definition dialog, you can add one or more conditions that a file must meet in order to be visible in your profile, change whether your files must meet all the conditions you specify, or any of them, and set whether the filter is enabled or not.

### Any or All

- All - files must meet all filter conditions specified in order to be visible in your profile.
- Any - files can meet any filter condition specified in order to be visible in your profile.

### Filter enabled

This checkbox allows you to set whether your filter is enabled or not. When enabled, results in your profile will be filtered, when disabled your filter conditions will simply not apply (but their definition will remain). You can also enable or disable filters via the Filter / Filter on menu item.

### Adding Filter Conditions

To specify a filter condition, you must fill out three items in a row in the filter table.

1. Field - the type of information you want to filter on,
2. Operation - the type of comparison to make,
3. Values - what to compare the value of the field to.

#### Fields

Fields are the kind of information you want to filter on. Click on the first column of the filter condition table, on the drop down box that says "<Please select...>". You can select from the following fields:

- File name - the (case sensitive) name of a file or folder
- File size - the size of a file in bytes
- File extension - the (case sensitive) file name extension
- Last modified date - the data a file or folder was last modified
- Resource type - whether the resource is a folder, file or archival file (a file that contains other files - e.g. a zip file).
- Mime type - the mime-type of a file
- PUID - the PRONOM Unique IDentifier of a file.
- Format name - the name of a format identified by a PUID.
- Identification method - the method by which a file or archival file was identified.
- Job status - whether a file has been processed, or had an error when profiled.
- Extension mismatch - whether the format identified is consistent with the file extension.

For more information on these fields and the information contained in them, please see "Information collected by DROID". You can specify more than one filter condition on the same field. Notice that if you are filtering using the All method, this makes it possible to create filters which no file can meet (e.g. size < 100 and size > 100)!

#### Operation

Once you have selected the field you want to filter on, you can specify what kind of comparison operation should be performed on it. The available operations vary by the type of field you have selected:

- Numbers and Dates: less than (<), less or equal (<=), equals (=), greater than (=), greater or equal (>=), not equals (<>)
- Text (case sensitive): equals (=), not equals (<>), starts with, ends with, contains, does not start with, does not end with, does not contain.
- Sets: some types of field can have one or more values. selected out of a defined set of values (PUID, Mime type, Identification method, Job status). To compare sets, you can specify that there are "any of" the values in the specified set, or "none of" the values in the specified set of values.

#### Values

Like the operations, the values you provide depend on the type of fields you are filtering on:

- Numbers: enter a positive whole number. Only digits can be entered - no decimal points, plus or minus signs are allowed.
- Dates: provide the day, month and year in the boxes provided.
- Text: enter your text into the box provided.
- Sets: You cannot enter set values directly into the value area - you must select them using the set selection dialog. To bring up the dialog, click the ... button to the right of the value area. Once you have selected your values, a read-only representation of them will appear in the value area. You can always edit your sets by bringing up the set selection dialog again.

#### Set selection dialog

The set selection dialog lets you select one or more values from a list.

On the left hand side of the dialog are all the available values to select. On the right hand side are the values you want to filter on. To add values to your selection, select the values you would like to add on the left hand side, and press the Add > button between the two panes. You can select values individually, or you can hold down the SHIFT key to select a list of values. If you hold down the CTRL key, you can select or deselect multiple items individually. To remove values from your selection, highlight the values you want to remove on the right hand side, using the same techniques as adding, and press the < Remove button.

Once you are happy with your selection, press the OK button at the bottom of the dialog. Your selected values will be placed in the value box in the filter dialog. If you want to cancel any changes you have made, press the Cancel button.

### Removing Filter Conditions

To remove a filter condition, simply click the Remove button at the far right of the row. You cannot remove the final row in the filter table, which always shows "<Please select...>" in the field column, as this row enables you to add new filter conditions. Unless you actually specify a field, this row does not contribute to the filter specification.

### Load and Save filters

If you have a filter you want to re-use, you can save filters to a file, and load them back from a previously saved file. Clicking on these buttons brings up a file selection dialog window.

### Apply and Cancel

If you are happy with your filter definition, press the Apply button at the bottom of the screen. Your filter specification will be associated with your profile, and if you had enabled the filter, it will be applied to the profile immediately. If you press the Cancel button, all changes you have made to the filter will be discarded, and any previous filter will be restored as it was before you opened the filter dialog.

Welcome to DROID | Run your profile | Information collected by DROID | Open and save profiles

######