NIHVIVO-646 Fixed problem of cursor:pointer not taking effect on drag-drop list in add author form.

NIHVIVO-742 Restored v1.0 datetime handling to educational background form.
This commit is contained in:
rjy7 2010-07-06 14:05:57 +00:00
parent 93d8b6100a
commit 35a35daab8
4 changed files with 18 additions and 11 deletions

View file

@ -10,7 +10,7 @@ foaf:Person - new or existing individual being linked to
Data properties of Authorship:
core:authorRank
Object properties (domain : range)
Object properties (domain : range):
core:informationResourceInAuthorship (InformationResource : Authorship)
core:linkedInformationResource (Authorship : InformationResource) - inverse of informationResourceInAuthorship
@ -79,7 +79,7 @@ core:authorInAuthorship (Person : Authorship) - inverse of linkedAuthor
<%-- Unlike other custom forms, this form does not allow edits of existing authors, so there are no
SPARQL queries for existing values. --%>
<%-- RY Is this claim correct, or do we need them to retrieve an existing individual? --%>
<%-- Data properties --%>
<v:jsonset var="newPersonFirstNameAssertion">

View file

@ -20,6 +20,10 @@
width: 15em;
}
#authorships.dd .authorLinkWrapper {
cursor: pointer;
}
#showAddForm span.or {
display: none;
}

View file

@ -244,7 +244,6 @@ var addAuthorForm = {
$('.authorLinkWrapper').each(function() {
$(this).attr('title', 'Drag and drop to reorder authors');
$(this).attr('cursor', 'pointer'); // not working??
});
authorshipList.sortable({
@ -539,13 +538,17 @@ var addAuthorForm = {
// Disable DD and associated cues if only one author remains
disableAuthorDD: function() {
var authorship = $('.authorship'),
var authorships = $('#authorships'),
authorship = $('.authorship'),
authorLinkWrapper = $('.authorLinkWrapper');
$('#authorships').sortable({ disable: true } );
authorships.sortable({ disable: true } );
authorships.removeClass('dd');
authorship.css('background', 'none');
authorship.css('padding-left', '0');
authorLinkWrapper.attr('title', '');
authorLinkWrapper.attr('cursor', '');
},
// RY To be implemented later.

View file

@ -95,7 +95,7 @@ core:dateTimePrecision (DateTimeValue : DateTimeValuePrecision)
?edTrainingUri <${majorFieldPred}> ?majorField .
</v:jsonset>
<%--
<%-- For new datetime handling in ontology - v1.2
<c:set var="dateTimeValue" value="${vivoCore}DateTimeValue" />
<c:set var="hasDateTimeValue" value="${vivoCore}dateTimeValue" />
<c:set var="precisionValue" value="${vivoCore}YearPrecision" />
@ -113,16 +113,16 @@ core:dateTimePrecision (DateTimeValue : DateTimeValuePrecision)
?edTrainingUri core:dateTimeValue ?dateTime .
</v:jsonset>
--%>
<%--
<c:set var="yearPred" value="${vivoCore}year" />
<v:jsonset var="yearExisting" >
SELECT ?existingYear WHERE {
?edBackgroundUri <${yearPred}> ?existingYear }
?edTrainingUri <${yearPred}> ?existingYear }
</v:jsonset>
<v:jsonset var="yearAssertion" >
?edBackgroundUri <${yearPred}> ?year .
?edTrainingUri <${yearPred}> ?year .
</v:jsonset>
--%>
<c:set var="deptPred" value="${vivoCore}departmentOrSchool" />
<v:jsonset var="deptExisting" >
SELECT ?existingDept WHERE {