NIHVIVO-803 Removed methods no longer needed after reimplementation of author reordering.
This commit is contained in:
parent
cc7d6c4e07
commit
62e166fd6f
1 changed files with 0 additions and 27 deletions
|
@ -393,33 +393,6 @@ var addAuthorForm = {
|
||||||
$(authorship).data('position', pos);
|
$(authorship).data('position', pos);
|
||||||
},
|
},
|
||||||
|
|
||||||
// Get the authorship rank value, which includes xsd type
|
|
||||||
getRankStrVal: function(authorship) {
|
|
||||||
return $(authorship).data('rankVal');
|
|
||||||
},
|
|
||||||
|
|
||||||
// Get the authorship numeric rank
|
|
||||||
getRankIntVal: function(authorship) {
|
|
||||||
var rankVal = this.getRankStrVal(authorship);
|
|
||||||
return this.getRankIntValFromRankVal(rankVal);
|
|
||||||
},
|
|
||||||
|
|
||||||
getRankIntValFromRankVal: function(rankVal) {
|
|
||||||
return parseInt(rankVal.split('_')[0]);
|
|
||||||
},
|
|
||||||
|
|
||||||
setRank: function(authorship, rankVal) {
|
|
||||||
$(authorship).data('rankVal', rankVal);
|
|
||||||
},
|
|
||||||
|
|
||||||
makeRankDataPropVal: function(rank, xsdType) {
|
|
||||||
var rankVal = '"' + rank + '"';
|
|
||||||
if (xsdType) {
|
|
||||||
rankVal += '^^<' + xsdType + '>'
|
|
||||||
}
|
|
||||||
return rankVal;
|
|
||||||
},
|
|
||||||
|
|
||||||
findAuthorship: function(key, value) {
|
findAuthorship: function(key, value) {
|
||||||
var matchingAuthorship = $(); // if we don't find one, return an empty jQuery set
|
var matchingAuthorship = $(); // if we don't find one, return an empty jQuery set
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue