NIHVIVO-803 Removed methods no longer needed after reimplementation of author reordering.

This commit is contained in:
rjy7 2010-08-24 17:05:31 +00:00
parent cc7d6c4e07
commit 62e166fd6f

View file

@ -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