The import script imports required items from intermediary files with predefined names, exported by the export script. The purpose of the import script is to help you not to forget any item, and to import files in the required order. All files are imported from the folder, specified as SrcFol.
Important
You need to customize the import script before using it.
The lines to be customized in the script code are marked in red color. The values to be customized are green and bold.
You need to customize the lines that import edition templates and editions. To customize the script code: •For each edition template to import from exported intermediary files, add 5 lines as shown below. If you exported from your GN3 system 7 edition templates, you need to add 35 lines. Each line has to contain the correct value of the edition template ID (marked as green). srv4 import -in %SrcFol%\editionTemplate_4.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\editionTemplate_4.img.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\editionTemplate_4.article.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\editionTemplate_4.master.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\editionTemplate_4.pageLayer.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\editionTemplate_4.txtGeometry.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\editionTemplate_4.page.xml -opt GN3ChangeTitle.xsl
•For each edition to import from exported intermediary files, add lines as shown below. If you exported from your GN3 system 10 editions, you need to add 50 lines. Each line has to contain the correct value of the edition ID (marked as green). srv4 import -in %SrcFol%\edition_4.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\edition_4.img.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\edition_4.article.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\edition_4.master.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\edition_4.pageLayer.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\edition_4.txtGeometry.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\edition_4.page.xml -opt GN3ChangeTitle.xsl |
@ECHO OFF SET SrcFol=c:\tera\GN3Export\GN3Extract
srv4 import -in %SrcFol%\justScopes.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\titles.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\layerType.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\zones.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\sections.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\editionNumber.xml -opt GN3ChangeTitle.xsl
srv4 import -in %SrcFol%\regions.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\workstates.xml -opt GN3ChangeTitle.xsl
srv4 import -in %SrcFol%\fontlayouts.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\fonts.xml -opt GN3ChangeTitle.xsl
ECHO Check you have the correct permissions ECHO for Administrator and Everyone group!!! ECHO. ECHO If in doubt, remove them from groups.xml and users.xml ECHO. PAUSE srv4 import -in %SrcFol%\groups.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\users.xml -opt GN3ChangeTitle.xsl
srv4 import -in %SrcFol%\editorialConfigs.EditorialConfig.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\editorialConfigs.xml -opt GN3ChangeTitle.xsl
srv4 import -in %SrcFol%\justDefs.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\justContexts.xml -opt GN3ChangeTitle.xsl
srv4 import -in %SrcFol%\folders.xml -opt GN3ChangeTitle.xsl REM *** IMPORT ALL IMAGE BASKETS WITH IMAGES USED IN OBJ LIBs
FOR %i% in (%SrcFol%\Img_*.XML) DO srv4 import -in %i% -opt GN3ChangeTitle.xsl
srv4 import -in %SrcFol%\lib.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\libObjs.libObj.xml -opt GN3ChangeTitle.xsl
srv4 import -in %SrcFol%\geometries.xml -opt GN3ChangeTitle.xsl
srv4 import -in %SrcFol%\categories.xml -opt GN3ChangeTitle.xsl
REM ** Import Edition Templates srv4 import -in %SrcFol%\edition_4.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\editionTemplate_4.article.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\editionTemplate_4.master.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\editionTemplate_4.pageLayer.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\editionTemplate_4.txtGeometry.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\editionTemplate_4.page.xml -opt GN3ChangeTitle.xsl
REM ** Import Editions srv4 import -in %SrcFol%\edition_4.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\edition_4.article.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\edition_4.master.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\edition_4.pageLayer.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\edition_4.txtGeometry.xml -opt GN3ChangeTitle.xsl srv4 import -in %SrcFol%\edition_4.page.xml -opt GN3ChangeTitle.xsl
|