Lynx Exploration Archivist Online Help

Program: DYLAN

Title: Catalogue Editor

Version: 1.8

Back to:


Introduction

This utility can be used to add individual files to catalogues defined and created by the LEA applications Dougal and Florence. Dylan allows the user to select the catalogue to which to add records, then select a file to add, either by dragging the file from an Explorer window, or via a browse dialogue. Dylan will open each LEA Object found in the file, as determined by the structure of the current catalogue, and display each record for editing. Dylan also provides for bulk addition of multiple objects from a single file, and inserting default values for null fields.

The structure of the available catalogues, as well as the types of files to search for (see LEA Object Types) is determined by the LEA Catalogue Designer utility Dougal.

Parameters which affect how filenames are stored in the catalogue are controlled by the Search Options which can be edited from Florence



Running Dylan

  1. On application startup, if no archive project file (see LEA Catalogue Tables and Archive Project files) is specified on the command line, you will be prompted whether you wish to:

  2. A list of the available catalogues in the project will be displayed in the Select Catalogue combo-box at the top of the window.
    Select a catalogue from this list. If the catalogue is in an Oracle database, you may be prompted for a username and password if the current Windows username is not a valid Oracle user (or the username, password and database name supplied on the command line will be used).
    The window now displays an empty record-level view of the catalogue.
    Required fields are shown in bold text.
    You cannot edit anything until you have done one of three things:


    .
  3. To register a file in the catalogue, drag the file you wish to register onto the main window, or select the Catalogue - Add File menu option and browse for a file in the dialogue.
    The selected file's full path will be displayed in the Filename edit box at the top of Dylan''s main window with the file's icon. You can launch the file's associated application by clicking the icon.
    If the file has not already been registered in the catalogue, the first object read from the file will be displayed ready for editing.
    However, if the file is already present in the catalogue, you will be given three options:


  4. The first object read from the file will be displayed. You can edit any of the field values. If you edit a value into a blank field, where the attribute value could not be read from the file, or is defined in the CDF as a custom field with no associated LEA Object attribute, this field will be marked as a user-default value by a tick in the check box next to the edit field. This value will then be copied into this field for subsequent records read from the file.

  5. Use the Add Next Record >  menu option/button to read the next object from the file, and display the record for editing, or use the Add All Records >>  menu option/button to read all objects from the file and create a record for each one. You can also use the First Record, Previous Record  , Next Record   and Last Record menu options to scroll back through the records you have added in read-only mode. To make additional changes to records, activate edit mode with the Edit Record   menu option. When you are in Edit mode, any field marked by a tick in the user-default check box will be copied into other records that you scroll to or insert.

  6. Use the Catalogue - Save Changes Toolbar button menu option to commit your changes to the database (Oracle - this will attempt to reconcile the changes you have made with the changes other users may have made simultaneously to the same records) or re-write the disk file (dBASE).


Command line options

Dylan can be run with a command line similar to the following:

DYLAN [-uCONNECTSTRING] [ZEBFILE [TABLEPATH]]

where:
The optional flag -u specifies an Oracle connection string in the form USERNAME/PASSWORD@DATABASE in the same format as used by Oracle SQL*Plus and other Oracle utilities. If this flag is specified, this connection will override any database name specified in each catalogue name.
If this flag is not specified, Dylan will attempt to connect to Oracle (if necessary) as the current Windows user.

If no username and/or password is supplied on the command-line, you will be prompted with a login dialogue if user authentication is required to access a catalogue from an Oracle database.

