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:
parent
93d8b6100a
commit
35a35daab8
4 changed files with 18 additions and 11 deletions
|
@ -10,7 +10,7 @@ foaf:Person - new or existing individual being linked to
|
||||||
Data properties of Authorship:
|
Data properties of Authorship:
|
||||||
core:authorRank
|
core:authorRank
|
||||||
|
|
||||||
Object properties (domain : range)
|
Object properties (domain : range):
|
||||||
|
|
||||||
core:informationResourceInAuthorship (InformationResource : Authorship)
|
core:informationResourceInAuthorship (InformationResource : Authorship)
|
||||||
core:linkedInformationResource (Authorship : InformationResource) - inverse of informationResourceInAuthorship
|
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
|
<%-- Unlike other custom forms, this form does not allow edits of existing authors, so there are no
|
||||||
SPARQL queries for existing values. --%>
|
SPARQL queries for existing values. --%>
|
||||||
<%-- RY Is this claim correct, or do we need them to retrieve an existing individual? --%>
|
|
||||||
<%-- Data properties --%>
|
<%-- Data properties --%>
|
||||||
|
|
||||||
<v:jsonset var="newPersonFirstNameAssertion">
|
<v:jsonset var="newPersonFirstNameAssertion">
|
||||||
|
|
|
@ -20,6 +20,10 @@
|
||||||
width: 15em;
|
width: 15em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#authorships.dd .authorLinkWrapper {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
#showAddForm span.or {
|
#showAddForm span.or {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -244,7 +244,6 @@ var addAuthorForm = {
|
||||||
|
|
||||||
$('.authorLinkWrapper').each(function() {
|
$('.authorLinkWrapper').each(function() {
|
||||||
$(this).attr('title', 'Drag and drop to reorder authors');
|
$(this).attr('title', 'Drag and drop to reorder authors');
|
||||||
$(this).attr('cursor', 'pointer'); // not working??
|
|
||||||
});
|
});
|
||||||
|
|
||||||
authorshipList.sortable({
|
authorshipList.sortable({
|
||||||
|
@ -539,13 +538,17 @@ var addAuthorForm = {
|
||||||
|
|
||||||
// Disable DD and associated cues if only one author remains
|
// Disable DD and associated cues if only one author remains
|
||||||
disableAuthorDD: function() {
|
disableAuthorDD: function() {
|
||||||
var authorship = $('.authorship'),
|
var authorships = $('#authorships'),
|
||||||
|
authorship = $('.authorship'),
|
||||||
authorLinkWrapper = $('.authorLinkWrapper');
|
authorLinkWrapper = $('.authorLinkWrapper');
|
||||||
$('#authorships').sortable({ disable: true } );
|
|
||||||
|
authorships.sortable({ disable: true } );
|
||||||
|
authorships.removeClass('dd');
|
||||||
|
|
||||||
authorship.css('background', 'none');
|
authorship.css('background', 'none');
|
||||||
authorship.css('padding-left', '0');
|
authorship.css('padding-left', '0');
|
||||||
|
|
||||||
authorLinkWrapper.attr('title', '');
|
authorLinkWrapper.attr('title', '');
|
||||||
authorLinkWrapper.attr('cursor', '');
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// RY To be implemented later.
|
// RY To be implemented later.
|
||||||
|
|
|
@ -95,7 +95,7 @@ core:dateTimePrecision (DateTimeValue : DateTimeValuePrecision)
|
||||||
?edTrainingUri <${majorFieldPred}> ?majorField .
|
?edTrainingUri <${majorFieldPred}> ?majorField .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
<%--
|
<%-- For new datetime handling in ontology - v1.2
|
||||||
<c:set var="dateTimeValue" value="${vivoCore}DateTimeValue" />
|
<c:set var="dateTimeValue" value="${vivoCore}DateTimeValue" />
|
||||||
<c:set var="hasDateTimeValue" value="${vivoCore}dateTimeValue" />
|
<c:set var="hasDateTimeValue" value="${vivoCore}dateTimeValue" />
|
||||||
<c:set var="precisionValue" value="${vivoCore}YearPrecision" />
|
<c:set var="precisionValue" value="${vivoCore}YearPrecision" />
|
||||||
|
@ -113,16 +113,16 @@ core:dateTimePrecision (DateTimeValue : DateTimeValuePrecision)
|
||||||
?edTrainingUri core:dateTimeValue ?dateTime .
|
?edTrainingUri core:dateTimeValue ?dateTime .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
--%>
|
--%>
|
||||||
<%--
|
|
||||||
<c:set var="yearPred" value="${vivoCore}year" />
|
<c:set var="yearPred" value="${vivoCore}year" />
|
||||||
<v:jsonset var="yearExisting" >
|
<v:jsonset var="yearExisting" >
|
||||||
SELECT ?existingYear WHERE {
|
SELECT ?existingYear WHERE {
|
||||||
?edBackgroundUri <${yearPred}> ?existingYear }
|
?edTrainingUri <${yearPred}> ?existingYear }
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
<v:jsonset var="yearAssertion" >
|
<v:jsonset var="yearAssertion" >
|
||||||
?edBackgroundUri <${yearPred}> ?year .
|
?edTrainingUri <${yearPred}> ?year .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
--%>
|
|
||||||
<c:set var="deptPred" value="${vivoCore}departmentOrSchool" />
|
<c:set var="deptPred" value="${vivoCore}departmentOrSchool" />
|
||||||
<v:jsonset var="deptExisting" >
|
<v:jsonset var="deptExisting" >
|
||||||
SELECT ?existingDept WHERE {
|
SELECT ?existingDept WHERE {
|
||||||
|
|
Loading…
Add table
Reference in a new issue