Ignore:
Timestamp:
2003-12-01T19:52:02+13:00 (20 years ago)
Author:
jmt12
Message:

Have rearranged where and how strings are feed through the Codec. After several hours work and a dozen paper trials I discovered the TEXT_TO_DOM conversion was completely pointless (DOM does it itself). Also the quotes only need to be dealt to if they are being sent to the collect.cfg file. Hopefully I've got it all going now - including using that pesky pipe character that I would rather not have to deal with. And everything seems to be ok - I tested all the dangerous characters including square brackets and amperstamp. I also tried hierarchies, and then as the piece'd'resistance I tried a hierarchies with dangerous characters. All good. I'm all about the working metadata.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/valuetree/GValueModel.java

    r6037 r6069  
    251251
    252252    private String getHIndex(GValueNode node, String value, String index) {
    253         ///ystem.err.println("Get the HIndex for: " + value);
     253    ///ystem.err.println("Get the HIndex for: " + value);
    254254    for(int i = node.size(); i != 0; i--) {
    255255        GValueNode next = (GValueNode)node.get(i - 1);
    256         String next_str = next.toString();
     256        String next_str = next.toString(GValueNode.DOM);
    257257        ///ystem.err.println("Does " + value + " start with " + next_str + "?");
    258258        if(value.startsWith(next_str)) {
Note: See TracChangeset for help on using the changeset viewer.