Using the ImportRefReplace parameters

When a directory is imported, references to the files are similar to /work/Inetpub/wwwroot/filename. To store the actual reference for a file so you can access its URL, replace /work/Inetpub/wwwroot with http://hostname/ in the configuration file:

ImportRefReplaceCSVs=/work/Inetpub/wwwroot
ImportRefReplaceWithCSVs=http://hostname/

Strings are replaced from left to right. For example:

ImportRefReplaceCSVs=/work/Inetpub/wwwroot
ImportRefReplaceWithCSVs=http://hostname/

replaces:

/work/Inetpub/wwwroot/directoryname/myfile 

with:

http://hostname/directoryname/myfile

You can apply the Import Reference Replace function more than once by setting the value of the ImportRefReplaceCSVs and ImportRefReplaceWithCSVs parameters to a list of comma-separated paths; for example:

ImportRefReplaceCSVs=C:\Inetpub\wwwroot\,D:\Inetpub\wwwroot\
ImportRefReplaceWithCSVs=http://193.128.174.23/,http://193.128.174.38/

This replaces the string “C:\Inetpub\wwwroot\” with “http://193.128.174.23/” and replaces “D:\Inetpub\wwwroot\” with “http://193.128.174.38/” whenever they appear in the queue of files to be processed. You must ensure that the number of paths specified in ImportRefReplaceCSVs is equal to the number of paths in ImportRefReplaceWithCSVs.

Reference replacement is recursive, which means that if you want to replace:

C:\Inetpub\wwwroot\data\data1

with:

 http://127.0.0.1/data/data1

enter:

ImportRefReplaceCSVs=C:\Inetpub\wwwroot,\
ImportRefReplaceWithCSVs=http://127.0.0.1,/

ImportPathReplaceUpToSlash and ImportPathReplaceString are both performed before ImportRefReplaceCSVs and ImportRefReplaceWithCSVs.

The import rendering parameters are described in Table C-13.

Table C-13: Import rendering parameters

Key

Default

Value

Description 

ImportRenderedHTMLExtensions

None

String

Specifies the extension of files on which to perform HTML rendering.

ImportRenderedHTMLFieldName

None

String

For any non-HTML file that gets imported, the HTML file that comes out of Keyview/PDF gets moved into this field.

ImportRenderedHTMLMoveToDir

None

String

For any non-HTML file that gets imported, the HTML file that comes out of Keyview/PDF gets moved into this directory.

ImportRenderedHTMLPathReplaceUpToSlash

-1

Integer

Specifies a string that is to be replaced up to a certain ‘\’. Used to set the right reference for the ImportRenderedHTMLFieldName field.

ImportRenderedHTMLPathReplaceString

None

String

Specifies the replacement string of the string immediately preceding the nth ‘\’.

ImportRenderedHTMLRefReplaceCSVs

None

String

Specifies the string that is to be replaced. Used to set the right reference for the ImportRenderedHTMLFieldName field.

ImportRenderedHTMLRefReplaceWithCSVs

None

String

Specifies the string that is to replace the original reference of the ImportRenderedHTMLFieldName field. Used to set the right reference for the ImportRenderedHTMLFieldName field.