Changeset 32653
- Timestamp:
- 2018-12-04T13:48:08+13:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/XSLTUtil.java
r32459 r32653 113 113 } 114 114 115 public static boolean groupsContains(String user_groups, String this_group)115 public static boolean csvContains(String user_groups, String this_group) 116 116 { 117 117 String[] groups_array = user_groups.split(","); … … 175 175 } 176 176 177 public static String getFormattedCCSSelection(String collections, String groups) { 178 179 String result = ","; 180 if (collections != null && !collections.equals("")) { 181 result += collections+","; 182 } 183 if (groups != null && !groups.equals("")) { 184 String[] gps = groups.split(","); 185 for (int i=0; i<gps.length; i++) { 186 result += "group."+gps[i].replace('/','.') +","; 187 } 188 } 189 return result; 190 } 177 191 /** 178 192 * Generates links to equivalent documents for a document with a default
Note:
See TracChangeset
for help on using the changeset viewer.