Changeset 36248


Ignore:
Timestamp:
2022-06-11T19:25:52+12:00 (23 months ago)
Author:
anupama
Message:

Need to add xmlns:gslib URL into collectionConfig xml file generated when gs2 coll_cfg was converted to gs3 collection config XML using the FormatConversion wizard dialog. The part of the code that needed to be inserting the required URL but wasn't, actually is this convert_coll_from_gs2.pl script, which gets called even before the FormatConversion wizard: when you go to open a collection in GLI, and the list of colls get loaded, it's then that this perl script gets called and creates a collectionConfig.xml file. This reduced the number of issues in GS2 to GS3 converted collection config files. The remaining errors in today's converted collection where all in the display Item tags (unescaped ampersands in URLs and unclosed paragraphs).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/bin/script/convert_coll_from_gs2.pl

    r29045 r36248  
    143143   
    144144    $collwriter->xmlDecl("UTF-8");
    145     $collwriter->startTag('CollectionConfig', 'xmlns:gsf'=>"http://www.greenstone.org/greenstone3/schema/ConfigFormat", 'xmlns:xsl'=>'http://www.w3.org/1999/XSL/Transform');
     145    $collwriter->startTag('CollectionConfig', 'xmlns:gsf'=>"http://www.greenstone.org/greenstone3/schema/ConfigFormat",
     146              'xmlns:gslib'=>'http://www.greenstone.org/skinning',
     147              'xmlns:xsl'=>'http://www.w3.org/1999/XSL/Transform');
    146148   
    147149    #output the collection metadata to the collectionConfig file
Note: See TracChangeset for help on using the changeset viewer.