Media Importer

Overview

vMedia has the capability to import media universally in addition to the option of dropping them in a folder and then running the import module manually in vMedia. The importer walks a directory tree and imports documents in a wide variety of formats. The Media Importer processes only PDF document types.

Indexing expressions are provided for the first level folder name and the file name. Optionally, you can specify a processing expression for the folder name and the file name elements. A processing expression is a function that is executed for the specified elements in the imported document. It is typically used to map fields within the vMedia database to data coming from an outside source. A processing expression can perform very sophisticated data transformation and formatting.

Specifications

  • Required File format: Multi-page/frame PDF-encoded raster image.
  • Naming: Can be named with index information. The file name, along with the file folder(s) containing the image files can be used for indexing.
  • Structure: PDF files MUST be placed in at least one container folder that is a child of the base import path.
    • Example - given F:\vMedia\IMPORT\ as the base path, the documents must be placed in sub-folders under that path. In the case where the sub-folders will not participate in indexing, the sub-folder can be named anything.

Configuring the Processing Expressions

To replace a vMedia database field with a data value derived from the source document use this format:

The general format should be field=expression

where fieldname is the name of the vMedia database field as specified in the data base configuration, and field value is the expression that will be evaluated when the document is saved.

There are a number of special defined variables in the UMI that can be used in the expression. They are:

pDir, the path to the document being imported
pFileName, the name of the file being imported (See next note.)
pDate, the file date of the file being imported (date data type)

STREXTRACT() Function for String Extractions

NOTE: pFileName will include the .PDF extension from the file name. To ignore the .PDF extension you can use the following command: strextract(pfilename,"",".")

vMedia has a useful function to perform string extractions when the sub-strings are bound by specific delimiters. That function is called STREXTRACT() and it takes the following parameters (separated by commas):

  1. Name of the string to extract

  2. Starting delimiter character(s)

  3. Ending delimiter character(s), or empty to end at the end of the string

  4. Occurrence of the starting delimiter to begin string extraction

There are some optional flags to modify function behavior: 1=Case blind delimiter search (for when the delimiter is an alpha string), 2=Ending delimiter may or may not be present, 4=Include delimiters in the returned sub-string

Example:

filename - "ABC1125_1234555567890000_My Document.PDF"

STREXTRACT(pFileName,"","_",1) will return ABC1125

STREXTRACT(pFileName,"_","_",1) will return 1234555567890000

STREXTRACT(pFileName,"_","",2) will return My Document.PDF

 NOTE: This function can only be used in vMedia wherever an expression is allowed.

"pFileName" is a variable for the Spectrum and Media Importers that corresponds to the name of the file being imported, including the extension. A similar variable for the Hanna Importer is "l_Filename", which is the file name without the extension.


Procedure

  1. From the Master Control screen, click on the [Import/Export Module] button.
  2. Highlight your desired vMedia database from the list and click [Select].
  1. From the Bulk Document Import list, click on [Media Importer].

 

NOTE: Once  a profile is selected, the desired profile will load. Focus remains with the profile selector after the load.

  1. Enter a profile in the Select Profile field at the top of the interface.
    Selection Options
    • Click on the drop-down button to display a list of profiles and select your desired profile.
      • Type leading characters to select desired item.
    • Use [Alt-Down Arrow] to display the drop-down list of profiles.
      • Cycle through the profile options with the the up or down arrow keys.
    • Use any combination of the previous selection options.

  1. Edit the Location of Images to Import fields or accept the default settings.
  2. [Save Profile] is optional. Click this button if you want to save the current settings for future use.
  3. Click [Import Documents].