Ignore:
Timestamp:
2020-07-03T12:18:35+12:00 (4 years ago)
Author:
ak19
Message:

The previous commit fixed the issue where HTML in collection descriptions was not being preserved when GLI was not involved. This commit fixes the remaining problems with preserving HTML in coll descriptions when GLI is involved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java

    r22410 r34241  
    320320            if (!ready) return;
    321321
     322        boolean preserveTags = true; // for coll description, allow HTML tags to be saved as HTML tags
    322323        public_collectionmeta.setValue((public_checkbox.isSelected() ? StaticStrings.TRUE_STR : StaticStrings.FALSE_STR));
    323324        String creator_email_str = creator_emailfield.getText();
    324325        creator_collectionmeta.setValue(creator_email_str);
    325         collection_extra_collectionmeta.setValue(description_textarea.getText());
     326        collection_extra_collectionmeta.setValue(description_textarea.getText(), preserveTags);
    326327        icon_collection_collectionmeta.setValue(icon_textfield.getText());
    327328        maintainer_collectionmeta.setValue(maintainer_emailfield.getText());
    328329        icon_collection_small_collectionmeta.setValue(small_icon_textfield.getText());
    329330        collection_name_collectionmeta.setValue(name_textfield.getText());
    330      
    331    
     331       
    332332    }
    333333
Note: See TracChangeset for help on using the changeset viewer.