Project

General

Profile

« Previous | Next » 

Revision 3516

Added by barteau about 17 years ago

Modified string constant "SUB_DOCS_PATH" to be static and public accessible.

View differences:

src/edu/ucsb/nceas/metacat/clientview/ClientFgdcHelper.java
11 11

  
12 12
import edu.ucsb.nceas.metacat.client.MetacatException;
13 13
import edu.ucsb.nceas.utilities.XMLUtilities;
14
import java.io.BufferedReader;
15 14
import java.io.IOException;
16 15
import java.io.InputStream;
17 16
import java.io.Reader;
......
50 49
    public static final String              FGDC_DATA_FILE_NODES_XPATH = "stdorder/digform/digtopt/onlinopt/computer/networka/networkr";
51 50
    
52 51
    public static final String              PATH4ANCESTOR = FGDC_DATA_FILE_DOCID_XPATH + "[text()='%1s']/ancestor::node()[name()='%2s']";
52
    public static final String              SUB_DOCS_PATH = FGDC_DATA_FILE_DOCID_XPATH + "/text()";
53 53
    
54 54
    /**
55 55
     * Metadata Document ID location within an FGDC document.  XPath expression.
......
81 81
    public static void clientDeleteRequest(ClientView clientViewBean, ClientViewHelper clientViewHelper) {
82 82
        String                      result = null, docId, subDocId, parentDocId, revisedDocId;
83 83
        NodeList                    nodeLst;
84
        final String                SUB_DOCS_PATH = FGDC_DATA_FILE_DOCID_XPATH + "/text()";
85 84
        Node                        node;
86 85
        Document                    resultSetDoc;
87 86
        
......
352 351
            ClientViewHelper.updateNodeText(root, xpath, pathToResdesc, fileName);
353 352
        }
354 353
    }
355

  
356 354
}

Also available in: Unified diff