Changeset 6676
- Timestamp:
- 2004-02-02T11:24:52+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS2Retrieve.java
r6275 r6676 763 763 } 764 764 765 protected final char RELATION_SEP_CHAR = '_';766 protected final String SEPARATOR_SEP_STRING = "'";767 768 765 protected String getMetadata(String node_id, DBInfo info, 769 766 String metadata) { … … 771 768 String relation = ""; 772 769 String separator = ", "; 773 int pos = metadata.indexOf( RELATION_SEP_CHAR);770 int pos = metadata.indexOf(GSConstants.META_RELATION_SEP); 774 771 if (pos ==-1) { 775 772 // just a plain meta entry eg dc.Title … … 782 779 if (temp.equals("all")) { 783 780 multiple=true; 784 pos = metadata.indexOf( RELATION_SEP_CHAR);781 pos = metadata.indexOf(GSConstants.META_RELATION_SEP); 785 782 if (pos ==-1) { 786 783 temp = ""; … … 794 791 if (temp.equals("parent") || temp.equals("root") || temp.equals( "ancestors")) { // "current" "siblings" "children" "descendents" 795 792 relation = temp; 796 pos = metadata.indexOf( RELATION_SEP_CHAR);793 pos = metadata.indexOf(GSConstants.META_RELATION_SEP); 797 794 if (pos == -1) { 798 795 temp = ""; … … 804 801 805 802 // now look for separator info 806 if (temp.startsWith( SEPARATOR_SEP_STRING) && temp.endsWith(SEPARATOR_SEP_STRING)) {803 if (temp.startsWith(GSConstants.META_SEPARATOR_SEP) && temp.endsWith(GSConstants.META_SEPARATOR_SEP)) { 807 804 separator = temp.substring(1, temp.length()-1); 808 805 … … 877 874 relation_id = OID.getParent(current_id); 878 875 } 879 880 876 return result.toString(); 881 877 }
Note:
See TracChangeset
for help on using the changeset viewer.