The export script exports required items from GN3 in files with predefined names. The purpose of the script is to help you not to forget any item. All files are exported in the folder, specified as OutFolder.
All titles are exported, as TitleId is set to 0. Should you want to export only the specific title(s), specify its id or list of ids or names. See the description of the -title parameter in the GN3Export topic.
Important
You need to customize the export 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 export articles and images from baskets, and the lines that export edition templates and editions. To customize the script code: •Add as many lines as there are baskets to export articles from. In every line, set the id of the related basket. For example, if your GN3 system contains 47 baskets for articles, you need to have in the export script code 47 lines for "articles-from-basket" export. Each line has to contain the correct value of the basket ID in two places (marked as green): as the value of the Basket=xx, and in the name of basket, e.g. \basketXX.xml. Gn3Export.exe -title %TitleId% -node article:Basket=40 -out %OutFolder%\basket40.xml •Add as many lines as there are baskets to export images from. In every line, set the id of the related basket. For example, if your GN3 system contains 23 baskets for images, you need to have in the export script code 23 lines for "images-from-basket" export. Each line has to contain the correct value of the basket ID in two places (marked as green): as the value of the Basket=xx, and in the name of basket, e.g. \basketXX.xml. Gn3Export.exe -title %TitleId% -node img:Basket=36 -out %OutFolder%\img_36.xml •Add as many lines as there are edition templates to export. In every line, set the id of the related template. For example, if your GN3 system contains 15 edition templates, you need to have in the export script code 15 lines for "templates" export. Each line has to contain the correct value of the template ID in two places (marked as green): as the value of the id=xx, and in the name of template, e.g. \editionTemplate_X.xml. Gn3Export.exe -title %TitleId% -node editionTemplate:id=4 -out %OutFolder%\editionTemplate_4.xml •Add as many lines as there are editions to export. In every line, set the id of the related edition. For example, if your GN3 system contains 87 editions, you need to have in the export script code 87 lines for "editions" export. Each line has to contain the correct value of the edition ID in two places (marked as green): as the value of the id=xx, and in the name of edition, e.g. \edition_X.xml. Gn3Export.exe -title %TitleId% -node edition:id=6 -out %OutFolder%\edition_6.xml |
@ECHO OFF SET TitleId=0 SET OutFolder=.\GN3Extract
REM gn3export -title %TitleId% -node hyphenation -out %OutFolder%\hyphenations.xml gn3export -title %TitleId% -node justScope -out %OutFolder%\justScopes.xml gn3export -title %TitleId% -node fontLayout -out %OutFolder%\fontLayouts.xml gn3export -title %TitleId% -node lib -out %OutFolder%\lib.xml
gn3export -title %TitleId% -node libObj -out %OutFolder%\libObjs.xml gn3export -title %TitleId% -node justContext -out %OutFolder%\justContexts.xml gn3export -title %TitleId% -node master -out %OutFolder%\masters.xml
gn3export -title %TitleId% -node libObj -out %OutFolder%\libObjs.xml gn3export -title %TitleId% -node layerType -out %OutFolder%\layerType.xml gn3export -title %TitleId% -node justDef -out %OutFolder%\justDefs.xml gn3export -title %TitleId% -node geometry -out %OutFolder%\geometries.xml
gn3export -title %TitleId% -node user -out %OutFolder%\users.xml gn3export -title %TitleId% -node group -out %OutFolder%\groups.xml
gn3export -title %TitleId% -node zone -out %OutFolder%\zones.xml gn3export -title %TitleId% -node region -out %OutFolder%\regions.xml gn3export -title %TitleId% -node section -out %OutFolder%\sections.xml gn3export -title %TitleId% -node title -out %OutFolder%\titles.xml gn3export -title %TitleId% -node editionNumber -out %OutFolder%\editionNumber.xml
gn3export -title %TitleId% -node categorySet -out %OutFolder%\categories.xml
gn3export -title %TitleId% -node workstate -out %OutFolder%\workstates.xml gn3export -title %TitleId% -node editorialConfig -out %OutFolder%\editorialConfigs.xml
gn3export -title %TitleId% -node folder -out %OutFolder%\folders.xml
REM ---- Export articles from baskets: one line for each basket REM --- Customize the Basket Id in place of 40,33 etc. Gn3Export.exe -title %TitleId% -node article:Basket=40 -out %OutFolder%\basket40.xml Gn3Export.exe -title %TitleId% -node article:Basket=33 -out %OutFolder%\basket33.xml
REM ---- Export images from baskets: one line for each basket REM --- Customize the Basket Id in place of 36 etc. Gn3Export.exe -title %TitleId% -node img:Basket=36 -out %OutFolder%\img_36.xml
REM ---- Export edition templates: one line for each template REM --- Customize the template Id in place of 4 etc. Gn3Export.exe -title %TitleId% -node editionTemplate:id=4 -out %OutFolder%\editionTemplate_4.xml
REM ---- Export editions: one line for each edition REM --- Customize the edition Id in place of 4 etc. Gn3Export.exe -title %TitleId% -node edition:id=6 -out %OutFolder%\edition_6.xml
|