Diversity References

Details about References within the Diversity Workbench are stored in the module DiversityReferences. For explicit documentation of this module see DiversityReferences on the homepage of the DiversityWorkbench. This site further provides software for online access to the database DiversityReferences and should be regarded as the prefered way to handle data within this database. This client is a simple tool to provide you with the basic functionallity needed for the local work.

For access to the references from other modules, you need access to the Database DiversityReferences. For a direct access to the data you can use the application DiversityReferences.exe .

Dec 17, 2024

Subsections of References

Subsections of Download

Installation

Resources

To run a module of the Diversity Workbench framework, you need access to a database and an installation of the respective client. The following instructions explain how to install the DiversityCollection client. All other modules are installed in the same way.

If you do not yet have an account for your institutional DWB platform, please contact your institution’s DWB administrator. If you wish to set up and use your own personal, institutional, domain-specific, or research-group-internal database environment, see Installation of a database for more information.

A German-language video demonstrates the installation using the DC client as an example. Please note that the initial steps in the video are outdated, as the downloads are now available via this manual, as described below. .

Download

All DiversityWorkbench modules can be downloaded free of charge. Within each module in the manual, you will find a Download menu item. There, you can download the latest version in the Current version section.

Installation of the client

The client is currently based on the .Net framework version 4.8 from Microsoft. If not already present, the software will prompt you to install it.

After downloading the client, unzip the .zip folder. The extracted setup folder contains two files: an .msi and a .bat file.

If you want to install the client on your computer, start the installation by double-clicking the .msi file.

If necessary, you can adjust the installation location in the next step.

Once the installation is complete, the software will be added to the program menu (see below) and a shortcut will be created on the desktop.

In the next chapter Database Login the login process is explained.

Troubleshooting

If you don’t have sufficient permissions on your computer to install anything, you can use the client by following the instructions Run the program without an installer. If you receive a warning from Windows that this computer is protected, follow the instructions Windows protection warning.

Run program without installer

There are several reasons why you might prefer to run DiversityCollection without installation. E.g. if you lack administrative permissions on your computer or if you want to use several different versions of DiversityCollection in parallel.

Therefore, the downloaded .zip file contains a .bat file. With this .bat file, a folder DiversityCollection_x_x_x is created on your desktop containing all relevant files to run the client DiversityCollection.

You have to unzip the downloaded .zip file to a local folder. The unzipped folder contains the .msi file and the .bat file. Within this unzipped! folder start the .bat file with a double-click. You might get a security warning, as shown in the section Windows protection warning.

The batch file unpacks the program files to a folder on your desktop named DiversityCollection_x_x_x, where "x_x_x" stands for the program version.

To start the DiversityCollection program, go to the folder and double-click on the file DiversityCollection.exe.

The login process is explained in the next chapter Database Login.

Technical notes and additional information

The software will be placed in the programs directory, as shown below.

Additionally, a folder is created in the user directory. This folder contains files and templates, for example, for label printing. It also contains hidden folders, such as Query. User input is saved there so that it can be loaded again the next time the program is started.

Windows protection warning

If you receive the following warning from Windows

please click on Weitere Informationen. A button Trotzdem ausführen will appear.

Please click on Trotzdem ausführen to install the software.

 

Jun 12, 2025

Database login

To use a module from the DiversityWorkbench framework, such as “DiversityCollection”, you need access to a database. If you do not yet have an account for your institutional DWB platform, please contact your institution’s DWB administrator. If you wish to set up and use your own personal, institutional, domain-specific, or research-group-internal database environment, you will find instructions here.

Connect to a database

  1. At the top left of the main window, go to ConnectionDatabase … or click the Connect button . A dialog form “Connect to database” opens.

  2. In the “Server” section, add the server name or the IP address and the port number.

  3. In the “Login” section, choose an option:

    • Windows authentication: Using the Windows Login information.

    • SQL-Server authentication: User and password as defined in the database.

  4. Click on the Connect to server button.

  5. If the connection information is valid, you can Choose a database from the drop-down list at the bottom.

  6. Choose the database you want to work with and click OK.

  7. If you access a database for the first time, you will be asked to consent to the storage and processing of your personal data (see below) according to the General Data Protection Regulation. Without your consent the access is not possible.

Important The standard port number for SQL-Server is 1433 and is set as default. If the database server is configured to use a different port, you must change the port number in the port input field.

Previous connection

If you have been connected to a database in previous sessions, you can select one of these connections:

  1. At the top of the “Connect to database” dialog form, click on the Previous connections button .
  2. Select a connection from the drop-down list. This inserts the name or IP address and the port in the corresponding input fields in the server section.
  3. To log into a database, proceed as described above starting from step 3.

Testing a connection

To test the connection, you can send a ping by clicking the button .

As a first step the IP resp. Server will be tested. If the connection to the server is successful, the port will be tested as a second step.

Switch between databases

  1. At the top left, go to ConnectionDatabase … or click on the Connect button .
  2. If you are already connected to a server, you can select a database from the drop-down list Choose database at the bottom of the dialog box.

Reset and Cancel

Reset: If you are connected to a server, there is a Reset button below the “Login” section of the “Connect to database” dialogue box. Click the Reset button to change your server or login settings.

Cancel: If you do not want to change anything, click on Cancel.

Encryption

By default, the connection to the databases is encrypted. The icon next to the Connect to server button indicates an encrypted connection. By clicking on the icon, you can switch to an unencrypted connection, indicated by the icon .

Videos

  • Login to a database: Video starten.
Mar 26, 2024

Tutorial

Training database

For the first steps we provide a training installation on:

training.diversityworkbench.de,5432

Please turn to the development team for a login.

To use a module from the DiversityWorkbench framework, such as “DiversityCollection”, you need access to a database. If you do not yet have an account for your institutional DWB platform, please contact your institution’s DWB administrator. If you wish to set up and use your own personal, institutional, domain-specific, or research-group-internal database environment, you will find instructions here.

Connect to a database

  1. At the top left of the main window, go to ConnectionDatabase … or click the Connect button . A dialog form “Connect to database” opens.

  2. In the “Server” section, add the server name or the IP address and the port number.

  3. In the “Login” section, choose an option:

    • Windows authentication: Using the Windows Login information.

    • SQL-Server authentication: User and password as defined in the database.

  4. Click on the Connect to server button.

  5. If the connection information is valid, you can Choose a database from the drop-down list at the bottom.

  6. Choose the database you want to work with and click OK.

  7. If you access a database for the first time, you will be asked to consent to the storage and processing of your personal data (see below) according to the General Data Protection Regulation. Without your consent the access is not possible.

Important The standard port number for SQL-Server is 1433 and is set as default. If the database server is configured to use a different port, you must change the port number in the port input field.

Previous connection

If you have been connected to a database in previous sessions, you can select one of these connections:

  1. At the top of the “Connect to database” dialog form, click on the Previous connections button .
  2. Select a connection from the drop-down list. This inserts the name or IP address and the port in the corresponding input fields in the server section.
  3. To log into a database, proceed as described above starting from step 3.

Testing a connection

To test the connection, you can send a ping by clicking the button .

As a first step the IP resp. Server will be tested. If the connection to the server is successful, the port will be tested as a second step.

Switch between databases

  1. At the top left, go to ConnectionDatabase … or click on the Connect button .
  2. If you are already connected to a server, you can select a database from the drop-down list Choose database at the bottom of the dialog box.

Reset and Cancel

Reset: If you are connected to a server, there is a Reset button below the “Login” section of the “Connect to database” dialogue box. Click the Reset button to change your server or login settings.

Cancel: If you do not want to change anything, click on Cancel.

Encryption

By default, the connection to the databases is encrypted. The icon next to the Connect to server button indicates an encrypted connection. By clicking on the icon, you can switch to an unencrypted connection, indicated by the icon .

Videos

  • Login to a database: Video starten.

Editing

The main forms of all modules have a design as shown below

Main form

Status

In the status area you find

  • The name of the module,
  • The name of the database if different fron the module
  • The version of the software

The menu contains the options provided by the module

Commands

The commands area contains buttons for e.g. handling the data:

  • - To connect to a database click on the button.
  • - To save the changes in a dataset click on the button.
  • - To propagate the changes in a dataset to linked modules click on the button.
  • - To undo the changes a dataset click the button. This will recover the original data unless the changes had been saved or changes were done in certain tables or hierarchies were the data must be stored to display the hierarchy.
  • - To create a new entry in the database, click on the  button below the search result listbox. This will create a entry with the specimen and show it in the list.
  • - To copy a specimen, choose it from the list and click on the button .
  • - To delete the selected datasets click on the button.
  • - To options a dataset click on the button .
  • - To change the arrangement of the query click on the resp. button.
Mar 26, 2024

Query

Once you are connected to your database, you can search across all data. A wide range of search options is available.

All functions related to querying can be found on the left-hand side of the main window.

The upper part of the query section contains the list of all results, titled “Query Results”.

Below this, you will find a section containing all the buttons relevant to the search.

Below the query buttons, you will find the “Query Conditions” section. This is where you can enter all available search criteria.

Perform a Query

Display the Entire Dataset

To display the entire dataset, start a search without specifying any criteria in the “Query conditions” section:

  1. In the middle of the query section on the left-hand side of the main window, click on the “Filter” button.

  2. A list of the results will be displayed in the “Query Results” section. The number of results is shown above the list, next to the “Query Results” label.

Below the query buttons, at the bottom of the query section, you will find the “Query Conditions”.

  1. Enter the filter criteria for your search. For example, you can select a project from the dropdown list.
  2. You can combine as many criteria as needed to narrow down your results.
  3. Start the query by clicking the “Filter” button .
  4. A list of results will be displayed in the “Query Results” section. The number of results is shown above the list, next to the “Query Results” label. If no results match the query, the list remains empty and the label “No match” is displayed.

Edit and Customise Query Conditions

You can choose which query conditions are displayed in the main window, and you can change this at any time.

  1. At the top left, above the query results list, click the “Checkbox” button .

  1. Select any query conditions you want to use for your searches by selecting the respective checkboxes in the treeview.

Customise the Interface

Hide/Show the Entire Query Section

In the main window, go to the menu item QueryShow Query.

Hide the “Query Conditions” Section

On the left side of the “Query Buttons”, in the middle of the query section, click the “Arrow” button .

Switch Between Vertical and Horizontal Arrangement

You can change the layout of the query elements from vertical to horizontal and vice versa. To do this, click the button located below the main menu bar:

Edit the Result List

Add Results to the Existing List

You can add new results, based on different query conditions, to your current result list.

  1. Enter the new filter criteria for your additional search.
  2. Start the query and add the results to the existing list by clicking the button .
  3. The new results will be appended to the existing list.

Remove Result Items from the List

You can remove entries from your current result list:

  1. Select the entries you want to remove.
  2. Click the button .

Important This does not delete the data from the database. It only affects the current display in the results list.

Many Result Columns

The option to display a result list with many columns is described in the chapter Many Columns.

Query Conditions

Remember the Last Query

By default, the values you entered for the previous query will be remembered. Your query criteria will be pre-filled when the programme starts. To change this behaviour, click the Pin button .

Query Annotation

The query for annotations differs from a standard query (see below). In addition, you can specify the type of annotation (Annotation , Problem , Reference ) and the linked table (see Annotation).

Duplicates

Certain query condition fields allow you to add up to three duplicates of the same condition. For adding a ‘duplicate’ search criteria, click the green “Plus” button . Remove a ‘duplicate’ search condition with a click on the red “Minus” button . The restrictions can be combined with AND + and OR |. To switch between these modes, click the resp. + or | icon.

Query Modules

In the “Query Conditions” section, some values may be linked to other modules. For example, within the “Identification” group, the fields “Taxa” and “Terms” are linked to the “DiversityTaxonNames” and “DiversityScientificTerms” modules, respectively. You can also add “linked” values to your query condition.

  1. Select the operator that determines how the entries are used in the search. An explanation of all available operators can be found in the table below.
  2. To connect to the linked module, click the “Ammonite” button located to the right of the relevant query field.

  1. A query window for the linked module will open.
  2. Search for values within the linked module and click “Ok” to confirm your section.
  3. If you want to view a list of the selected items, click the Magnifying Glass button .

Info: There is also a detailed Video available, which explains all possible operators and how to use them.

Operator Meaning Example
Search for entries with a list Rosa | Rosa caninia \
Search for entries not within a list Rosa | Rosa caninia | ...
+H search for entry including lower hierarchy Picea | Picea abies | ...
+S search for entry including synonyms Picea abies | Pinus abies | ...
+HS search for entry including lower hierarchy and synonyms Picea | Picea abies | Pinus abies | ...
Change filter mode between link and text http://tnt.diversityworkbench.de/TaxonNames_Plants/4269 <> Picea abies L.

Query any fields

The query for any fields will search in several fields, e.g., withholding reasons in specimens, images, etc. There are two versions: The first version (e.g., Notes) will search in all tables but not in collection event tables, while the second version (e.g,. Any notes) will search in any table (see image below).

Videos

  • Introduction on how to use the query conditions: Video starten
  • How to use special query conditions: Video starten
  • Tutorial on how to query modules: Video starten
  • Tutorial on how to save a query: .

Wildcards in SQL

There are 4 different possibilities for wildcards in SQL:

Operator Description Example Result
%   any string consisting of no, one or many characters Pinus % will find anything like Pinus, Pinus sylvestris, Pinus strobus etc.
*  same effect as % (see above)
_  a single character Pinus s_lvestris will find Pinus sylvestris and Pinus silvestris etc.
[…] any character out of a given range like [abcde] or [a-e] Pinus s[iy]lvestris will find Pinus sylvestris and Pinus silvestris
[^…]   any character not in a given range like [^abcde] or [^a-e] Pinus s[^i]lvestris will find Pinus sylvestris but not Pinus silvestris

Many columns

The option to include several columns in the result list is only available for optimized queries . To display several columns in the result list, click on the button next to the order by column (see below). A window will open where you can select the next column for the sorting. Underneath the order by column the second column for the sorting will be added. To remove this sorting column you can click on the    button. By default the width for the columns is set to 10. You can change this according to content. To set the width to the maximal length of the current content, click on the button. To change the sorting of the added order column click on the button. The colums are separated via " | " as shown in the image below.

For an introduction see the videos:

  • Mehrspaltige Suche: Video starten
  • Sortierung: Video starten

 

Jul 29, 2024

Data Editing

Data editing

To edit the data, start the query (click on the button) and choose an item from the query result list. The window will show the details of the dataset as shown below. With button in the upper right area of the form you may access the history of the selected dataset.

In the lower part of the window you find a tab control with various additional data. Click on the tab in the window above to visit the corresponding manual chapter.

Table editor

As an alternative you may edit the datasets in the result list with dedicated table editors.

May 3, 2024

Subsections of Editing

Authors

Authors and editors

The authors, editors etc. are shown in a treeview as shown below. To add a new author, editor etc. click on the  button.

If you want to delete an author, select the dataset in the tree and click on the button. To change the sequence e.g. of the authors use the  and  buttons.

 

 

May 3, 2024

Keywords

Keywords

Every reference title can be attributed to an unlimited number of keywords. Use the button to enter a new keyword and the button to delete a selected keyword. You can specify the language of your keyword, the type of your keyword and an URI. Either choose a keyword from the keywords that are already existing in the database by typing the initial characters and using the the drop down button of the field or type a new keyword.

To view and/or change the URI click on the  button. A simple browser will open as shown below.

 

Click on the  botton if you want to return to the homepage of this browser (www.google.com). Click on the OK button to take the current URI in your database record and close the window.

 

 

May 3, 2024

Marker

Private marker

Marker are the private counterpart of the keywords. You can only see your own marker in this section. To add a marker use the  button. To delete a marker, choose it in the list and click the  button.

Data are stored in table ReferencePrivateDescriptor.

 

 

May 3, 2024

Abstract

Abstract (Notes)

Every user with the proper rights can add one abstract for every language.

For private notes please use the private notes section.

 

 

Jan 14, 2025

Notes

Private notes

In this section you can add private notes to the reference. Every user can enter his or her own notes and will have exclusive access to these notes.

Data are stored in table ReferencePrivateNote.

 

 

May 3, 2024

Availability

Availability

The availability of a reference. To add a availability use the  button. To delete a availability, choose it in the list and click the  button.

Data are stored in table ReferenceAvailability.

 

 

May 3, 2024

Projects

Projects

Every reference can be assigned to any number of projects. To assign a reference to a project click on the  button. To remove it from a project, select the project from the list and click on the  button.

 

If there are projects, to which you have no access to, these will be listed in a separate list at the top as shown above.

Data are stored in the table ReferenceProject. Details upon the projects within the Diversity Workbench are stored in the database DiversityProjects. To open a project to see further information upon a project click on the   button. 

To load projects from the central storage for projects in the module DiversityProjects, choose Administration - Projects … from the menu. A window as shown below will open. Select the database where the projects should be retrieved from. After selecting the projects you need in DiversityReferences you can load these project with a click on the Start download button.

To edit details in the projects you need the application DiversityProjects.exe in your application directory and access to the database DiversityProjects. To synchronize the projects listed in DiversityProjects you can use the synchronize functionality in the useradministration form as shown below. If DiversityProjects is not available you can create a new project with the button. If DiversityProjects is available, use the synchronize functionality.

 

 

 

May 3, 2024

Images

Images

Every reference title can be attributed to an unlimited number of images.

Use the button to enter a new image. A window as shown below will open where you can choose either a local stored image or an image provided on a website

To open an image in a separate window, choose if from the list and click on the button. To delete a selected link, click on the button.

 

 

May 3, 2024

Links

Every reference title can be attributed to an unlimited number of Web links, links to PDF files, links providing the Full text and Related links.

Use the button to enter a new link. A Window as shown below will open where you can search an select the links.

Click on the  botton if you want to return to the homepage of this browser (www.google.com). Click on the OK button to take the current URI in your database record and close the window.

To open a link in the system browser, choose if from the list and click on the button. To delete a selected link, click on the button.

 

 

 

May 3, 2024

Hierarchy

Hierarchy

References may be organized in a hierarchy as shown below. Use on the resp. button to set or remove the superior reference (see below). With the button you can change to one of the references shown in the hierarchy.

 

 

May 3, 2024

Import Export

Import

There are several import mechanisms:

Import wizard: Import reference data from tabulator separated text file.

Import tagged text: Import reference data from a tagged text file, e.g. ReferenceManager.

 

 

Export

There are several export mechanisms:

Export wizard: Export reference data to tabulator separated text file.

Export text or RIS: Export reference data as text file or in RIS (Reference Manager) format.

Export CSV: Export data in a tab separated format for external analysis.

 

 

Jan 14, 2025

Subsections of Import Export

Export

Export

Text format

To export data as a text file choose Data - Export … from the menu. A window as shown below will open. You have several options to adapt the format of the export. E.g. you may use a different style for the first author, specifiy the separator for the last author etc.

The colums that should be displayed can be specified in the list Displayed columns. A click on the Transfer to grid button to transfers the data into the data grid as shown below. The sequence of the columns can be changed by dragging a column in the position of your choice. After setting the correct sequence and formatting options (e.g. Format of year - see below) click on the Transfer to text button. Then the text ready for export will be shown in the textbox below. Click on the Save to file button to store the data in the specified file.

 

RIS format (Reference Manager)

To export data in the RIS format according to the commercial database Reference Manager use the RIS-Export function.

Choose Data → Export from the menu to start the export. A form will open.

Click on the Start export button to generate the RIS tagged format and on the Save button to store the result in the specified file.

Jan 14, 2025

Subsections of Export

Export CSV

Export CSV

Notes:

  • The Export CSV function provides a direct copy of selected database table as tabulator separated text file. If you want to generate flles that give a strutured overview of descriptors or description data, you should prefer the Export … Lists or the Export Wizard (coming soon).
  • The Export CSV function requires the “Bulk Copy” tool, which is part of a local Microsoft SQL Server installation. If “Bulk Copy” is not available on your computer, you will get an error message after opening the window.

To export the tables of the database in the a tabulator, comma or semicolon separated format, choose Data → Export → Export CSV … from the menu. A window as shown below will open where you can select the tables to be exported in sections Selection criteria and in the Tables for export.

To start the export click on the Start export button. By default the data will be exported into a directory <working directory>\Export\<database_name>. Click on the button to select a different target directory before starting export.

After export the tables are marked with green backgound, if table schema and data were exported successfully. If only the data were exported, this is marked with yellow background, if nothing was exported, the background is red. A detailled export report can be viewd by a click on the export result file name.  

May 16, 2024

Export Text

Export as text or RIS

To export data as a text file choose Data → Export → Export text or RIS … from the menu. A window as shown below will open. You have several options to adapt the format of the export. E.g. you may use a different style for the first author, specifiy the separator for the last author etc.

 

Text format

The first tab Export as text provides the plain text export. The colums that should be displayed can be specified in the list Displayed columns. A click on the Transfer to grid button to transfers the data into the data grid beneath the button. The sequence of the columns can be changed by dragging a column in the position of your choice. After setting the correct sequence and formatting options (e.g. Format of year - see below) click on the Transfer to text button. Then the text ready for export will be shown in the textbox below. Click on the Save to file button to store the data in the specified file.

If you select the option Generate tab separated  list and click on the Transfer to text button, the data as shown in the data grid will be inserted in a tabulator-separated text file and column titles will be inserted (see image below). Such a file could be edited with a spreadsheet application an re-imported using the Importwizard.

 

RIS format (Reference Manager)

The second tab RIS Export provides the export of data in the RIS format according to the commercial database ReferenceManager use the RIS-Export function.

Click on the Start export button to generate the RIS tagged format and on the Save button to store the result in the specified file.

Jan 14, 2025

Export Wizard

The export wizard provides a possibility to export the data selected in the main form. The data are exported as tab separated text file. The export may include transformations of the data as well as information provided by linked modules and webservices. Choose Data - Export - Export wizard from the menu and then select one of the export targets (Event, Specimen, ...). For a short introduction see the tutorial.  

Adding tables

There are the following ways to add tables:

  • One parallel table
  • Several parallel tables according to selected data
  • Dependent table

All options will include the depending tables as defined for the default table. The option for several tables will add as many tables as there are found in the data.

If you added parallel tables, you should set the sequence of the datasets within these tables: For the columns that should be used for sorting the data, set the ordering sequence to a value > 0 and choose if the ordering sequence should be ascending or descending .

Certain columns in the database may provide information linked to another table or a module resp. webservice . Click on the button to add a linked value.

Adding and editing file columns

To add columns to the exported file, use the buttons. In the textbox at the top of the file column, you can change the header for the column. To change the position of a file column use the resp. button. To fuse a column with the previous column, click in the gray bar on the left side of the column that will change to for fused columns. To remove a file column, use the button. Pre- and postfixes for the columns can directly be entered in the corresponding fields. To apply transformations on the data click on the button.  

Filter

To filter the exported data, use the filter function. Click on the button and enter the text for the filter. Only data matching the filter string will be exported. If a filter is set, the button will have a red background to remind you of the filter. The filter may be set for any number of columns you need for the restriction of the exported data.  

Rowfilter

This filter in contrast to the filter above strictly applies to the row according to the sequence of the data. For an explanation see a short tutorial Video starten.

 

Test

To test the export choose the Test tab, set the number of lines that should be included in the test and click on the Test export button. To inspect the result in a separate window, click on the button.

SQL

If you want to inspect the SQL commands created during the test check this option. To see the generated SQL click on the SQL button after the Test export. A window containing all commands including their corresponding tables will be shown.

 

Export

To export your data to a file, choose the Export tab. If you want to store the file in different place use the button to choose the directory and edit the name of the file if necessary. Check the include a schema option if you want to save a schema together with your export. To start the export, click on the Export data   button. To open the exported file, use the button.

 

Export to SQLite

To export your data into a SQLite database, choose the Export to SQLite tab. You may change the preset name of the database in order to keep previous exports. Otherwise you overwrite previous exports with the same filename. To start the export, click on the Export data   button. To view the exported data, use the button.

 

Schema

To handle the settings of your export, choose the Schema tab. To load a predefined schema, click on the button. To reset the settings to the default, click on the button. To save the current schema click on the button. With the button you can inspect the schema in a separate window.

Mar 26, 2024

Subsections of Export Wizard

Export Wizard Transformation

The exported data may be transformed e.g. to adapt them to a format demanded by the user. Click on the button to open a window as shown below. For an introduction see a short tutorial Video starten.

Here you can enter 6 types of transformation that should be applied to your data. Cut out parts,  Translate contents from the file, RegEx apply regular expressions or Replace text and apply Calculations Σ or Filters on the data from the file. All transformations will be applied in the sequence they had been entered. Finally, if a prefix and/or a postfix are defined, these will be added after the transformation. To remove a transformation, select it and click on the button.

 

Cut

With the cut transformation you can restrict the data taken from the file to a part of the text in the file. This is done by splitters and the position after splitting. In the example below, the month of a date should be extracted from the information. To achieve this, the splitter '.' is added and then the position set to 2. You can change the direction of the sequence with the button Seq starting at the first position and starting at the last position. Click on the button Test the transformation to see the result of your transformation.

With the Start at Pos. option the given splitters will be converted into space (' ') and the whole string starting with the given position will be used (see below).

 

Translate

The translate transformation translates values from the file into values entered by the user. In the example above, the values of the month should be translated from roman into numeric notation. To do this click on the button to add a translation transformation (see below). To list all different values present in the data, click on the button. A list as shown below will be created. You may as well use the and buttons to add or remove values from the list or the button to clear the list. Then enter the translations as shown below. Use the save button to save entries and the Test the transformation button to see the result. 

To load a predefined list for the transformation use the   button. A window as shown below will open. Choose the Encoding of the data in your translation source and indicate if the First line contains column definition. Click OK to use the values from the file for the translation.

 

Regular expression

The transformation RegEx using regular expressions will transform the values according to the entered Regular expression and Replace by values. For more details please see documentations about regular expressions.

 

Replacement

The replacement transformation replaces any text in the data by a text specified by the user. In the example shown below, the text "." is replaced by "-". 

 

Calculation 

The calculation transformation Σ performs a calculation on numeric value, dependent on an optional condition. In the example below, 2 calculations were applied to convert 2-digit values into 4 digit years.

 

Filter 

The filter transformation compares the values from the data with a value entered by the user. As a result you can either Export content into file or Export fixed value. To select another column that should be compared, click on the button and choose a column from the file in the window that will open. If the column that should be compared is not the column of the transformation, the number of the column will be shown instead of the symbol. To add further filter conditions use the button. For the combination of the conditions you can choose among AND and OR. 

 

 

 

 

 

 

Mar 26, 2024

Export Wizard Tutorial

This tutorial demonstrates the export of a small sample from the database. For an introduction see a short tutorial Video starten.

Choosing the data

In the main form, select the data that should be exported (only the data displayed in the query results are exported).

Exporting the data

Choose Data → Export → Wizard → Organism ... from the menu. A window as shown below will open where the available tables for export are listed in the upper left area. To show the data columns of a table, select this table in the list.

 

Adding additional tables

In this example, we want to add as many parallel identification tables as present in the data. To do this, click on the button of the Identification table. At the end of the list (depending on your data) the additional tables are added (see below).

 

Setting the sequence for the tables

To set the sequence of the Identifications, select the first table and for the column IdentificationSequence set sorting sequence to 1 and the direction for sorting to descending

 

Choosing data from linked modules

Some columns provide the possibility to add data from linked tables or modules. In this example we choose the column NameURI linking to the module DiversityTaxonNames (see below).

To provide linked values, click on the button. A window as shown below will open, where you can choose among the provided services.

After the service is selected, you will be asked for the value provided by the service (see below).

Now the selected link is added underneath the column as shown below. You can add as many links as you need for your export.

For some modules there are values that refer to other modules with a name like [Link to ...] as shown in the example below.

If you select one of theses values, you will be asked to select the service or database linked to this modul (see below)

... and then to select one of the provided columns (see below)

Within the form this linked values will be marked as shown below. If several results are retrieved these will be separated with by " | ".

 

Adding columns to the file

To add columns to the exported file, click on the buttons for the columns resp. linked values. In this example select all Family values and the TaxonomicName (see below).

 

Fusing columns

The families should appear as one column and as the sources can exist only once for each identification we can fuse these columns. To do so, click on the delimiters between these columns (see below).

 

Setting the headers

By default the headers for the exported data are set according to the names of the columns in the database. To change this, edit them as shown below where TaxonomicName has been changed to Taxon (see below). For fused columns only the header in the first column will be used.

 

Testing

To test the export, click on the Test export button. The result depends on the content in your data but should look similar as shown below.

 

Export

To finally export the data, choose the Export tab. By default the data will be exported into tab separated file in a directory in the application directory (see below). You can change the directory (click on the button). You can choose the Include schema option to create a schema that you may reuse in a later export.

Mar 26, 2024

Import

Import

Reference Manager

To import data stored in the commercial database Reference Manager use the RIS-Export function of Reference Manager.

Import

Choose Data → Import from the menu to start the import. A form will open where you can set the import options.

Filename: Click on the  button to choose the file you want to import from your file system.

Source: Specify the source of the data. This information will be documented in the [ImportedFrom] field in the table ReferenceTitle (see Import: in the main form) and used for subsequent imports and updates from the same source.

