Ignore:
Timestamp:
2014-04-24T21:34:33+12:00 (10 years ago)
Author:
ak19
Message:

First commit for GLI part of GS2 to GS3 Format Conversion. Contains all the changes needed for the FormatConversionDialog to work, and some cosmetic changes to cdm.Format4gs3Manager.java. Still need to implement undo and redo and think about what needs to happen and how for Remote GS3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/util/Codec.java

    r8243 r28995  
    4141    static final public String ENCODE_PATH = "ENCODE_PATH";
    4242    static final public String ENCODE_SQUARE_BRACKETS = "ENCODE_SQUARE_BRACKETS";
     43    static final public String ESCAPEDHTML_TO_UNESCAPED = "ESCAPEDHTML_TO_UNESCAPED";
    4344    static final public String GREENSTONE_TO_DOM = "GREENSTONE_TO_DOM";
    4445    static final public String GREENSTONE_TO_TEXT = "GREENSTONE_TO_TEXT";
     
    168169    TRANSFORMS.put(TEXT_TO_DOM, text_to_dom);
    169170    text_to_dom = null;
     171
     172    // Unescape html (or xml) text
     173    String[] escapedhtml_to_unescaped = {
     174        "&", "&",
     175        "&lt;", "<",
     176        "&gt;", ">",
     177        "&quot;", "\""//,
     178        //"&apos;", "\'"
     179    };
     180    TRANSFORMS.put(ESCAPEDHTML_TO_UNESCAPED, escapedhtml_to_unescaped);
     181    escapedhtml_to_unescaped = null;
    170182
    171183    // Transform plain html text into greenstone encoding
Note: See TracChangeset for help on using the changeset viewer.