ZEBFILE specifies the path of an existing archive project file (with a .zeb extension) to open.
TABLEPATH specifies the catalogue within the ZEBFILE above to open. This should be the complete path of a dBASE table, or a string of the form ;DATABASE;TABLENAME for Oracle database tables.
Remember that all arguments containing spaces should be quoted on the command line with double-quote(") characters.



Menus and Controls

Dylan main window Click file icon to launch associated application Check boxes to mark fields to copy to next record Click to copy all fields Resizeable Column Headers Save changes to catalogue (commit to database) Stop Editing Delete current record Insert new record Start Editing Select a file to add to the catalogue View menu Database table fields for current catalogue entry Add all records from file to catalogue Add next record to catalogue Scroll to next record Scroll to previous record Select a file to add to the catalogue Select a catalogue to add a file Catalogue menu File menu

Dylan has the following menu commands:



Query Catalogue Parameters

You can build a query to select records from the catalogue for browsing and editing.
The first record matching your query will be displayed. You can scroll through subsequent records with the First/Next/Previous/Last Record menu options, and edit entries by selecting the Start Editing menu option.

The parameters displayed are used to build a series of SQL SELECT WHERE clauses.
To build a query select theCatalogue-Query Catalogue menu option. A PRMEDIT dialogue will be displayed with the following options:

Condition - AND/OR (default AND)
This option is only enabled for the second and subsequent instances of this page.
The condition is a logical operator which combines the results of two component conditions. You can use this to build up complex queries using multiple instances of this page. See below for details.

Field
Select the field to search from a drop-down list of all fields in the catalogue.

Operation
The type of comparison to use. Different operations are valid for different field types.
Select from:

Value
The value to search for in the specified Field for the Operation above.
For BETWEEN operations, this is the minimum value for the range to select.
For IS NULL and IS NOT NULL this field is ignored.

Ensure that the value you enter matches the type of the selected Field.
To enter floating point values use the decimal separator as defined on your PC (usually either a dot/period (UK and US settings) or a comma (European settings).
To enter date/time values use the date and time format specified for your PC

Value 2
This option is only enabled for BETWEEN operations (valid for integer, float and date/time fields), where it is the maximum value for the range to select.

Case Sensitive - YES/NO (default NO)
For search operations on string fields, this determines whether the search is case-sensitive. For other field types, this option is ignored.

You can build complex queries by adding more search conditions.
Use the Insert New Page    button at the bottom of the PRMEDIT window to add a search and set the Condition. You can use the Delete Current Page    button to remove the current search, and the Previous    and Next    buttons to scroll through each search definition.

When you have defined your query click OK to retrieve matching records from the database. The first matching record will be displayed. You can scroll through each record using the First/Previous/Next/Last menu options (see below), edit individual records using the Edit Record menu option, or delete records using the Delete Record menu option.



Error Messages

The following error messages are produced by Dylan.

Catalogue not found

The catalogue specified on the command line is not part of the current project file. For dBASE catalogues, you must specify the complete path of the catalogue file. For Oracle catalogues, specify the catalogue as a string in the form ;DATABASENAME;TABLENAME.

No records for selected field

This message is displayed after selecting a field to browse from the Catalogue - Browse Catalogue Entries menu option.
There are no values to display for the field you selected, either because the catalogue is empty, or because the value of this field is null for all records.


The following error messages are displayed when you attempt to register a file in a catalogue, either by dragging it on to Dylan's main window or via the Catalogue - Add File menu option.

File cannot be added to catalogue - path not in root directory

The file which you have attempted to register in a catalogue is not within the root folder specified in the project (this is set in Florence).
This is always enforced when storing relative path names in the catalogues. When using absolute paths, this error will only be displayed when the enforce root dir key in DYLAN.INI's [startup] section is set to 1 (true).

File could not be opened as the specified type.
Add to the catalogue anyway?

The error message is displayed when attempting to open a file of a format unknown to the LEA Object which defines the catalogue. Under normal operation, attribute values will automatically be read from the file into the catalogue fields, but when the format of the file is not recognised by the LEA Object, attribute values cannot be read from the file, and you will have to manually enter the attribute values into the catalogue.


The following error messages are displayed by the Query Catalogue PRMEDIT dialogue, accessed via the Catalogue - Query Catalogue menu option.

Invalid operation for string field

Invalid operation for integer field

Invalid operation for boolean field

Invalid operation for float field

Invalid operation for date/time field

Different field-types can have different search operations. For example, a 'GREATER THAN' search makes no sense on a string field.
The field you select (Query Catalogue Parameters - Field) will determine which operations are valid.
See Query Catalogue Parameters - Operation for help with each operation and the field types on which it can be performed.

Invalid integer value

You have selected an integer-type field for your query (Query Catalogue Parameters - Field), so you must enter an integer (numeric) value for the Value parameter (and Value 2 if applicable).
Integer values must be whole numbers in the range -2147483648 to 2147483647.

Invalid boolean value

You have selected a boolean-type field for your query (Query Catalogue Parameters - Field), so you must enter a boolean (logical) value for the Value parameter .
Boolean values should be '0' (false) or '1' (true)

Invalid float value

You have selected a float-type field for your query (Query Catalogue Parameters - Field), so you must enter a floating-point value for the Value parameter (and Value 2 if applicable).
Floating-point values should be specified using the decimal-separator as defined on your PC (usually either a dot/period (UK and US settings) or a comma (European settings)). Values must be within the range 5x10-324 to 1.7x10308.
You can also specify values using scientific notation (for example 1.23E25, -1.23E25 or 1.23E-25) using your current decimal-separator.

Invalid date/time value

You have selected a date/time-type field for your query (Query Catalogue Parameters - Field), so you must enter a date/time value for the Value parameter (and Value 2 if applicable).
To enter date/time values use the date and time format specified for your PC

See also errors listed in LEA Catalogue Tables and Archive Project Files and Catalogue Description Files.



See also:
[Florence - Catalogue Builder]
[Zebedee - Reconciler and GIS Builder]
[Dougal - Catalogue Designer]
[The Lynx Exploration Archive Object]
[Catalogue Description Files]
[Using Databases in LEA Applications]