Responsible: The user who is responsible for the imported data.

Abstracts: Give the language of the abstracts in the references.

Availability: If more than one filing code is placed in one field, enter the separator for the filing codes.

Keywords: Give the language of the keywords in the references. The keywords can be transferred either to the private descriptors or the public available the descriptors. If you use special signs to classify you keywords you can use the mapping to translate this classification into the descriptor concept in DiversityReferences. This is shown in the [Mapping for descriptor elements] section in the image above. 

Mapping User defined: The UserDefined fields within Reference Manager will be transferred to the corresponding fields within the table ReferenceTitle of DiversityReferences unless you specify it otherwise. If possible, use the more exact targets within DiversityReferences for your import.

Import options: You may either update data allready in the database and import new data from the source or just import new data.

Import format: Currently there is only one import format that is supported by DiversityReferences - Reference Manager (RIS).

Click the [Start import] button to start the import.

Jan 14, 2025

Subsections of Import

Import Text

Import tagged text

Reference Manager

To import data stored in the commercial database Reference Manager use the RIS-Export function of Reference Manager.

Import

Choose Data → Import -> Import tagged text … from the menu to start the import. A form will open where you can set the import options.

Filename: Click on the  button to choose the file you want to import from your file system.

Responsible: Select the user who is responsible for the imported data.

Abstracts: Select the language of the abstracts in the references.

Availability: If more than one filing code is placed in one field, enter the separator for the filing codes.

Keywords: Select the language of the keywords in the references. The keywords can be transferred either to the private descriptors or the public available the descriptors. If you use special signs to classify you keywords you can use the mapping to translate this classification into the descriptor concept in DiversityReferences. This is shown in the Mapping for descriptor elements section in the image above. 

Mapping User defined: The UserDefined fields within Reference Manager will be transferred to the corresponding fields within the table ReferenceTitle of DiversityReferences unless you specify it otherwise. If possible, use the more exact targets within DiversityReferences for your import.

Import options: You may either update data allready in the database and import new data from the source or just import new data.

Import format: Currently there is only one import format that is supported by DiversityReferences - Reference Manager (RIS).

Click the Start import button to start the import. You will be informed about import errors and the number of imported datasets by message windows. If any datasets have been imported, they will be displayed in the query list of the main window, when you close the import form (see image below).

Jan 14, 2025

Import wizard

The import wizard is the general way to import data into a Diversity Workbench module database. It allows the import from tab separated text files (tsv) into the database tables. The key import steps, the definition of a mapping from tab seperated columns in the text file to the coresponding database table columns, is designed in the import wizard. As the mapping can be sometimes cumbersom to develop, the import wizard allows to save the mapping for repeated import of equaly structured tsv files.

The examples below are from the module DiversityAgents, but are valid for any other module as well.

With the current solution please ensure that there are no concurrent imports in the same database.

With this import routine, you can import data from text files (as tab-separated lists) into the database. A short introduction is provided in a video Video starten. Choose Data Import Wizard Agent from the menu. A window as shown below will open that will lead you through the import of the data. The window is separated in 3 areas. On the left side, you see a list of possible data related import steps according to the type of data you choose for the import. On the right side you see the list of currently selected import steps. In the middle part the details of the selected import steps are shown.

Choosing the File and Settings

  • File: As a first step, choose the File from where the data should be imported. The currently supported format is tab-separated text. Choosing a file will automatically set the default directory for the import files. To avoid setting this directory, deselect the option Adapt default directory in the context menu of the button to open the file.
  • Encoding: Choose the Encoding of the file, e.g. Unicode. The preferred encoding is UTF8.
  • Lines: The Start line and End line will automatically be set according to your data. You may change these to restrict the data lines that should be imported. The not imported parts in the file are indicated as shown below with a gray background. If the
  • First line: The option First line contains the column definition decides if this line will not be imported.
  • Duplicates: To avoid duplicate imports you can Use the default duplicate check - see a video Video starten for an explanation.
  • Language: If your data contains e.g. date information where notations differ between countries (e.g. 31.4.2013 - 4.31.2013), choose the Language / Country to ensure a correct interpretation of your data.
  • Line break: With the option Translate \r\n to line break the character sequence \r\n in the data will be translated in a line break in the database.
  • SQL statements: To save all SQL statements that are generated during a test or import, you can check the option Record all SQL statements. Video starten
  • Schema: Finally you can select a prepared Schema (see chapter Schema below) for the import.

Choosing the data ranges

In the selection list on the left side of the window (see below) all possible import steps for the data are listed according to the type of data you want to import.

The import of certain tables can be paralleled. To add parallels click on the button (see below). To remove parallels, use the button. Only selected ranges will appear in the list of the steps on the right (see below).

To import information of logging columns like who created and changed the data, click on the include logging columns button in the header line. This will include additional substeps for every step containing the logging columns (see below). If you do not import these data, they will be automatically filled by default values like the current time and user.

Attaching data

You can either import your data as new data or Attach them to data in the database. Select the import step Attachment from the list. All tables that are selected and contain columns at which you can attach data are listed (see below). Either choose the first option Import as new data or one of the columns the attachment columns offered like SeriesCode in the table Series in the example below.

If you select a column for attachment, this column will be marked with a blue background (see below and chapter Table data).

Merging data

You can either import your data as new data or Merge them with data in the database. Select the import step Merge from the list. For every table you can choose between Insert, Merge, Update and Attach (see below).

The Insert option will import the data from the file independent of existing data in the database.

The Merge option will compare the data from the file with those in the database according to the Key columns (see below). If no matching data are found in the database, the data from the file will be imported. Otherwise the data will be updated.

The Update option will compare the data from the file with those in the database according to the Key columns. Only matching data found in the database will be updated.

The Attach option will compare the data from the file with those in the database according to the Key columns. The found data will not be changed, but used as a reference data in depending tables. 

Empty content will be ignored e.g. for the Merge or Update option. To remove content you have to enter the value NULL. As long as the column will allow emty values, the content will be removed using the NULL value.

Table data

To set the source for the columns in the file, select the step of a table listed underneath the Merge step. All columns available for importing data will be listed in the central part of the window. In the example shown below, the first column is used to attach the new data to data in the database.

A reminder in the header line will show you which actions are still needed to import the data into the table:

  • Please select at least one column   = No column has been selected so far.
  • Please select at least one decisive column   = If data will be imported depends on the content of decisive columns, so at least one must be selected.
  • Please select the position in the file   = The position in the file must be given if the data for a column should be taken from the file.
  • Please select at least one column for comparison   = For all merge types other than insert columns for comparison with data in the database are needed.
  • From file or For all   = For every you have to decide whether the data are taken from the file or a value is entered for all
  • Please select a value from the list   = You have to select a value from the provided list
  • Please enter a value   = You have to enter a value used for all datasets

The handling of the columns in described in the chapter columns.

Testing

- To test if all requirements for the import are met use the Testing step. You can use a certain line in the file for your test and then click on the Test data in line:  button. If there are still unmet requirements, these will be listed in a window as shown below.

If finally all requirements are met, the testing function will try to write the data into the database and display any errors that occurred as shown below. All datasets marked with a red background, produced some error.  

To see the list of all errors, double click in the error list window in the header line (see below).

If finally no errors are left, your data are ready for import. The colors in the table nodes in the tree indicate the handling of the datasets:

  • INSERT
  • MERGE
  • UPDATE,
  • No difference
  • Attach
  • No data

The colors of the table columns indicate whether a column is decisive , a key column or an attachment column .  

If you suspect, that the import file contains data already present in the database, you may test this and extract only the missing lines in a new file. Choose the attachment column (see chapter Attaching data) and click on the button Check for already present data. The data already present in the database will be marked red (see below). Click on the button Save missing data as text file to store the data not present in the database in a new file for the import. The import of agents contains the option Use default duplicate check for AgentName that is selected by default. To ensure the employment of this option the column AgentName must be filled according to the generation of the name by the insert trigger of the table Agent (InheritedNamePrefix + ' ' + Inheritedname + ', ' + GivenName  + ' ' + GivenNamePostfix + ', ' + InheritedNamePostfix + ', ' + AgentTitle - for details, see the documentation of the database).

If you happen to get a file with a content as shown below, you may have seleted the wrong encoding or the encoding is incompatible. Please try to save the original file as UTF8 and select this encoding for the import. 

Import

- With the last step you can finally start to import the data into the database. If you want to repeat the import with the same settings and data of the same structure, you can save a schema of the current settings (see below). You optionally can include a description of your schema and with the button you can generate a file containing only the description.


Schedule for import of tab-separated text files into DiversityAgents

  • Target within DiversityAgents: Agent
  • Database version: 02.01.13
  • Schedule version: 1
  • Use default duplicate check:
  • Lines: 2 - 7
  • First line contains column definition:
  • Encoding: UTF8
  • Language: US

Lines that could not be imported will be marked with a red background while imported lines are marked green (see below).

If you want to save lines that produce errors during the import in a separate file, use the Save failed lines option. The protocol of the import will contain all settings according to the used schema and an overview containing the number of inserted, updated, unchanged and failed lines (see below).

Description

- A description of the schema may be included in the schema itself or with a click on the Import button generated as a separate file. This file will be located in a separate directory Description to avoid confusion with import schemas. An example for a description file is shown below, containing common settings, the treatment of the file columns and interface settings as defined in the schema.

  • and the video: Anpassungen für HUGO Video starten: Umzug von chm nach html. Anleitung für Umstellung auf html. Übersetzung von html nach markdown. Auswahl der Dateien im Programm. Pandoc als Voraussetzung für Konvertierung. Ansicht der markdown Dateien. Ersetzen des headers (Frontmatter). Anpassungen für Bilder, Ersatz der Icons durch Vektorgrafiken. Beispiel für Vektorgrafik. Bearbeitung der Liste für Ersetzungen über Tabelle. Laden einer Datei mit Ersetungen. Ansicht der Datei und Laden der Datei. Durchfürung der Ersetzungen.
  • How to export the content of enum tables for inclusion in the manual for HUGO
  • and the video Ausgabe des Inhalts von Aufzählungstabellen Video starten: Auswahl der Aufzählungstabellen, Anwählen der Ausgabeoption, Auswahl der Spalten, Export und Ansicht im Formular und im Browser.
  • How to fix broken links for Hugo
  • and the video: Video starten

  • How to related reference links for Hugo

  • and the video: Video starten

Administration

  • How to set the access to projects
    • see chapter Zugriff auf Projekte
    • and the video Video starten: Einstellungen des Zugriffs auf Projekte, Zugriff auf Daten innerhalb von Projekten

Editing

  • How to set the language of a dataset
    • see chapter Sprache
    • and the video Video starten: Festlegen der Sprache des Inhalts eines Datensatzes.
    • How are addresses retrieved from the hierarchy
      • see chapter Hierarchien
      • and the video Video starten: Haupthierarchie mit Ermittlung der Adresse und zusätzliche Hierarchien.
        • How to remove loops from a hierarchy
          • see chapter Schleifen entfernen
          • and the video Video starten: Entfernen von Schleifen in der Hierarchie anhand von Beispieldaten.
    • How to remove loops in the synonymy
    • How to see the public contanct infos
      • see chapter Öffentliche Kontaktdaten
      • and the video Video starten: Ermittlung der öffentlichen Kontaktdaten anhand zugänglichen Kontaktdaten des aktuellen Eintrags sowie der in der Haupthierarchie verfügbaren Kontaktdaten.
    • How to set the icons of descriptors
      • see chapter Descriptoren - Icons einstellen
      • and the video Video starten: 2 prinzipielle Typen von Deskriptor: Modul zugeordnet oder ohne Modul. 4 Möglichkeiten für die Einstellung der Icons - OHNE ICON: Modul zugeordnet: Default Icon des Moduls. ohne Modul: Default Icon für Deskriptor. MIT ICON: ohne Modul: Ausgabe des gesetzten Icons. Modul zugeordnet: Ausgabe des gesetzten Icons. Default Icon des Moduls wird ersetzt.
    • How to propagate changes to linked data
      • see chapter Änderungen verlinkter Datensätze weiterleiten
      • and the video Video starten: DiversityAgents als Modul in der DWB. Darstellung der Beispieldaten in DiversityCollection und DiversityAgents. Änderung in DiversityAgents, Eintrag des geänderten Datensatzes in Update Liste. Auswahl der zu aktualsierenden Datenbanken. Display types in DiversityAgents. Eintrag von aktuellem Datensatz, Eintrag aller Datensätze, Ansicht der Liste, Löschen der Liste. Aktualisieren des Datensatzes. Kontrolle der Änderungen in DiversityCollection.
    • Spreadsheet

  • How to include column RowGUID to enable changes in the PK of a table
  • see chapter …
  • and the video RowGUID einschliessen Video starten: Erläuterung der RowGUID. Beispieldaten im TableEditor. Laden der Daten im Spreadsheet. Versuch der Änderung einer Spalte die Teil des Primärschlüssels ist. Einschliessen der RowGUID. Versuch der Änderung mit eingeschlossener RowGUID. Ablehnung der Änderung bei Kollision mit Primärschlüssel. Änderung der Daten ohne Kollision. Ergebnis der Bearbeitung.

Import

  • How to import data
    • see chapter Überblick
    • and the video Video starten: Import von Daten anhand des Beispiels im Tutorial.
    • How to check for duplicates
      • see chapter Duplikate
      • and the video Video starten: Prüfung auf in der Datenbank bereits vorhandene Duplikate während des Imports.
    • How to transform data during the import
      • see chapter Transformation
      • and the video Video starten. Transformation von Daten für den Import am Beispiel eines Datums.

Archive

  • How to create an achive including the log tables
  • see chapter Archiv inclusive des Logs
  • and the video Video starten.
    (Aufbau von Logtabellen, Vorstellung der Beispieldaten, Erstellung eines Archivs: Einschliessen der Logtabellen, Suche nach Daten, Anlegen des Archivs. Wechsel in leere Datenbank. Einlesen der Archivdaten: Auswahl des Archivs, Log einschliessen, Einlesen der Daten, Archivdaten einspielen, Meldung zu vorhandenem Projekt. Anmeldebestätigung. Ansicht der Daten einschliesslich der Daten in den Logtabellen)
  • How to create an archive
  • see chapter Archiv erstellen
  • and the video Video starten.
    (Automatisierte Erstellung durch Server, Manuelle Erstellung, Suche nach Daten, Erstellung, Inhalt einer xml-Datei, Protokoll).

General

Mar 26, 2024

Subsections of General

High Resolution

High-resolution displays

More and more computers are nowadays delivered with high-resolution displays. Since Diversity References is a Windows forms application, which works pixel-oriented, the program window would become smaller and smaller with increasing display resolution.

