NIHVIVO-200 Incorporate the <span> tag that wraps front end editing links into the custom tag, so that if there are no links, we don't get the span.
NIHVIVO-142 Various tweaks to front end editing.
This commit is contained in:
parent
e8c272e4ff
commit
8cd54743d5
6 changed files with 52 additions and 40 deletions
|
@ -204,10 +204,16 @@ public class RdfLiteralHashTest {
|
|||
|
||||
int hash = RdfLiteralHash.makeVitroNsLiteralHash(bob,VitroVocabulary.MONIKER, "great", model);
|
||||
DataPropertyStatement stmt = RdfLiteralHash.getVitroNsPropertyStmtByHash(bob, model, hash);
|
||||
|
||||
Assert.assertEquals("great", stmt.getData());
|
||||
Assert.assertEquals(XSD.xstring.getURI(), stmt.getDatatypeURI());
|
||||
Assert.assertEquals(VitroVocabulary.MONIKER, stmt.getDatapropURI());
|
||||
Assert.assertEquals("http://example.com/bob", stmt.getIndividualURI());
|
||||
|
||||
String data = stmt.getData();
|
||||
String datatypeUri = stmt.getDatatypeURI();
|
||||
String predicateUri = stmt.getDatapropURI();
|
||||
String subjectUri = stmt.getIndividualURI();
|
||||
|
||||
Assert.assertEquals("great", data);
|
||||
Assert.assertEquals(XSD.xstring.getURI(), datatypeUri);
|
||||
Assert.assertEquals(VitroVocabulary.MONIKER, predicateUri);
|
||||
Assert.assertEquals("http://example.com/bob", subjectUri);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue