Revision 7462
Added by ben leinfelder almost 12 years ago
src/edu/ucsb/nceas/metacat/restservice/MNResourceHandler.java | ||
---|---|---|
1087 | 1087 |
Date startTime = null; |
1088 | 1088 |
Date endTime = null; |
1089 | 1089 |
ObjectFormatIdentifier formatId = null; |
1090 |
boolean replicaStatus = false;
|
|
1090 |
boolean replicaStatus = true;
|
|
1091 | 1091 |
int start = 0; |
1092 | 1092 |
//TODO: make the max count into a const |
1093 | 1093 |
int count = 1000; |
... | ... | |
1132 | 1132 |
{ |
1133 | 1133 |
if(value != null && |
1134 | 1134 |
value.length > 0 && |
1135 |
(value[0].equals("true") || value[0].equals("TRUE") || value[0].equals("YES")))
|
|
1135 |
(value[0].equalsIgnoreCase("false") || value[0].equalsIgnoreCase("no")))
|
|
1136 | 1136 |
{ |
1137 |
replicaStatus = true;
|
|
1137 |
replicaStatus = false;
|
|
1138 | 1138 |
} |
1139 | 1139 |
} |
1140 | 1140 |
else if(name.equals("start") && value != null) |
src/edu/ucsb/nceas/metacat/IdentifierManager.java | ||
---|---|---|
1468 | 1468 |
if (!replicaStatus) { |
1469 | 1469 |
String currentNodeId = PropertyService.getInstance().getProperty("dataone.nodeId"); |
1470 | 1470 |
if (!f1 && !f2 && !f3) { |
1471 |
whereClauseSql += " where authoritive_member_node != '" +
|
|
1471 |
whereClauseSql += " where authoritive_member_node = '" + |
|
1472 | 1472 |
currentNodeId.trim() + "'"; |
1473 | 1473 |
} else { |
1474 |
whereClauseSql += " and authoritive_member_node != '" +
|
|
1474 |
whereClauseSql += " and authoritive_member_node = '" + |
|
1475 | 1475 |
currentNodeId.trim() + "'"; |
1476 | 1476 |
} |
1477 | 1477 |
} |
Also available in: Unified diff
default replicaStatus (aka "show replicas in results") to true rather than false