To face this problem, Windows uses a scaling mechanism, which zooms pixel-oriented applications, which may lead to a burry picture. To avoid this, an alternative is to increase the font sizes within the application and magnify elements like buttons, data grids and so on, which is called “DPI-awareness” of the application. Since the icons within the application are not zoomed automatically, this mechanism usually only works satisfactory with moderate scaling factors of some 125% or 150%. For higher factors the icons within the application will become too small. You can check the scaling factor fo your system in the Windows settings → System → Display, section “Scale and layout”  

If you have problems with DiversityReferences with a high-resolution display, please try out if you get better results with the Windows scaling. Therefore right-click the program icon (usually on your desktop), select “Properties” and go to the “Compatibility” tab (see image below).

Please click on button Change high DPI setting and another window as shown below will appear.

Check the option “High DPI caling override” and you will be able to select a different value than the default “Application”. Please try out if “System” or “System (Enhanced)” gives better results. After confirming with OK start the application and check the adjustment.

 

May 16, 2024

Feedback

If you have suggestions for improvement, need any changes in the programm or encouter an error you can give a feedback to the administrator. Click on the ALT and PRINT buttons to get a screen shot of your current form. After creating the screen shot choose Help - Feedback from the menu to open the feedback form as shown below.

 

Click on the Insert image button to insert the screen shot and give a comment about your problem. In the field Topic enter the topic of your feedback (will appear in response e-mail). The Priority can either be empty or set to 3 levels:

  • urgent
  • as soon as possible
  • nice to have

If necessary, enter a date in the field ToDo until when you would like to have the task described in you feedback be solved. Then click on the  Send feedback button to send your feedback to the administrator. If you would like to receive a message when the problem you described is solved, please enter you e-mail address in the field below the description.

To inspect your former feedbacks choose Feedback history from the menu. A window will open where you can browse your past feedback together with the state of progress.

Jan 3, 2025

Internals

For users that need more detailed information about the software including database design etc.

May 3, 2024

Subsections of Internals

Administration

Administration

There are several menu items that are only available for database role DiversityReferencesAdministrator:

Keyword types: Administration of the keyword types (descriptors).

Periodicals: Administration of the periodicals.

Reference types: Administration of the reference types.

Logins: Administration of the logins of the server their permissions in the databases.

Rename database: Rename the current database.

Set published names: Setting the address published for links by other modules.

 

 

The other menu items are also available for database role DiversityReferencesEditor:

Documentation: Documentation of the structure of the database.

Projects: Administration of the projects.

 

 

Jan 14, 2025

Subsections of Administration

Descriptors

Keyword types (descriptors)

For the administration of the keywords (= descriptors) choose Administration → Keyword types … from the menu. A window as shown below will open, where you can enter, edit and delete descriptors used as keywords for the references. Click on button to start a new query, for details refer to the manual section concerning the query. Use the button to enter a new descriptor and the button to delete a selected descriptor. Click on the  botton if you want to save your changes of the current dataset. The changes will be saved automatically, if you select a different entry in the query result list. With button you may undo changes of the current dataset since the last save.

A descriptor may have relations to other descriptors (see image below). In section Relations to other descriptor elements use the button to enter a new relation and the button to delete a selected relation. To view and/or change the URI for the descriptor resp. a relation click on the  button.

 

If you try to delete a descriptor that is still referenced by other one as a parent, you will ge an error message as shown below. You may easily find the referencing desceriptor by entering you descriptor label in quey field Relation - Parent

 

With button in the upper right area of the form you may access the history of the selected dataset. After resoring a deleted descriptor, you wil have to restore its deleted relations in separate steps. With button you may send a feedback to the software developers. By clicking on button you may search for reference titles that use the current descriptor (see image below). After closing the reference title overview you have the option to return to the main program window with the found reference titles. 

 

 

Jan 14, 2025

Documentation

Documentation

For the documentation of the database choose Admininstration -> Database → Documentation … from the menu. A window as shown below will open, where you can create diverse formats for the documentation of the structure of the database.

 

 

 

May 16, 2024

Periodicals

Periodicals

For the administration of the periodicals choose Admininstration -> Periodidals … from the menu. A window as shown below will open, where you can enter, edit and delete periodicals used for the references. Click on button to start a new query, for details refer to the manual section concerning the query. Use the button to enter a new periodical and the button to delete a selected periodical. Click on the  botton if you want to save your changes of the current dataset. The changes will be saved automatically, if you select a different entry in the query result list. With button you may undo changes of the current dataset since the last save.

A periodical may have several synonyms (see image above). In section Synonyms use the button to enter a new synonym and the button to delete a selected synonym. Furthermore you may assign the periodical to one or several projects. In section Projects use the button to assign a new project and the button to remove a selected project.

With button in the upper right area of the form you may access the history of the selected dataset. With button you may send a feedback to the software developers. By clicking on button you may search for reference titles that use the current periodical (see image below). After closing the reference title overview you have the option to return to the main program window with the found reference titles. 

 

 

Jan 14, 2025

Reference types

Reference types

For the administration of the reference types (= keywords) choose Admininstration → Reference types … from the menu. A window as shown below will open, where you can edit the definitions for the fields Miscellaneous 1-3 and User defined 1-5. The labels will be shown in the interface according to the type of the reference. You can save your changes by clicking OK or omit your changes by clicking Abort. With button in the upper right area of the form you may access the history of the selected dataset. With button you may send a feedback to the software developers.

 

 

 

May 16, 2024

Database

Database

The database for DiversityRefences is based on Microsoft SQL-Server.

Organisation of the data

The main table of the database are ReferenceTitle corresponding to the reference. Connected to this table you find tables for holding additional information.

The structure of the whole database is shown in the image below.

 

For details about the tables and project relevant data: tables, projects.

 

Jan 14, 2025

Subsections of Database

Installation

Diversity Workbench modules use Microsoft SQL-Server 2014 or above as database engine. If you do not have a database server with DiversityAgents already available, you have to install the database engine first. Download the free version of Microsoft SQL Server Express 2016 or above from http://www.microsoft.com/downloads/.. Start the program and follow the instructions for the installation.

 

Server configuration

To configure your server for remote access, launch the SQL Server Configuration Manager (see image below).

If the tool is not available via the app menu but you have SqlServerManagmentStudio and SqlServer installed type [Win] + r to open the Run dialog, type the command SQLServerManager16.msc and press [Enter] to start the tool.

Then click on the "Protocols for SQLEXPRESS" node. Right click on "TCP/IP" in the list of Protocols and choose "enable" for TCP/IP.

Right click on the TCP/IP node and select, "Properties" to open a window as shown below.

In the part IPALL clear out the value for "TCP Dynamic Ports". Give a TCP-Port number to use when making remote connections, e.g. "4321" as shown above. You have to restart the SQL Server Express service before you can connect to your database. 

If you use a database on a server, make sure that the firewall of the server allows access via the port you set for the connections (see below). 

Start the Microsoft SQL Server Managment Studio and attach the database as shown below. Choose the node "databases" and right-click on it to open the context menu (see below). Then choose "attach" from the context menu. A window will open where you can choose the file DiversityAgents_Data.MDF from your database directory and attach it to the database engine.

 

After the installation make shure to get the latest updates from http://windowsupdate.microsoft.com/.

 

Database configuration

To configure your Database, use the Client as described in

Database configuration.

Mar 26, 2024

Project tables

The access to the data is managed via projects where each project of DiversityReferences may be linked to a project from DiversityProjects. Every entry of table “ReferenceTitle” is assigned to the related projects by table “ReferenceProject”. DiversityReferences contains the tables “UserProxy”, “ProjectUser” and “ProjectProxy” to allow an independent administration of the basic functions related to projects and users.

 

 

Index

Table ProjectProxy

The projects as stored in the module DiversityProjects

Column Data type Description
ProjectID int ID of the project to which the specimen belongs (Projects are defined in DiversityProjects)
Project nvarchar (50) The name or title of the project as shown in a user interface (Projects are defined in DiversityProjects)
ProjectURI nvarchar (255) URI of a project in a remote module, e.g. refering to database DiversityProjects

Table ProjectUser

The projects that a user can access

Column Data type Description
LoginName nvarchar (50) A login name which the user uses for access the DivesityWorkbench, Microsoft domains, etc..
ProjectID int ID of the project to which the specimen belongs (Projects are defined in DiversityProjects)
ReadOnly bit If the user has only read access to data of this project
Default value: (0)

Table UserProxy

The user as stored in the module DiversityAgents

Column Data type Description
LoginName nvarchar (50) A login name which the user uses for access the DivesityWorkbench, Microsoft domains, etc..
CombinedNameCache nvarchar (255) The short name of the user, e.g. P. Smith
AgentURI nvarchar (255) URI of a user in a remote module, e.g. refering to database DiversityAgents
Queries xml (MAX) Queries created by the user
ID int ID of the user
PrivacyConsent bit If the user consents the storage of his user name in the database
PrivacyConsentDate datetime The time and date when the user consented or refused the storage of his user name in the database
May 3, 2024

Diversity References

The following objects are not included:

  • Logging tables
  • Enumeration tables
  • System objects
  • Objects marked as obsolete
  • Previous versions of objects

TABLES


Table ReferenceAvailability

Availability and location of reference items in private or official filing system; e.g., book signatures or reprint article availability. Each responsible user may enter multiple filing codes.

Column Data type Description Nullable Relation
RefID int Refers to the ID code of the main ReferenceTitle table (= foreign key) NO Refers to table ReferenceTitle
RecordID int Unique random ID (see trigger) to identify the availability record. (Technical note: to improve reliability of database replication, the primary key is formed in combination with the RefID. Note that FilingCode is optional and not suitable.)Default value: CONVERT([int],rand()*(2147483647.1),(0)) NO -
FilingCode nvarchar (255) Information about availability or location of a copy of the referenced publication: Filing code of reprint or book in private filing system, institutional catalogue code, signature, official call number, or shelf code in a library. //[RefMan 27: AV]Default value: '' NO -
ReprintStatus smallint Refers to filing system of responsible person. Reprint may be ‘Not in file’ (0), ‘On request (card to author)’ (1), ‘On request (internal order/copy marker)’ (2), ‘On request (interlibrary loan)’ (3), or ‘In file’ (4) //[RefMan 08: RP pro parte]Default value: (0) NO Refers to table Ref_AvailabilityReprintStatus_Enum
RequestDate datetime Only if ReprintStatus = ‘On request’ (1/2): The date on which the reprint was requested. //[RefMan 08: RP pro parte] YES -
Responsible int The person responsible for the availability/filing code information, and to which the reprint status/request date refers. //[RefMan: not supported] NO -
LogInsertedBy nvarchar (50) ID of the creator of this data setDefault value: [dbo].UserID YES -
LogInsertedWhen smalldatetime Date and time when the data were first entered (typed or imported) into this database.Default value: getdate() YES -
LogUpdatedBy nvarchar (50) ID of the person to update this data set lastDefault value: [dbo].UserID YES -
LogUpdatedWhen smalldatetime Date and time when the data were last updated.Default value: getdate() YES -

Depending on:

  • Ref_AvailabilityReprintStatus_Enum
  • ReferenceTitle

trgInsReferenceAvailability


Table ReferenceDescriptor

Object names, event names, keywords, etc., providing indexing information for a resource.

Column Data type Description Nullable Relation
RefID int ID of external resource to which the descriptor applies (foreign key) NO Refers to table ReferenceTitle
Language varchar (5) Language in which element content is expressed. Necessary even for numeric or date content (because expressed through string using language-specific conventions)Default value: ’en’ NO -
ElementID int ID of a descriptor element concept (foreign key)Default value: (0) NO Refers to table ReferenceDescriptorElement
Content nvarchar (255) A name, state, or value text for the descriptor element.Default value: '’ NO -
ContentURI varchar (255) The URI of a conceptual ontological resource considered equivalent with the content, especially URIs for taxon names or keywords from ontologies.Default value: '’ NO -
InstanceGrouping smallint Normally Null. If set, element relations are evaluated only within same-numbered instances. Example: 3 host-pathogen-pairs exist in one resource, each pair would get same instance number. Still, a place name set to instance=Null would apply to all.Default value: NULL YES -
ID int Internal system generated primary key. Note that multiple values for a descriptor concept may be added (e.g. keywords) NO -
LogInsertedBy nvarchar (50) ID of the creator of this data setDefault value: [dbo].UserID YES -
LogInsertedWhen smalldatetime Date and time when the data were first entered (typed or imported) into this database.Default value: getdate() YES -
LogUpdatedBy nvarchar (50) ID of the person to update this data set lastDefault value: [dbo].UserID YES -
LogUpdatedWhen smalldatetime Date and time when the data were last updated.Default value: getdate() YES -

Depending on:

  • ReferenceDescriptorElement
  • ReferenceTitle

Table ReferenceDescriptorElement

Examples of descriptor elements (= concepts for variables) are keyword, taxon name, pathogen name, host name, or host feature. Association with ResourceCollections is defined in ReferenceDescriptorAssociation, relations in Res.DescriptorElementRelation.

Column Data type Description Nullable Relation
ElementID int Numeric identifier (primary key). NO -
ElementAbbrev nvarchar (25) Short abbreviated name for descriptor element.Default value: '’ NO -
ElementLabel nvarchar (80) Concise English label of a descriptor element definition.Default value: '’ NO -
DisplayOrder int Order in which elements are displayed independently of a resource collection (for order within a collection see ReferenceDescriptorAssociation.DisplayOrder).Default value: (0) NO -
ElementDescription nvarchar (1000) A free-form text that may be displayed in user interfaces as explanatory text.Default value: '’ NO -
ElementURI varchar (255) The URI of a conceptual ontological resource considered equivalent with this descriptor element.Default value: '' NO -
InternalNotes nvarchar (1000) Internal notes and remarks. Although normally not published in public reports, this should not be used for truly confidential information.Default value: '' NO -
DisplayEnabled bit Whether this DescriptorElement is to be displayed in the user interface. NO -
LogInsertedBy nvarchar (50) ID of the creator of this data setDefault value: [dbo].UserID YES -
LogInsertedWhen smalldatetime Date and time when the data were first entered (typed or imported) into this database.Default value: getdate() YES -
LogUpdatedBy nvarchar (50) ID of the person to update this data set lastDefault value: [dbo].UserID YES -
LogUpdatedWhen smalldatetime Date and time when the data were last updated.Default value: getdate() YES -

Table ReferenceDescriptorElementRelation

General relations between descriptor elements (applicable to all values present in ReferenceDescriptor)

