Changeset 15659
- Timestamp:
- 2008-05-22T19:21:19+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/trunk/gs3-webservices-democlient/src/GS3Fedora/org/greenstone/fedora/services/FedoraConnection.java
r15658 r15659 1398 1398 // just *contain* the letter, but actually start with it: 1399 1399 String resultTitle = results[i].getTitle(0); 1400 if(resultTitle.equalsIgnoreCase(GREENSTONE_+collName+_COLLECTION)) { 1401 continue; // try next one 1402 } else if(resultTitle.toLowerCase().startsWith(letter.toLowerCase())) { 1403 // skip the collection itself 1404 v.add(results[i].getPid()); 1405 //LOG.debug(resultTitle); 1400 if(resultTitle.toLowerCase().startsWith(letter.toLowerCase())) { 1401 String pid = results[i].getPid(); 1402 // skip the collection object itself 1403 if(!pid.equalsIgnoreCase(GREENSTONE_+collName+_COLLECTION)) { 1404 v.add(pid); 1405 //LOG.debug(resultTitle); 1406 } 1406 1407 } 1407 1408 } … … 1472 1473 boolean accepted = false; // accept the resultTitle found 1473 1474 1474 // skip the collection object itself, since it's not a document 1475 if(resultTitle.equalsIgnoreCase(GREENSTONE_+collName+_COLLECTION)) { 1475 String resultPID = results[i].getPid(); 1476 // skip the collection object itself, since it's not a document 1477 if(resultPID.equalsIgnoreCase(GREENSTONE_+collName+_COLLECTION)) { 1476 1478 accepted = false; 1477 1479 } … … 1479 1481 // whether resultTitle contains titleContents: 1480 1482 else if(indexOfFirstSpace == -1) { // titleContents is a single word 1481 1482 1483 if(!startsWith) // titles that *contain* the word titleContents 1483 1484 accepted = true; //accept all titles found … … 1487 1488 accepted = true; 1488 1489 1489 } 1490 } 1490 1491 else { // otherwise, titleContents is a phrase of >1 word, need 1491 1492 // to check that the result title contains the entire phrase … … 1500 1501 // if the resultTitle fit the criteria, store its pid 1501 1502 if(accepted) { 1502 v.add(result s[i].getPid());1503 v.add(resultPID); 1503 1504 //System.out.println(resultTitle); 1504 1505 }
Note:
See TracChangeset
for help on using the changeset viewer.