NIHVIVO-1590 dateTimeValue custom list view finished; dateTimeInterval custom list view in progress.

This commit is contained in:
rjy7 2011-01-08 00:11:24 +00:00
parent ea78774a2d
commit 11dd397799
3 changed files with 74 additions and 18 deletions

View file

@ -114,7 +114,7 @@ public class FreemarkerConfigurationLoader {
String dateFormat = "M/d/yyyy";
config.setDateFormat(dateFormat);
String timeFormat = "hh:mm a";
String timeFormat = "h:mm a";
config.setTimeFormat(timeFormat);
config.setDateTimeFormat(dateFormat + " " + timeFormat);

View file

@ -256,13 +256,13 @@ public class ObjectPropertyStatementDaoJena extends JenaBaseDao implements Objec
*/
public List<Map<String, String>> getObjectPropertyStatementsForIndividualByProperty(String subjectUri, String propertyUri, String queryString) {
log.debug("Object property query string: " + queryString);
log.debug("Query string for object property " + propertyUri + ": " + queryString);
Query query = null;
try {
query = QueryFactory.create(queryString, Syntax.syntaxARQ);
} catch(Throwable th){
log.error("could not create SPARQL query for query string " + th.getMessage());
log.error("Could not create SPARQL query for query string. " + th.getMessage());
log.error(queryString);
}
@ -280,7 +280,7 @@ public class ObjectPropertyStatementDaoJena extends JenaBaseDao implements Objec
QueryExecution qexec = QueryExecutionFactory.create(
query, dataset, bindings);
ResultSet results = qexec.execSelect();
while (results.hasNext()) {
QuerySolution soln = results.nextSolution();
list.add(QueryUtils.querySolutionToStringValueMap(soln));