Column Data type Description Nullable Relation
FromElement int Starting point of relation (foreign key, part of primary key) NO Refers to table ReferenceDescriptorElement
RoleLabel nvarchar (25) Abbreviated label for relation in forward directionDefault value: '' NO -
ToElement int End point of relation (foreign key, part of primary key) NO Refers to table ReferenceDescriptorElement
RoleDescription nvarchar (1000) A free-form text that may be displayed in user interfaces as explanatory text.Default value: '' NO -
RoleURI varchar (255) The URI of a conceptual ontological resource considered equivalent with the role of this relation.Default value: '' NO -
InternalNotes nvarchar (1000) Internal notes and remarks. Although normally not published in public reports, this should not be used for truly confidential information.Default value: '' NO -
LogInsertedBy nvarchar (50) ID of the creator of this data setDefault value: [dbo].UserID YES -
LogInsertedWhen smalldatetime Date and time when the data were first entered (typed or imported) into this database.Default value: getdate() YES -
LogUpdatedBy nvarchar (50) ID of the person to update this data set lastDefault value: [dbo].UserID YES -
LogUpdatedWhen smalldatetime Date and time when the data were last updated.Default value: getdate() YES -

Depending on:

  • ReferenceDescriptorElement

Table ReferenceNote

Public reference abstracts/notes.

Column Data type Description Nullable Relation
RefID int Refers to the ID code of the main ReferenceTitle table (= foreign key) NO Refers to table ReferenceTitle
Responsible int * The person responsible for the abstract information. Abstracts are copyright protected! Clearly state if the abstract was not written by you, but copied from the publication itself or a bibliographic database. //[RefMan: not supported]Default value: [dbo].wbCurrentUserID NO -
Language varchar (20) * Language of the abstract, as ISO 2 letter codes. //[RefMan : not supported!]Default value: ‘UNK’ NO -
Content nvarchar (4000) An abstract containing a short summary of the content of the article or book //[RefMan 25: N2] NO -
LogInsertedBy nvarchar (50) ID of the creator of this data setDefault value: [dbo].UserID YES -
LogInsertedWhen smalldatetime Date and time when the data were first entered (typed or imported) into this database.Default value: getdate() YES -
LogUpdatedBy nvarchar (50) ID of the person to update this data set lastDefault value: [dbo].UserID YES -
LogUpdatedWhen smalldatetime Date and time when the data were last updated.Default value: getdate() YES -

Depending on:

  • ReferenceTitle

Table ReferencePeriodical

Periodical (journal/magazine, etc.) titles.

Column Data type Description Nullable Relation
Abbreviation nvarchar (255) Standardized abbreviation of periodical or journal. Use periods after the abbreviations //[RefMan 11: JA, JO] NO -
FullName nvarchar (255) Full, non-abbreviated name of periodical or journal //[RefMan 11: JF, JO]Default value: '' NO -
Notes nvarchar (4000) Notes, remarks, or comments regarding the journal/periodical as a whole, incl. “continued as (new title)” or notes about local availabilityDefault value: '' NO -
ImportedFrom nvarchar (255) If imported from another database: The name of the database system or provider; otherwise empty.Default value: '' NO -
PeriodicalID int - NO -
LogInsertedBy nvarchar (50) ID of the creator of this data setDefault value: [dbo].UserID YES -
LogInsertedWhen smalldatetime Date and time when the data were first entered (typed or imported) into this database.Default value: getdate() YES -
LogUpdatedBy nvarchar (50) ID of the person to update this data set lastDefault value: [dbo].UserID YES -
LogUpdatedWhen smalldatetime Date and time when the data were last updated.Default value: getdate() YES -

trgInsReferencePeriodical


Table ReferencePeriodicalProject

Column Data type Description Nullable Relation
Abbreviation nvarchar (255) Standardized abbreviation of periodical or journal, as defined in ReferencePeriodical entity (= foreign key). NO Refers to table ReferencePeriodical
ProjectID int ID of the project to which the periodical belongs (Projects are defined in DiversityProjects) NO Refers to table ProjectProxy
LogInsertedBy nvarchar (50) ID of the creator of this data setDefault value: [dbo].UserID YES -
LogInsertedWhen smalldatetime Date and time when the data were first entered (typed or imported) into this database.Default value: getdate() YES -
LogUpdatedBy nvarchar (50) ID of the person to update this data set lastDefault value: [dbo].UserID YES -
LogUpdatedWhen smalldatetime Date and time when the data were last updated.Default value: getdate() YES -

Depending on:

  • ProjectProxy
  • ReferencePeriodical

Table ReferencePeriodicalSynonym

Periodical (journal/magazine, etc.) titles: thesaurus with synonyms -> valid name. Any entry in Periodical.Abbreviation and Periodical.FullName must also be added to the synonym table.

Column Data type Description Nullable Relation
Synonym nvarchar (255) Alternative, synonymous names for the main record. Automatically translated into StdAbbrev if a thesaurus pick list is used in forms. //[RefMan 11: J1, J2] NO -
Abbreviation nvarchar (255) Standardized abbreviation of periodical or journal, as defined in ReferencePeriodical entity (= foreign key). NO Refers to table ReferencePeriodical
Source nvarchar (255) Source of the synonym/thesaurus name: ‘ABBR’ for standard abbreviation, ‘FULL’ for standard full name, else name or abbrev. of user who added a non-standard synonym (like PNAS for Proc. Nat. Acad. Sci.) NO -
LogInsertedBy nvarchar (50) ID of the creator of this data setDefault value: [dbo].UserID YES -
LogInsertedWhen smalldatetime Date and time when the data were first entered (typed or imported) into this database.Default value: getdate() YES -
LogUpdatedBy nvarchar (50) ID of the person to update this data set lastDefault value: [dbo].UserID YES -
LogUpdatedWhen smalldatetime Date and time when the data were last updated.Default value: getdate() YES -

Depending on:

  • ReferencePeriodical

Table ReferencePrivateDescriptor

Object names, event names, keywords, etc., providing indexing information for a resource.

Column Data type Description Nullable Relation
RefID int ID of external resource to which the descriptor applies (foreign key) NO Refers to table ReferenceTitle
PrivateTo int (UNUSED : using table ProvateDescriptor instead!)Either the UserID of the user who created this descriptor for private usage or null for a public descriptor Default value: [dbo].wbCurrentUserID NO -
Language varchar (5) Language in which element content is expressed. Necessary even for numeric or date content (because expressed through string using language-specific conventions)Default value: ’en’ NO -
ElementID int ID of a descriptor element concept (foreign key)Default value: (0) NO Refers to table ReferenceDescriptorElement
Content nvarchar (255) A name, state, or value text for the descriptor element.Default value: '’ NO -
ContentURI varchar (255) The URI of a conceptual ontological resource considered equivalent with the content, especially URIs for taxon names or keywords from ontologies.Default value: '' NO -
InstanceGrouping smallint Normally Null. If set, element relations are evaluated only within same-numbered instances. Example: 3 host-pathogen-pairs exist in one resource, each pair would get same instance number. Still, a place name set to instance=Null would apply to all.Default value: NULL YES -
ID int Internal system generated primary key. Note that multiple values for a descriptor concept may be added (e.g. keywords) NO -
LogInsertedBy nvarchar (50) ID of the creator of this data setDefault value: [dbo].UserID YES -
LogInsertedWhen smalldatetime Date and time when the data were first entered (typed or imported) into this database.Default value: getdate() YES -
LogUpdatedBy nvarchar (50) ID of the person to update this data set lastDefault value: [dbo].UserID YES -
LogUpdatedWhen smalldatetime Date and time when the data were last updated.Default value: getdate() YES -

Depending on:

  • ReferenceDescriptorElement
  • ReferenceTitle

Table ReferencePrivateNote

User specific notes. Each user will only see the notes entered under the same responsible user name.

Column Data type Description Nullable Relation
RefID int Refers to the ID code of the main ReferenceTitle table (= foreign key) NO Refers to table ReferenceTitle
PrivateTo int * The person responsible for the Notes. //[RefMan: not supported]Default value: [dbo].wbCurrentUserID NO -
Content nvarchar (4000) Internal notes regarding the reference title. Notes will normally be visible only under the same Responsible login name. //[RefMan 06: N1, AB] NO -
LogInsertedBy nvarchar (50) ID of the creator of this data setDefault value: [dbo].UserID YES -
LogInsertedWhen smalldatetime Date and time when the data were first entered (typed or imported) into this database.Default value: getdate() YES -
LogUpdatedBy nvarchar (50) ID of the person to update this data set lastDefault value: [dbo].UserID YES -
LogUpdatedWhen smalldatetime Date and time when the data were last updated.Default value: getdate() YES -

Depending on:

  • ReferenceTitle

Table ReferenceProject

The projects within which the Reference were placed

Column Data type Description Nullable Relation
RefID int Refers to the ID of ReferenceTitle (= Foreign key and part of primary key) NO Refers to table ReferenceTitle
ProjectID int ID of the project to which the Reference belongs (Projects are defined in DiversityProjects) NO Refers to table ProjectProxy
LogInsertedBy nvarchar (50) ID of the creator of this data setDefault value: [dbo].UserID YES -
LogInsertedWhen smalldatetime Date and time when the data were first entered (typed or imported) into this database.Default value: getdate() YES -
LogUpdatedBy nvarchar (50) ID of the person to update this data set lastDefault value: [dbo].UserID YES -
LogUpdatedWhen smalldatetime Date and time when the data were last updated.Default value: getdate() YES -

Depending on:

  • ProjectProxy
  • ReferenceTitle

Table ReferenceRelator

Reference authors, book editors, or series editors.

Column Data type Description Nullable Relation
RefID int Refers to the ID code of the main ReferenceTitle table (= foreign key) NO Refers to table ReferenceTitle
Role nvarchar (3) Relator codes from MARC; Reference manager supports only aut = primary author, 2 = secondary author/editor, 3 = series editor. //[RefMan implicit] NO Refers to table Ref_RelatorRole_Enum
Sequence int The sequence of authors of the article. (Default based on system date/time; counter attrib. wouldn’t work with replication -> random sequence! Note: Au+RefID+Type is not necessarily unique. Two authors may have identical abbreviated names, e.g. spouses!)Default value: CONVERT([int],(99999)*(CONVERT([float],getdate(),(0))-(37200)),(0)) NO -
Name nvarchar (255) Author, editor, etc. Example: ‘Miller, W. I., Jr.’. Format: Last name, comma, first initial with period and blank, optional middle initial, and optional comma plus suffix (Jr./Sr./III./MD etc.) //[RefMan 04: A1/AU, 14: A2/ED, 24: A3; no ‘*’ allowed!] NO -
AgentURI varchar (255) The URI of the Agent, e.g. as stored within the module DiversityAgents YES -
SortLabel nvarchar (255) Name of the agent without special characters formatted to facilitate sorting YES -
Address nvarchar (1000) The address of the author, if available. Entered only in cases where it is of special relevance to one of the users of the database (or if imported from a database). //[RefMan 32: AD]Default value: '’ YES -
LogInsertedBy nvarchar (50) ID of the creator of this data setDefault value: [dbo].UserID YES -
LogInsertedWhen smalldatetime Date and time when the data were first entered (typed or imported) into this database.Default value: getdate() YES -
LogUpdatedBy nvarchar (50) ID of the person to update this data set lastDefault value: [dbo].UserID YES -
LogUpdatedWhen smalldatetime Date and time when the data were last updated.Default value: getdate() YES -

Depending on:

  • Ref_RelatorRole_Enum
  • ReferenceTitle

trgInsReferenceRelator


Table ReferenceTitle

Main entity; compatible with Reference Manager™ v.9-11

