| Back | Main view

IMiS/wClient - Changing the search view

Product:IMiS/wClient
Release:1.7.2110
Date:06/10/2022

Case: IMiS/wClient - Changing the search view

Description:

This example demonstrates changing the search view of advanced search on the IMiS/wClient.

The search view settings for the advanced search are defined in the settings settings.json, where they can be defined in the elements search.profiles and search.views.

Below is a description of settings.json configuration for changing the search view.

settings.json

search
- profiles: Collection of search view profiles.
- views: Collection of view items.
- input_enabled: Enables or disabled the search input box. Default value: true.
- input_trim: Removes whitespace from both ends of text attribute input in advanced search. Default value: false.
- max_elements: Maximum number of search results displayed. Default value: null.

search.profiles item
- id: Profile identifier.
- attributes: Collection of attributes.
- filter_type: Type of attribute filter. The set of values:
  - Include: certain attributes will be displayed.
  - Exclude: certain attributes will not be displayed.

search.views item
- archives: Collection of archive identifiers.
- profile: Profile identifier from search.profiles.
- members: Collection of directory entities.
- classification_code: Collection of classification codes.
- editable: Defines whether the search view can be edited. Default value: true. The set of values:
  - true: The user modifies the view which is saved to the user settings.
 - false:
Disables editing the view.

Example of changing the search view

settings.json configuration has 2 search profiles:
- global_search_profile has attributes "sys:Title", "sys:Description", "sys:Modified", "full_text_index", "sys:Keywords",
- search_profile_01 has attributes "sys:Title", "sys:Modified", "full_text_index", "sys:Keywords", "sys:Owner".

settings.json configuration has 2 search views items:
- global_search_profile is used on all archives, all members and is not editable,
- search_profile_01 is used archve "iarc101", for "rsalazar" and is editable.

settings.json
{
  "url": "<IMiS/Storage Connector Services REST - URL>",
  "request_timeout": 240000,
  "search": {
    "profiles": [
      {
        "id": "global_search_profile",
        "filter_type": "Include",
        "attributes": [
          "sys:Title",
          "sys:Description",
          "sys:Modified",
          "full_text_index",
          "sys:Keywords"
        ]
      },
      {
        "id": "search_profile_01",
        "filter_type": "Include",
        "attributes": [
          "sys:Title",
          "sys:Modified",
          "full_text_index",
          "sys:Keywords",
          "sys:Owner"
        ]
      }
    ],
    "views": [
      {
        "profile": "global_search_profile"
        "editable": false
      },
      {
        "profile": "search_profile_01",
        "archive": [
          "iarc101"
        ],
        "members": [
          "rsalazar"
        ],
        "editable": true
      }
    ]
  }
}


Global search view profile

Keira Clay (kclay) uses search view profile "global_search_profile".



Custom search view profile

Ron Salazar (rsalazar) uses search view profile "search_profile_01".




Related Documents:

Database 'IMiS Knowledge database', View 'All Documents', Document 'IMiS/wClient 1.7.2110' IMiS/wClient 1.7.2110

| Back | Main view