Skip to content

Commit

Permalink
fixed title string, but to no avail
Browse files Browse the repository at this point in the history
  • Loading branch information
fasseg committed May 17, 2013
1 parent fcb4335 commit c1544aa
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -105,7 +105,7 @@ public Response searchSubmitRdf(@FormParam("terms") final String terms,
/* and add the RDF model of each found fedora:resource node to the response model */
for (ObjectFields field : result.getObjectFieldsList()){
final FedoraResource fo = this.nodeService.getObject(session, field.getPath());
Resource objResource = model.createResource(uriInfo.getBaseUri() + "/rest/" + field.getPath());
Resource objResource = model.createResource("info:fedora/"+ field.getPath());
model.add(JcrRdfTools.getJcrPropertiesModel(FedoraResource.DEFAULT_SUBJECT_FACTORY, fo.getNode()));
}

Expand Down Expand Up @@ -201,7 +201,8 @@ public FieldSearchResult search(final Query query, final int offSet,
public static String buildQueryString() {
//TODO expand to more fields
final String sqlExpression =
"SELECT * FROM [" + FEDORA_RESOURCE + "] WHERE [dc:identifier] like $sterm OR [dc:title] like $sterm";
"SELECT * FROM [" + FEDORA_RESOURCE + "] WHERE PATH([" + FEDORA_RESOURCE + "]) like $sterm OR [dc:identifier] like $sterm OR [dc:title] like $sterm";
// "SELECT * FROM [" + FEDORA_RESOURCE + "] WHERE [dc:identifier] like $sterm OR [dc:title] like $sterm";
return sqlExpression;
}
}

0 comments on commit c1544aa

Please sign in to comment.