Column Data type Description Nullable Relation
RefType nvarchar (10) Type of literature reference, determines which fields are available for data entry. The value must come from the pick list provided. //[RefMan 01: TY]Default value: ‘JOUR’ NO Refers to table Ref_Type_Enum
RefID int Unique reference ID code for the reference record. Currently supporting only integer numbers. Note that RefMan in principle supports 20 char., but uses only integers. //[RefMan 02: ID]Default value: CONVERT([int],rand()*(2147483647.1),(0)) NO -
RefDescription_Cache nvarchar (255) * A short system generated text identifying the reference, usually authors, year, title. Example: ‘Smith. & Nao 1999. New Taxa.’ //[RefMan: not applicable]Default value: '’ NO -
Title nvarchar (MAX) The main (primary) title. Use normal capitalization, omit a period (’.’) at the end, and do not type a paragraph return (Enter) at the end of each line! //[RefMan 03: TI, T1, CT, BT only for BOOK & UNPB]Default value: '’ NO -
DateYear smallint Year of the publication date (primary date). Only numbers are allowed and the year must be entered with 4 digits (‘1998’, not ‘98’). //[RefMan 05: Y1,PY pro parte] YES -
DateMonth smallint Optional: The month of the publication date. [Note: in DateYear/Month/Day the information printed on the book or journal are entered, even if this is not the true date!] //[RefMan 05: Y1,PY pro parte] YES -
DateDay smallint Optional: The day of the publication date. [Note continued: if the true date is relevant, e.g. for the purpose of nomenclatural priority, it can be entered under DateSecondary.] //[RefMan 05: Y1,PY pro parte] YES -
DateSuppl nvarchar (255) Optional: A date supplement, like ‘approx.’, a season (‘Summer’), a quarter (‘1st Quarter’), or any other information regarding the publication date. //[RefMan 05: Y1,PY pro parte]Default value: '’ NO -
SourceTitle nvarchar (MAX) The book (secondary) title in cases where the reference is an article or chapter from a book. Use normal capitalization.//[RefMan 13: T2; BT for all types except BOOK & UNPB]Default value: '’ NO -
SeriesTitle nvarchar (255) The series title. Use normal capitalization, omit a period (’.’) at the end, and do not type a paragraph return (Enter) at the end of each line! //[RefMan 23: T3]Default value: '’ NO -
Periodical nvarchar (255) Journal/periodical in which the article appeared. Linked to the Abbreviation attribute of ReferencePeriodical. //[RefMan 11: JF, JO, JA]Default value: '’ NO -
Volume nvarchar (255) The volume (for periodicals or journals, excluding the issue number), report number, etc. //[RefMan 12: VL pro parte, comp. Edition!]Default value: '’ NO -
Issue nvarchar (255) The issue, if any. Useful also to enter a special designation for a supplement, for example for ‘xxx 45 (Suppl.)’ enter volume = 45 and issue = ‘Suppl.’. Do not put ‘()’ around the issue number. //[RefMan 15: IS]Default value: '’ NO -
Pages nvarchar (255) The page, table, or figure numbers for the reference, e.g. ‘23-41’, ‘341 pp.’, or ‘20, 22-24, 32’ (for non-consecutive pages). //[RefMan 09: SP + 10: EP]Default value: '’ NO -
Publisher nvarchar (255) The name of the publisher (publishing company or institution, including universities or scientific societies). //[RefMan 17: PB]Default value: '’ NO -
PublPlace nvarchar (255) The location where the item being referenced was published, such as a city and state. //[RefMan 16: CY, CP]Default value: '’ NO -
Edition smallint Number of the edition of a book. Use only positive integer numbers. //[RefMan 12: VL pro parte, compare Volume!] YES -
DateYear2 smallint Year of a secondary date, esp. the true publ. date where relevant for nomenclatural priority. Only numbers are allowed and the year must be entered with 4 digits (‘1998’, not ‘98’). //[RefMan 28: Y2 pro parte] YES -
DateMonth2 smallint Optional: The month of a secondary date. //[RefMan 28: Y2 pro parte] YES -
DateDay2 smallint Optional: The day of a secondary date. //[RefMan 28: Y2 pro parte] YES -
DateSuppl2 nvarchar (255) Optional: A date supplement a secondary date, like ‘approx.’, a season (‘Summer’), a quarter (‘1st Quarter’), or any other information regarding the secondary date. //[RefMan 28: Y2 pro parte]Default value: '’ NO -
ISSN_ISBN nvarchar (18) The ‘International Standard Serial Number’ or ‘International Standard Book Number’. Optional information; use is recommended only for publications that are otherwise difficult to order. //[RefMan 26: SN]Default value: '’ NO -
Miscellaneous1 nvarchar (255) Various reference type dependent information; e.g. the total number of volumes for books //[RefMan 29: M1]Default value: '’ NO -
Miscellaneous2 nvarchar (255) Various reference type dependent information //[RefMan 30: M2]Default value: '’ NO -
Miscellaneous3 nvarchar (255) Various reference type dependent information //[RefMan 31: M3]Default value: '’ NO -
UserDef1 nvarchar (MAX) User defined fields as entered in Reference Manager, only provided for import/export compatibility and not supported beyond that. //[RefMan 18: U1]Default value: '’ NO -
UserDef2 nvarchar (MAX) User defined fields as entered in Reference Manager, only provided for import/export compatibility and not supported beyond that. //[RefMan 19: U2]Default value: '’ NO -
UserDef3 nvarchar (MAX) User defined fields as entered in Reference Manager, only provided for import/export compatibility and not supported beyond that. //[RefMan 20: U3]Default value: '’ NO -
UserDef4 nvarchar (MAX) User defined fields as entered in Reference Manager, only provided for import/export compatibility and not supported beyond that. //[RefMan 21: U4]Default value: '’ NO -
UserDef5 nvarchar (MAX) User defined fields as entered in Reference Manager, only provided for import/export compatibility and not supported beyond that. //[RefMan 22: U5]Default value: '' NO -
WebLinks nvarchar (MAX) One or several URLs; use the semicolon as separator (http://www…). A URL may point to a local file (C:\graphic.gif; \servername\Data\x.doc) //[RefMan 33: UR]Default value: '' NO -
LinkToPDF nvarchar (MAX) One or several URLs; use the semicolon as separator (http://www…). A URL may point to a local file (C:\graphic.gif; \servername\Data\x.doc) //[RefMan 34: L1]Default value: '' NO -
LinkToFullText nvarchar (MAX) One or several URLs; use the semicolon as separator (http://www…). A URL may point to a local file (C:\graphic.gif; \servername\Data\x.doc) //[RefMan 35: L2]Default value: '' NO -
RelatedLinks nvarchar (MAX) One or several URLs; use the semicolon as separator (http://www…). A URL may point to a local file (C:\graphic.gif; \servername\Data\x.doc) //[RefMan 36: L3]Default value: '' NO -
LinkToImages nvarchar (MAX) One or several URLs; use the semicolon as separator (http://www…). A URL may point to a local file (C:\graphic.gif; \servername\Data\x.doc) //[RefMan 37: L4]Default value: '' NO -
SourceRefID int * Independent publication (e.g. an edited book) in which a dependent publication was published. Refers to the ID code of a reference already entered in this system. Provided as an alternative to ref. manager’s denormalized storage! YES -
Language nvarchar (25) * Language of the article/book, as ISO 2 letter codes. //[RefMan: not supported!]Default value: ‘UNK’ NO -
DuplicateCheck_Cache nvarchar (255) * A system generated string (typically Au. 1-4/Yr./Jour./Vol./first page) that is assumed to be unique. Use ‘DuplicateOverride’ to override if two reference titles are falsely identified as duplicates. //[RefMan: not applicable]Default value: '’ YES -
DuplicateOverride bit * A number to manually override automatic duplicate check, enter a number 1-255 if the system claims that non-duplicate entries are duplicates. //[RefMan: not applicable]Default value: (0) NO -
ReplaceWithRefID int * Old RefIDs are maintained to provide stable object links. Instead of direct deletes, users may select a reference to be the valid one, into which all related information (keywords, markers) is merged. YES -
Problem nvarchar (4000) * A problem that occurred during data editing within the application. Typically the entries here should later be deleted after help has been obtained. Do not enter scientific or bibliographic problems here; use Notes for such permanent problems!Default value: '' NO -
ProblemUpdatedBy int * Operator who entered the problem text YES -
ProblemUpdatedWhen datetime * Date and time when problem was recorded YES -
CitationText nvarchar (1000) * Full text of a citation that describes the current reference. Use if ref. is only known as a citation in the bibliography of another publication, or if imported from unstructure data source. Empty if reference is transcribed from original publication!Default value: '' NO -
CitationFrom nvarchar (255) * Description of publication, Only known as citation from bibliography of another publication given here (as ID code or author/year description); Empty if transcribed from original publication!Default value: '' NO -
ImportedFrom nvarchar (80) * If imported from a reference database (esp. a commercial one): The name of the database system or provider; otherwise empty. This information is important to prevent copyright violations!Default value: '' NO -
ImportedID nvarchar (50) * If imported from a reference database (esp. a commercial one): The ID identifying the record in that database; otherwise empty. Requires ImportedFrom //[RefMan: not supported!; Internal management attribute]Default value: '' NO -
PlausibilityCheckedBy int * Person responsible for a first plausibility or consistency check. User and Date are automatically filled if ‘Original check’ performed directly. //[RefMan: not applicable. Internal mgmt.attribute] YES -
PlausibilityCheckedWhen datetime * Date and time when plausibility/consistency was checked (i.e. data entry rules and spelling errors checked, no comparison with original publication) //[RefMan: not applicable. Internal mgmt.attribute] YES -
OriginalComparedBy int * Name of user responsible for comparison of ReferenceTitle record with original publication //[RefMan: not applicable. Internal mgmt.attribute] YES -
OriginalComparedWhen datetime * Date and time when entry was compared with the original publication (important esp. when ReferenceTitle was entered from secondary ReferenceTitle list) //[RefMan: not applicable. Internal mgmt.attribute] YES -
DateFrom_Cache datetime Calculated field, based on DateYear, DateMonth, DateDay, where missing information is replaced with earliest possible value (e.g. “1999” results in 1.1.1999) YES -
DateTo_Cache datetime Calculated field, based on DateYear, DateMonth, DateDay, where missing information is replaced with latest possible value (e.g. “1999” results in 31.12.1999) YES -
Date2From_Cache datetime Calculated field, based on Date2Year, Date2Month, Date2Day, where missing information is replaced with earliest possible value (e.g. “1999” results in 1.1.1999) YES -
Date2To_Cache datetime Calculated field, based on Date2Year, Date2Month, Date2Day, where missing information is replaced with latest possible value (e.g. “1999” results in 31.12.1999) YES -
Responsible int * Person responsible for entering this reference into the data collectionDefault value: (-1) NO -
SysRecordVersion int (Under trigger control; number automatically increased with every record update, enabling manual version tracking)Default value: (0) YES -
ParentRefID int Refers to the RefID of the superior reference YES -
LogInsertedBy nvarchar (50) ID of the creator of this data setDefault value: [dbo].UserID YES -
LogInsertedWhen smalldatetime Date and time when the data were first entered (typed or imported) into this database.Default value: getdate() YES -
LogUpdatedBy nvarchar (50) ID of the person to update this data set lastDefault value: [dbo].UserID YES -
LogUpdatedWhen smalldatetime Date and time when the data were last updated.Default value: getdate() YES -

Depending on:

  • Ref_Type_Enum

trgInsReferenceTitle

May 3, 2024

Diversity References enumeration tables

Enumeration tables

The following objects are not included:

  • Logging tables
  • System objects
  • Objects marked as obsolete
  • Previous versions of objects

Table


Table Ref_AvailabilityReprintStatus_Enum

Provides codes for ReferenceAvailability.ReprintStatus field

Dependent tables:

  • ReferenceAvailability

Table Ref_RelatorRole_Enum

Provides codes for creator or contributor roles like author, editor, photographer, advisor, etc. These roles are used in ReferenceRelator

Dependent tables:

  • ReferenceRelator

Table Ref_Type_Enum

Reference type definitions. Which reference attributes are enabled and how they should be labeled? Currently only the usage of a type is defined here; the attribute labels are defined directly in the vba code.

Dependent tables:

  • ReferenceTitle
May 3, 2024

Creation

To configure your Database, choose Administration → Database → Rename database to change the name of the database according to your requirements. During this renaming all processes in the database will be terminated (you will get a warning if processes from other host are active).

Afterwards you should adapt the address that is published by the database for access by other modules. Choose Administration → Database → Set published address from the menu. This will change the published address to the name of the server where your database is located and an identifier for you database, e.g. http://xy.diversityworkbench.de/Collection/

 

Mar 26, 2024

Configuration

To configure your Database, choose Administration → Database → Rename database to change the name of the database according to your requirements. During this renaming all processes in the database will be terminated (you will get a warning if processes from other host are active).

Afterwards you should adapt the address that is published by the database for access by other modules. Choose Administration → Database → Set published address from the menu. This will change the published address to the name of the server where your database is located and an identifier for you database, e.g. http://xy.diversityworkbench.de/Collection/

 

Mar 26, 2024

History

To inspect the history of a dataset click on the button. A form will open, showing all former states of the data in the tables with the current dataset at the top. The version is shown in the header of the main.

The version will be set automatically. If a dataset is changed the version will be increased if the last changes where done by a different user or the last change is more than 24 hours ago (for further details see topic Logging ).

For analysis of the succession of changes the log tables contain additional columns:

  • Kind of change: This column is set by the trigger inserting data into the log table
    • current version: This is the current state of the data in the table
    • UPDATE: This is the state of the data before an update happened
    • DELETE: This is the state of the data when the data have been deleted
  • Date of change: The date and time of the changes. This column has the default value getdate() that means the current date an time is set when any data are inserted into the log table
  • Responsible: The user reponsible for the changes. This column has the default value suser_sname() that means the current user is set when any data are inserted into the log table
  • LogID: A unique ID of the logtable. This column is an identity that means it is set by the database when any data are inserted into the log table
Mar 26, 2024

Logging

Changes within the database will be documented for each dataset with the time and the responsible user in the columns shown in the image below.

All main tables have a corresponding logging table. If you change or delete a dataset the orignial dataset will be stored in this logging table together with informations about who has done the changes and when it happend. To see the data stored in the logging tables, click on the button to open the history of a dataset.

Mar 26, 2024

Login administration

To administrate the logins on the database server, their permissions and roles respectively as well as access to projects choose Administration - Database - Logins ... from the menu. A window will open as shown below.

 

Statistics

To see the activity of a login click on the button. A window will open as shown below listing all databases and tables together with the timespan (From - To) and the number of data sets where any activity of the current login has been found.

To see the current activity on the server click on the button. A window as shown below will open listing all user related processes on the server.

 

Creation of login

To create a new login click on the button. A window will open as shown below.

Here you can enter the name of the new login, the password and the information about the user which will be stored in a DiversityAgents database. You may either create a new entry in this database or select an existing one: Click on the button to search for a name in the database (see below).

 

Copy a login

To copy a login including all permissions etc. into a new login, select the original login in the list and click on the button.

 

Edit a login

To edit the access for a login on the server select the login in the list. If a login should be disabled , uncheck the enabled checkbox (see below).

All databases on the server will be listed with the current database showing a yellow background. The databases where the login has no access will be listed in gray while the databases accessible for a login are black.

 

Access of a login to a database

To allow the access to a database select the database from the list and choose database as shown below.

 

Roles of a login in a database

Use the > and < buttons to add or remove roles for the login in the database (see below).

 

Projects for a login in a database

Depending on the database you can edit the list of projects accessible for a login (see below).

There are 4 states of accessibility for projects

  •     Full access: The user can edit the data
  •      Read only access: The user can only read the data
  •      Locked: The project is locked. Nobody can change the data
  •     No access: The user has no access via a project

Projects are related to the module DiversityProjects. To get additional information about a project select it in the the list and click on the button. 

To load additional projects click on the Load projects button. A window will open as shown below. Projects already in the database will be listed in green, missing projects in red (see below). Check all projects you need in your database and click the Start download button.

 

 

Overview for a login

If you see an overview of all permissions and project for a login, click on the button. A window a shown below will open. It lists all modules and their databases, the roles, accessible projects and read only projects for a login. 

To copy the permissions and projects of the current login to another login, select the login where the settings should be copied to from the list at the base of the window and click on the button to copy the settings for all databases or the button to copy the settings of the selected database into this login. 

 

Overview for a database

If you see an overview of all user and roles in a database, click on the button. A window a shown below will open. It lists all user and roles in the database. 

To remove a user, select it in the list and click on the button. 

 

 

Correction of logins

If you select one of the databases, at the base a button may appear. This indicates, that there are windows logins listed where the name of the login does not match the logins of the server. This may happen if e.g. a database was moved from one server to another. To correct this, click on the button. A list of deviating logins will be shown, that can be corrected automatically.

If logins with the same name but different server are found, one of them has to be deleted to make the correction possible. You will get a list where you can select those that should be removed.

Select the duplicate logins that should be removed and click OK.

Mar 26, 2024

Linked server

Databases not available on the local server may be accessible via a linked server. Provided the option for loading the connections is set, the program will automatically try to connect to these databases. Otherwise you can connect to these databases as described in chapter ModuleConnections. To administrate the linked servers, choose Administration - Linked servers ... from the menu. A form (see below) will open where you can add linked servers and inspect the content of the available databases.

Use the  resp. buttons to add or remove a linked server. To add a linked server, you need the name of the server and the port, e.g. tnt.diversityworkbench.de, 5432, the login associated with the connection of the linked server e.g. TNT and the password for this login. The available databases will be listed as shown above. To inspect the content, select among the tables or views listed in the right part as shown above. Linked servers have certain restrictions for the availability of data, e.g. XML and geography data are not available via a linked server. For a table or view containing incompatible content you may encounter a corresponding error mentioning the reason for the incompatibility.

An expample for a linked server as provided for central databases is shown below (using the management studio for SQL-Server) Linked servers

Mar 26, 2024

Tools

These are the tools to handle the basic parts of the database. These tools are only available for the owner of the database and should be handled with care as any changes in the database may disable the connection of your client to the database. Before changing any parts of the database it is recommended to backup the current state of the database. To use these tools, choose Administation → Database → Database tools ... from the menu. A window will open as shown below.

Description

The Description section (see above) shows the basic definitions of the objects in the database and enables you to enter a description for these objects including tables and their columns, functions and their parameter etc. With the buttons SQL for adding, update and both you can generate SQL statements for the creation of the descriptions in your database. Use the button both if you are not sure if a description is already present as it will generate a SQL statement working with existing and missing descriptions (see below).

The button  Fill Cache  fills the table CacheDescription where all descriptions are collected for easy access.

 

Log table and trigger

In the Log table and trigger section (see below) click on the List tables button to see all tables within the database. The Table section shows the basic definitions of a selected table. If columns for logging the date and responsible user for inserting and updating the data are missing, you can use the Attach ... button to attach these columns to the table. Furthermore you may add a RowGUID to the table as e.g. a preparation for a replication.

In the Log table section (see below) you can create a logging table for the selected table in a format as used within the Diversity Workbench. Click on the Show SQL ... button to show the SQL-statement that will create the logging table. If an old logging table should be kept, choose the Keep old log table option. If your table should support the version setting from a main table, choose the Add the column LogVersion option. To finally create the logging table click on the Create LogTable ... button.

The triggers for insert, update and delete are created in the according sections (see below). If an old trigger exists, its definition will be shown in the upper part of the window. Click on the Show SQL button to see the definition of the trigger according to the current definition of the table in a format as used in the Diversity Workbench. If a trigger should set the version in a main table, which the current table is related to, choose the Add version setting to trigger option. To enable this option you must select the version table first. To finally create the trigger click on the Create trigger button. The update and delete triggers will transfer the original version of the data into the logging tables as defined above, where you can inspect the history of the data sets.

If so far no procedure for setting the version in a main table is defined, you can create this procedure in the last section. Click on the Show SQL button to see the definition and on the Create Procedure button to create the procedure (see below).

 

Preparation for replication

If you want to use replication within you module, the tables need certain columns and a log table. These preparations can be performed by a script, generated in the section Replication (see below). Select the tables you want to include in the process and create the script. This script can than be included in an update of the database. Please ensure that these changes are only be done by expert staff.

 

Clear logtables

If for any reason you want to clear the log tables of the database, this can be done in the Clear log tab as shown below. Click on the List tables button to list the log tables. Then select those that should be cleared and click on the Clear log of selected tables button (see below). Please keep in mind that any restoration of data from the log is only possible as long as the data can be retrieved from the log.

 

Data protection

To implement the General Data Protection Regulation of the European Union several steps have to be performed in a database:

  • Generate a skript using this tool (see below) to convert all tables and insert objects according to the requirements:
    • Add columns ID, PrivacyConsent and PrivacyConsentDate in table UserProxy
    • Grant update to PrivacyConsent and PrivacyConsentDate in table UserProxy
    • Create update trigger for UserProxy setting the PrivacyConsentDate
    • Create the function providing the ID of the user from UserProxy
    • Create the function providing the name of the user from UserProxy
    • Create the function PrivacyConsentInfo providing common information
    • For every table:
      • Insert users from a table into UserProxy (if missing so far)
      • Insert users from the corresponding log table into UserProxy (if missing so far)
      • Change the constraints for the logging columns (User_Name() → UserID())
      • Replace user name with ID in logging columns
      • Replace user name with ID in logging columns of the log table
      • Adapt description of the logging columns
  • Include the skript in an update of the database
  • Check the database for update triggers, functions using e.g. CURRENT_USER, USER_NAME, SUSER_SNAME etc. where user names must be replaced with their IDs. Create a script performing these tasks and include it into an update for the database
  • Adapt the client to the now changed informations (e.g. query for responsible etc.)

After these changes the only place where the name of a user is stored is the table UserProxy together with the ID. Removing the name (see below) will remove any information about the user leaving only a number linked to the information within depending data.

To generate a script for the objects and changes needed to implement the General Data Protection Regulation use the Data protection tab as shown below. The generated script will handle the standard objects (logging columns) but not any additional circumstances within the database. For these you need to inspect the database in detail and create a script to handle them on your own.

To set the website where detailed information about the handling of the General Data Protection Regulation within the DiversityWorkbench resp. the current database is provided, click on the button on the Info site tab. If unchanged, the default site for the DiversityWorkbench is set (see below).

If for any reason a user wants his name to be removed from the database, select the users name from the list as shown below and click on the  button (see below).

Mar 26, 2024

Documentation

Tools for the database documentation

These are the tools to describe the parts of the database and create documentations of the structure. To use these tools, choose Administation - Database - Documentation… from the menu. A window will open as shown below.

Click on the List objects button to list the objects of the database. With the  button resp. button you can select resp. deselect the types in the type selection and the object in the list.

Select the objects that should be listed all button resp. none button you can select resp. deselect the types in the type selection and the object in the list.

Select the objects that should be included in the documentation:

  • Tables
    • Trigger
  • Views
  • Roles
  • Functions and procedures
  • Context

… and exclude the objects that should not be included in the documentation:

  • Logging tables
  • Enumeration tables
  • Old versions of objects
  • System objects
  • Deprecated objects

 

The button Set default seletion will select all items in the list without:

  • System objects
  • Older version of an object indicated by the number at the last position
  • Logging tables
  • Enumeration tables
  • Objects with a description starting with e.g. outdated, deprecated, obsolete etc.
  • HTML options:
    • include index for objects
    • include NULL / NOT NULL
    • include relations and dependencies
    • include Description
    • exclude standard trigger
    • exclude definition
    • include permissions for *_Enum etc.
    • exclude obsolete columns
    • exclude columns starting or ending with the given strings
    • include list of tables that are depending on a table

The buttons Add to seletion and  Remove from seletion  will use the given strings with * as wildcard to add resp. remove items from the selection.

With the Context  option you can show or hide the context area for the html and media wiki tab as shown above.

HTML, MediaWiki, JSP-Wiki

To create a documentation choose among the provided options and click on the button Create ... documentation to create the documentation in one of the available formats (HTML, MediaWiki, JSP-Wiki). 

Mar 26, 2024

Subsections of Documentation

chm

With the chm tab you can generate index and keyword html files as well as markdown files for a website generated out of the hhc and hhk files of the HTML Help Workshop for the creation of chm manual as described in the video .

The button Generate keywords for HUGO creates a text file keywords.txt containing the keywords needed for the HUGO manual in a simple format. A pre- or postfix is set for every module to avoid conflicts. Use the Open button to open the file in a text editor.

Mar 26, 2024

HUGO

In the HUGO / HTML tab you generate markdown files according to HUGO and the relearn theme.

The conversion and adaptions are explained in a short tutorial: Video starten

For enumeration tables the content can be exported as explained in a short tutorial: Video starten

Installation of HUGO

Update des Themes

um das Theme auf die letzte Version zu bringen kann man den Befehl git submodule update --remote --merge themes/relearn verwenden

Übersetzung des Bestands an html

  • Übersetzung der *.html Seiten mit pandoc in *.md
  • Aufbau einer Ordnerstruktur die dem Index der chm Datei entspricht
  • Das Basisdokument der Ordner wird in die Ordner verschoben und in _index.md umbenannt
    • Dort im Frontmatter steht der Titel der im Menü angezeigt wird, e.g.:
      --- 
      title: Installation 
      ---  

Überarbeitung der md Dateien

  • Korrektur der Bildverweise
    • Ordner mit den Bildern in den Ordner static kopieren
    • von e.g. ![](img/...) in ![](img/...)
    • ACHTUNG - Case sensitiv. Namen müssen stimmen
    • Icons gegebenenfalls freistellen für Darkmode
  • Entfernung aller störenden Formatierungsangaben
  • Entfernung der Kopfzeile (Überschrift wird von HUGO automatisch erzeugt)
  • Korrektur der internen Verweise
    • ändern von [![](img/VideoDE.svg?class=inlineimg)](http://media.snsb.info/Tutorials/dwb/Editing/OeffentlicheKontaktdaten.webm) zu [![Video starten](img/VideoDE.svg?class=inlineimg)](http://media.snsb.info/Tutorials/dwb/Editing/OeffentlicheKontaktdaten.webm)
      • ansonsten wird das Bild gezeigt statt das Video zu starten
    • ändern von
      [Contact](Contact.htm)
      zu e.g.
      [Contact](editingdata/contact)
    • Wenn als Basisadresse in hugo.toml etwas angegeben wurde, e.g. baseURL = "http://www.diversityworkbench.de" dann muss diese auch für Verweise innerhalb der Files verwendet werden.
      • e.g. Bildverweise ![](img/IcoFeedback.gif?class=inlineimg)
      • Dateiverweise [Anmelden](database)
      • HUGO relearn erzeugt für Überschriften Anker die man ansteuern kann, e.g. kann man ### Table **AgentResource** über die Adresse database/database/#table-agentresource erreichen. Ein Index Eintrag dafür wäre e.g. [AgentResource](database/database/#table-agentresource). ACHTUNG - Case sensitiv: ### Table **AgentResource** wird in #table-agentresource übersetzt
    • Kommentare starten mit # ohne folgendes Leerzeichen

Frontmatter

You can change the frontmatter to a default using the documentation tool

  • Steht am Anfang der Datei und ist bei yaml durch --- oben und unten abgegrenzt, e.g.
    ---
    title: Login administration
    linktitle: Logins
    weight: 5
    menuPre: img/Documentation.svg
    alwaysopen: false
    ---
  • Seiten die noch in Entwicklung sind kann man mit draft: true im Frontmatter markieren. Diese werden dann nicht in die Ausgabe übernommen
  • Der Titel wird mit title: Login administration angegeben. Dieser erscheint dann auch in der Seite als Überschrift
  • Der Text im Menü kann abweichend definiert werden mit linktitle: Logins. Ansonsten erscheit der Titel im Menü
  • Die Reihenfolge im Menü kann mit weight: 5 angegeben werden. Ansonsten wird alphabetisch sortiert
  • Ein Logo kann man mit `menuPre: img/LinkedServer.svg
  • Wenn das Untermenue erst beim Anwählen geöffnet werden soll: alwaysopen: false

Template files

Starting with a Dash: If the first line of your Markdown file starts with a dash (-), Hugo might misinterpret it as a YAML delimiter, leading to an error

Bilder

You can adapt the images to a default using the documentation tool

  • Icons die e.g. in den Text integriert werden sollen, müssen folgedermassen eingebaut werden:
    • ![](img/Database.svg?class=inlineimg)
  • Die Bilder am Anfang der Seite werde wie folgt eingebaut:
    • ![](img/LinkedServer.svg?class=headerimg)

mit px wird das Bild mitgezoomt, bei vw bleibt es gleich gross

  • noch nicht zu svg konvertierte Bilder die im Fliesstest erscheinen sollen werden wie folgt eingebunden:
    • ![](img/Delete.svg?class=inlineimg)
  • sonstige Bilder mit
    • ![](img/Delete.svg)

mit der Angabe ...lightbox=false wird verhindert, dass ein Bild beim Anklicken mit der Maus geöffnet wird. Dies sollte bei Bildern die nicht nach svg konvertiert wurden und nicht im Fliesstext erscheinen nicht verwendet werden, damit der User bei kleinen Bildern diese in Originalauflösung betrachten kann. Unten 2 Beispiele

![](img/Delete.svg?class=inlineimg)

![](img/Delete.svg?class=inlineimg)

Für Bilder die aus der Quelle fontawesome kommen kann man hier suchen: fontawesome. Es funktionieren nicht alle die dort bereitstehen. Daher bitte testen!

Für Links innerhalb des Manuals kann man shortcodes verwenden. Dafür entweder auf den Namen der Datei oder auf Links von Überschriften (ab ##) verwenden. Diese müssen innerhalb des Manuals eindeutig sein. Für Header als erstes Zeichen # dann Überschrift und alles lower case und Leerzeichen werden durch - ersetzt. Beispiel:

## Main form of diversityexsiccatae

wird zu sofern es sich in der gleichen Datei befindet: 2 x { und % relref "#main-form-of-diversityexsiccatae" % und 2 x }

Für Links ausserhalb der Datei werden Verweise unter Einschluss des Dateinamens verwendet:

Verweis auf ein Kapitel innerhalb einer Datei 2 x { und % relref "diversityexsiccatae#main-form-of-diversityexsiccatae" % und 2 x }

bzw. nur auf die Datei 2 x { und % relref "diversityexsiccatae" % und 2 x }

Leerzeichen zwischen 2 x { und % und % und 2 x } entfernen

Von ausserhalb kann e.g. eine Überschrift mit https://www.diversityworkbench.demodules/diversityexsiccatae/index.html#main-form-of-diversityexsiccatae aufgerufen werden. Diese können direkt aus dem Manual kopiert werden.

  • hierfür das Logo in den Ordner static kopieren
  • im Ordner layouts einen Ordner partials anlegen
  • dort eine Datei logo.html anlegen
    • in dieser auf das Logo verweisen e.g.:
      <h4><b>DiversityAgents</b></h4>
      <img src="/DA_4D.svg">
  • in static - layouts - partials die Datei menu-footer.html anlegen und anpassen

favicon

Im Ordner static den Ordner images anlegen Datei favicon.ico in der Ordner static/images kopieren

Einschliessen von Dateien

Das Verzeichnis templates enthält Dateien die in andere Dateien über eine shortcode eingeschlossen werden können, e.g.:  2 x { und % include file="templates/template_workbench.md" % und 2 x } Diese Dateien dürfen kein frontmatter enthalten. Shortcodes müssen überprüft werden, da diese in der Regel nicht ausgewertet werden.

ER-Diagramm

dieses kann als Mermaid eingebaut werden, e.g.

 
graph LR;
    A[Agent] --> B[AgentContact<br/>Kontaktdaten der Agents]
    A --> C[AgentReference]
    A --> D[AgentIdentifier]
    A --> E[AgentResource]
    A --> F[AgentExternalID]
    G[AgentExternalDatabase] --> F[AgentExternalID]

soll das Diagramm zoombar sein wird die Version 5.23 des Themes benoetigt. Ausserdem kann der Parameter nur für die Shortcode Version angegeben werden, nicht für die Codefences:

2 x { und % mermaid align="center" zoom="true" % und 2 x }
... 
(remove space between 2 x { und  and < resp > and  und 2 x } in header and footer for correct code)
...
2 x { und % /mermaid % und 2 x }

Anpassung des Themes

  • es werden 2 eigene Themes bereitgestellt

    • im Verzeichnes
      • themes
        • relearn
          • static
            • css:
            • theme-dwb-dark.css
            • theme-dwb.css

    diese an DWB Anforderungen anpassen

    • in \themes\relearn\static\css\theme.css
      #body img.inline {
          display: inline !important;
          margin: 0 !important;
          vertical-align: middle;
          /* vertical-align: bottom; */
      }
    • in \themes\relearn\static\css\theme-dwb.css
      /*--MENU-HEADER-BG-color: rgba( 28, 144, 243, 1 );*/ /* Background color of menu header */
      --MENU-HEADER-BG-color: rgba( 220, 220, 220, 1 ); /* Background color of menu header */
      --MENU-HEADER-BORDER-color: rgba( 51, 161, 255, 1 ); /*Color of menu header border */
      

      –MENU-SEARCH-color: rgba( 255, 255, 255, 1 ); /* Color of search field text / /–MENU-SEARCH-BG-color: rgba( 22, 122, 208, 1 );/ / Search field background color (by default borders + icons) / –MENU-SEARCH-BG-color: rgba( 90, 90, 90, 1 ); / Search field background color (by default borders + icons) / /–MENU-SEARCH-BORDER-color: rgba( 51, 161, 255, 1 );/ / Override search field border color / –MENU-SEARCH-BORDER-color: rgba( 0, 0, 0, 1 ); / Override search field border color */

Konfiguration - in hugo.toml:

```native
baseURL = "http://www.diversityworkbench.de"
languageCode = "en-us"
title = "DiversityAgents"
theme = "relearn"

[outputs] home = ["HTML", "RSS", "SEARCH", "SEARCHPAGE"] section = ["HTML", "RSS", "PRINT"] page = ["HTML", "RSS", "PRINT"]

[params] themeVariant = [ "auto", "dwb", "dwb-dark" ]

</code></pre>
<h2 id="start-des-testservers">Start des Testservers:</h2>
<ul>
<li>mit einem Terminal in das Verzeichnis des Projekts wechseln</li>
<li>dort <code>hugo server </code> eingeben.</li>
<li>bei Problem mit Sonderzeichen: den Inhalt der Datei config.toml in hugo.toml kopieren und config.toml löschen (beide sollten wenn vorhanden UTF8 sein - werden manchmal als UTF16 angelegt - dieses dann nach UTF8 ändern)
<ul>
<li>Error: &ldquo;&hellip;\diversityworkbench\hugo.toml:1:1&rdquo;: unmarshal failed: toml: invalid character at start of key: ÿ</li>
</ul>
</li>
<li>Im Browser an die angegebene Adresse navigieren, e.g. <code>localhost:1313</code></li>
<li>Wenn als Basisadresse in hugo.toml etwas angegeben wurde, e.g. <code>baseURL = &quot;http://www.diversityworkbench.de&quot;</code> dann muss die passende Adresse eingeben werden also e.g. <code>localhost:1313</code></li>
</ul>
Mar 26, 2024

MediaWiki

With the MediaWiki tab you can generate markdown files according to MediaWiki.

Mar 26, 2024

License

This manual is copyrighted work licensed under a Creative Commons License.

All material in this manual is the property of the contributing authors and fully copyrighted. By choosing this way of publication, the contributing authors have agreed to license the work under a Creative Commons License permitting reproduction, distribution, and derivative works, requiring attribution, notice, and share-alike, and prohibiting commercial use.

 

For information about the license of the client software choose Help, Info…

The client software 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.

The client software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License (GPL) for more details.

Mar 26, 2024

Data Access

Access to the data

To get access to the data, you have to fulfill several requirements. In DiversityCollection, you must be a member of one of the user groups. You can only access data, which is listed in the projects you have access to. For external users data may be blocked by entries in the data withholding reasons or due to a data embargo.

   

May 3, 2024

Subsections of Access

Login Administration

To administrate the logins on the database server, their permissions and roles respectively as well as access to projects choose Administration - Database - Logins ... from the menu. A window will open as shown below.

To set the website where information about details concerning the General Data Protection Regulation are shown, click on the button.   

To see the current activity on the server click on the button. A window as shown below will open listing all user related processes on the server.

To administrate the  linked servers, click on the button.   

To send a feedback click on the button.   

 

Statistics

To see the activity of a login click on the button. A window will open as shown below listing all databases and tables together with the time span (From - To) and the number of data sets where any activity of the current login has been found.

 

Creation of login

To create a new login click on the button. A window will open as shown below. A login that should be able to create new logins must to be a System administrator.

Here you can enter the name of the new login, the password and the information about the user which will be stored in a DiversityAgents database. You may either create a new entry in this database or select an existing one: Click on the button to search for a name in the database (see below).

 

Copy a login

To copy a login including all permissions etc. into a new login, select the original login in the list and click on the button.

 

Edit a login

To edit the access for a login on the server select the login in the list. If a login should be disabled , uncheck the enabled checkbox (see below).

All databases on the server will be listed with the current database showing a yellow background. The databases where the login has [no access] will be listed in [gray] while the databases accessible for a login are black.

 

Access of a login to a database

To allow the access to a database select the database from the list and choose database as shown below.

The state and date of the privacy consent according to the General Data Protection Regulation is shown in dependence of the selected database.

Roles of a login in a database

Use the > and < buttons to add or remove roles for the login in the database (see below).

To see the detailed permissions of a role, select it in the list of [Available] roles and click on the button. A window as shown below will open listing all objects in the database the role has permissions for (see below).

As a database owner you can edit the permissions and role memberships with the and buttons. Please keep in mind that any change of the permissions may cause serious troubles and should only be used for testing and bug fixing. The final setting of the permissions should be performed by a proper update script of the database. For every action you will get the code that is to be included in an update script (see below).

 

Projects for a login in a database

Depending on the database you can edit the list of projects accessible for a login (see below). Projects are related to the module DiversityProjects. To get additional information about a project select it in the list and click on the button. 

Starting with database version 02.05.35 next to the projects with full access, a second list provides projects with [Read Only] access (see image below). Use the and buttons to move projects between Accessible and Read Only. If a project is set on [Read Only] a user can still add annotations. Starting with version 4.3.219 a project as a whole can be locked with the restriction of access to read only. For more details see chapter Project administration.

To load additional projects click on the Load projects button. A window will open as shown below. Projects already in the database will be listed in green, missing projects in red (see below). Check all projects you need in your database and click the Start download button.

To see an overview of the users within a project select one of the project in either list and click on the corresponding button . A window as shown below will open listing all users and their roles with access to the selected project.

To add or remove a role for a login, select the corresponding field and choose or from the context menu (see below).

 

Settings of a login in a database

Depending on the database you can edit the settings of a login as shown below.

If you wish to use settings already defined for another login, click on the Search template button. A window (see below) will open where you can choose among the settings defined for logins in the database.

 

Overview for a login

If you want to see an overview of all permissions and project for a login, click on the button. A window as shown below will open. It lists all modules and their databases, the roles, accessible projects and read only projects for a login. 

To copy the permissions and projects of the current login to another login, select the login where the settings should be copied to from the list at the base of the window and click on the button to copy the settings for all databases or the button to copy the settings of the selected database into this login. 

 

Overview for a database

If you see an overview of all user and roles in a database, click on the button. A window a shown below will open. It lists all user, roles and projects in the database. 

To remove a user, select it in the list and click on the button. 

 

Correction of logins

If you select one of the databases, at the base a button may appear. This indicates that there are windows logins listed where the name of the login does not match the logins of the server. This may happen if e.g. a database was moved from one server to another. To correct this, click on the button. A list of deviating logins will be shown, that can be corrected automatically.

If logins with the same name but different server are found, one of them has to be deleted to make the correction possible. You will get a list where you can select those that should be removed.

Select the duplicate logins that should be removed and click OK.

To find users within the database that have no valid login, click on the button. A window as shown below will open, listing the users without a login. Select those that should be removed and click OK. This will include a removal from the collection managers.

 

May 3, 2024

Security

A user may be in several groups with diverse rights in the database. Here certain higher groups have all rights of lower groups in addition to special rights for the higher group, e.g. the group User may only read data of certain tables while Typist has the rights of User and additionally may edit the data in certain tables - see overview below.

Summarized overview of some of the groups and their permissions as an example for the module DiversityCollection

Role Permissions in addition to lower role and user group respectively Included rights
Administrator Delete data, edit user permissions DataManager
CollectionManager Administration of collections, handling loans etc. StorageManager
DataManager Delete data, edit image descripton templates Editor
Editor Create new entries and delete details (not entire data sets) Typist
Requester Has the right to place requests for specimen
StorageManager Administration of stored parts, handling loans etc. User
Typist Edit data User
User See the data of the data tables, add annotations

To place a user in one of the groups, select Administration - Database - Logins... from the menu. In the window that will open select a login and a database. The roles available in the selected database will be listed as shown below. Use the > and < buttons to add or remove roles for the login in the database (see below).

To see the detailed permissions of a role, select it in the list of [Available] roles and click on the button. A window as shown below will open listing all objects in the database the role has permissions for (see below).

 

If you are an Administrator you may add a user to one of these groups.

Any user may have access to several projects.

May 3, 2024

Project access for user

The accessibility of projects for users can have 4 different states:

  • No access: The current user has no access to the project
  • Accessible: The current user has access to the project
  • [Read only]: The current user has read only access to the project
  • [Locked]: The project is locked. Any user can either none or read only access to the project

To allow the current user access projects use the [ > ] button for the selected project resp. the [ >> ] button for all projects. To revoke access for the current user use the [ < ]  button for the selected project resp. the [ << ] button for all projects. To change the access for a project to read only use the button and the button to remove a project from the read only list.

 

 

Locking of a project

To lock a selected project use the button. For all users the project will be removed from the accessible or read only list and transferred to the locked list. This is only allowed for a database owner (dbo). Please make sure that you really want to lock a project. Any dataset related to this project will be set to read only for all users. For an introduction, please see the a short tutorial Video starten.

To remove the locked state of a project, select the project in the No access list and click on the  button. The selected project will be moved from the locked list into the read only list for those users that had access to the project.

 

Retrieval of projects from DiversityProjects

Details of the projects within the DiversityWorkbench are stored in the database DiversityProjects. To access further information on a project click on the  button. To edit details in projects you require the application DiversityProjects.exe in your application directory and access to the database DiversityProjects. To synchronize the projects listed in DiversityProjects you may use the synchronize function in the user administration window as shown below. If DiversityProjects is not available, you may create a new project by clicking the button. If DiversityProjects is available, use the synchronize function .

     

Mar 26, 2024

Update

Update of database and client

If either the database or the client needs to be updated, the menu will show an additional entry: Update.

Database update

To update the database, choose Update Update database … from the menu. See chapter Database update for details.

Client update

To update the client, choose Update Update client … and download the lastest version of the client. ee chapter Update client for details.

Mar 26, 2024

Subsections of Update

Update Client

Replace the files and folders of your installation of DiversityCollection with the files you received by e-mail or downloaded from the DiversityWorkbench portal. The database will not be influenced by this replacement. After starting the new software you need to transfer the settings of the previous version. When you start the program and connect to a database, the program will check if it is compatible with the database or if the database needs an update. In any of these cases an update entry in the menu will appear. If a new version of the client is available, this menu will contain an update client … entry. Click on it to open the webpage where you may download the client as shown below.

 

Mar 26, 2024

Update Database

Update database to current version

If you are the owner of the database (Database role = dbo) and the database needs to be updated, the menu will contain an update database … entry. Select this entry to open a window as shown below to run the provided update scripts, delivered with the client software. These scripts need to run consecutively, so e.g. to update from version 2.5.1 to 2.5.4 you either have to run the script DiversityCollectionUpdate_020501_To_020504 or the scripts DiversityCollectionUpdate_020501_To_020502, DiversityCollectionUpdate_020502_To_020503 and DiversityCollectionUpdate_020503_To_020504. The program will guide you through these steps and check for the scripts. All you need to do is click the Start update button. 

Update of all databases on a server

If you are database owner and have a windows login to the database server (user=dbo), you have the option to update all DiversityCollection databases on this server by starting the application with command line parameters. Open a command line window, navigate to the program directory and start DiversityCollection with the keyword “UpdateDatebase”, the server name (or IP address) and the port number:

DiversityCollection.exe UpdateDatabase 127.0.0.1 5432

The program will connect to the server and update all available databases to the current version. If you want to exclude dedicated databases from update, create a text file named “ExcludeDb.txt” that contains the excluded database names - each name in a separate line - and locate it in the resources directory. The update will be done in the background without opening a program window. When the update processing is finished, an overview of the performed actions will be written into the protocol file “Updatereport.log” in directory resources/Updates.

Mar 26, 2024

Errorlog

If any error messages show up while working with the application, you can find further details concerning the part of the application where the error occurred and the parameters involved in the file e.g. DiversityCollectionError.log in the Module DiversityCollection located in your resources directory.

To open the errorlog, choose Help - ErrorLog from the menu. A window will open showing the content of the errolog. By default the errorlog will be reset at program start. You can keep the errorlog if needed by chossing Help - Errorlog - Keep error log from the menu. A button will appear that allows you to clear the error log manually: Help - Clear ErrorLog.

Mar 26, 2024

Module connections

Connections between the modules of the Diversity Workbench

The DiversityWorkbench is a set of components for building and managing biodiversity information, each of which focuses on a particular domain. DiversityAgents is referred by several modules. To scan for references from these modules on data in DiversityAgents choose Data - Scan modules - from the menu (see image below).

With these options the program will scan all sources of the selected module as listed in the connections for references to the current agent. After selecting an agent in the tree, the sources of the selected modules together with the linked data will be listed as shown below.

Select a link to see a summary of the linked data (see below).

To get further information about an item click on the button. If so far the path to the respective application has not been set, you will get a corresponding message (see below).

Click on the button to set the path to the application (see below).

By default the path to the application is C:\Program Files (x86)\DiversityWorkbench\Diversity...\Diversity.…exe as shown.

Mar 26, 2024

Resources

The resources directory is set via the menu (Administration - Resources).

There are 3 possibilities for the resources directory:

  • Select any directory you have read/write access (User defined)
  • Select the "Home" directory of the user
  • Select the "My Documents" directory of the user

The default is set to Home. This directory will contain all files the user needs access to (see image below as an example for the module DiversityAgents).

Certain directories are hidden (Query) and are handled by the software i.e. the content should not be changed by the user. The other folders are generated by the software if missing, e.g. Export for any exports (see below).

Optional copy

By default all files the software needs from the application directory will be copied into the selected resources directory of the user. You can change this behaviour to one of the options listed below:

  • Copy files at program start
  • Add missing files at program start
  • Do not copy

With the next start of the program the software will act according to the selected behaviour. If you change from the Do not copy option to one of the other options the software will act at once according to the new option and e.g. copy missing directories and files into the user directory.

Mar 26, 2024