IshBatchImportConfiguration.xml
Configuration settings can be different for different base folders. The identifiers of the base folders are used when configuring which tabs are visible at the left hand side.
Overview
The configuration file is located on the server: $\App\Author\Configuration\IshBatchImportConfiguration.xml.
<basefolder id="Illustrations">
<systempath>C:\InfoShare\Data\BatchImport\ImportIllustrations</systempath>
<uimetadata>
<ishobject ishfolderref="7593">
<ishfields>
<ishfield name="FCHANGES" level="version" label="Changes">Imported content</ishfield>
<ishfield name="FAUTHOR" level="lng" label="Author" />
<ishfield name="FSTATUS" level="lng" label="Status">Draft</ishfield>
<ishfield name="DOC-LANGUAGE" level="lng" label="Language">en</ishfield>
</ishfields>
</ishobject>
</uimetadata>
<filehandlers>
<filehandler>
<filemask>*.eps</filemask>
...
</filehandler>
<filehandlers>
</basefolder>
<basefolder id="Modules">
...
</basefolder>
System path
- <systempath>
- Defines location on the server from where files are imported. Each subfolders will have its own section on the import page in the web client.
Metadata used during import
- <uimetadata>
- Holds default metadata visible in the Import dialog that appears when the import is started. Per batch of objects the metadata that can be set will always be the same.
- <ishobject>
- An "ishfolderref" attribute could be set to hold the default identifier of the import folder. When left empty, users have to select the desired folder in the repository prior to import. "ishtype"
- <ishfields>
- Container element that holds all metadata defaults
- <ishfield>
- Contain a default value that will be appear in the Import dialog dialog. Users can change these defaults in the Import dialog.
- <ishdata>
- Contains the EDT (Electronic Document Type) of the files with a particular extension. The EDT is used to map a file to its mime-type.
File Handlers
- <filehandler>
- Defines how files with a given file mask will be imported
- <filemask>
-
mandatory element to indicate for which types of files this handler is used.
<filemask>*.jpg</filemask> <filemask>*.jpeg</filemask> - <ishobject>
-
Mandatory element with extra information (ishfields that are set without being propted in the user interface) and the matching EDT (EDTEPS, EDTJPEG, EDTXML,...) for this filemask.
Following example imports the file as xml (EDTXML) and sets the status to "to be reviewed"
<ishobject> <ishfields> <ishfield name="FSTATUS" level="lng">To be reviewed</ishfield> </ishfields> <ishdata edt="EDTXML"/> </ishobject> - <importcomponent>
- Identifies and configures a COM+ component that is used for importing data to the system.
- <implementation>
-
Identifies the COM+ component responsible for importing content into the repository. The following COM+ component can be used in an out-of-the-box installation.
ISHBatchImport.CBatchImportStdFile Used for importing regular files of any type. ISHBatchImport.CBatchImportIshObject Used for importing "ishobject" xml's with an ishfields and an ishdata section. ISHBatchImport.CUpdateDocObj Used for updating objects that already exist in the repository (e.g. import translations that were previously exported). - <configuration>
-
Holds the configuration for the COM+ component specified in the <implementation> element.
<var name="action"> </var> Possible values are: - store: The object is created or the last version is updated. When the (last) version is released, a new version is created.
- create: The object is created, without checking existence or status of any previous versions.
- createorupdate: The given version is created or updated.
- update: The object is updated without checking existence.
<var name="initialstate"> </var> This parameter defines the initial status of objects that are created through the import functions. This parameter is used for ISHBatchImport.CBatchImportStdFile and ISHBatchImport.CBatchImportIshObject.
<var name="titlefieldname"> </var>
<var name="titlefieldlevel"> </var>
Defines the field and the level of the field (logical, version or lng) where the first part of the filename of the imported file (ftitle) is to be stored.
This parameter is only used for ISHBatchImport.CBatchImportStdFile.
<var name="movestatus"> </var> After the creation or update of an object through import, the object can be moved to a next status.