Revision 3482
Added by barteau over 17 years ago
src/edu/ucsb/nceas/metacat/clientview/ClientFgdcHelper.java | ||
---|---|---|
41 | 41 |
*/ |
42 | 42 |
public static final String FGDC_DATA_FILE_DOCID_XPATH = "/metadata/distinfo/stdorder/digform/digtopt/onlinopt/computer/networka/networkr"; |
43 | 43 |
public static final String FGDC_DATA_FILE_QUERY_XPATH = FGDC_DATA_FILE_DOCID_XPATH + "[text()='%1s']"; |
44 |
public static final String FGDC_DATA_FILE_NAME_XPATH = "digtinfo/formcont"; |
|
44 | 45 |
|
46 |
/** |
|
47 |
* FGDC Data Document ID location within an FGDC document, relative to the "distinfo" parent node. |
|
48 |
* XPath expression. |
|
49 |
*/ |
|
50 |
public static final String FGDC_DATA_FILE_NODES_XPATH = "stdorder/digform/digtopt/onlinopt/computer/networka/networkr"; |
|
51 |
|
|
45 | 52 |
public static final String PATH4ANCESTOR = FGDC_DATA_FILE_DOCID_XPATH + "[text()='%1s']/ancestor::node()[name()='%2s']"; |
46 | 53 |
|
47 | 54 |
/** |
48 | 55 |
* Metadata Document ID location within an FGDC document. XPath expression. |
49 | 56 |
*/ |
50 | 57 |
public static final String FGDC_DOCID_XPATH = "/metadata/distinfo/resdesc"; |
51 |
|
|
58 |
public static final String FGDC_FILE_NAME_XPATH = "custom"; |
|
52 | 59 |
/** |
53 | 60 |
* Metadata Document ID query template within an FGDC document. Substitute %1s with Doc Id. |
54 | 61 |
*/ |
55 | 62 |
public static final String XPATH_QUERY_TEMPLATE = FGDC_DOCID_XPATH + "[text()='%1s']"; |
63 |
public static final String FGDC_DOCID_ROOT_XPATH = XPATH_QUERY_TEMPLATE + "/ancestor::node()[name()='distinfo']"; |
|
56 | 64 |
|
57 | 65 |
/** |
58 | 66 |
* Identifies the FGDC DTD. |
Also available in: Unified diff
Created new XPath constants for FGDC queries.