Merge branch 'maint-rel-1.6' into develop
This commit is contained in:
commit
a5dc8287e5
2 changed files with 7 additions and 7 deletions
|
@ -148,7 +148,7 @@ var publicationToPersonUtils = {
|
||||||
this.hideAllFields();
|
this.hideAllFields();
|
||||||
var selectedType = this.typeSelector.find(':selected').text();
|
var selectedType = this.typeSelector.find(':selected').text();
|
||||||
|
|
||||||
if ( selectedType == 'Academic Article' || selectedType == 'Article' || selectedType == 'Editorial Article' || selectedType == 'Review') {
|
if ( selectedType == 'Academic Article' ) {
|
||||||
// if the user has changed type, keep any relevant values and display the
|
// if the user has changed type, keep any relevant values and display the
|
||||||
// acSelection as appropriate
|
// acSelection as appropriate
|
||||||
var ckForVal = this.getAcUriReceiverVal('collection');
|
var ckForVal = this.getAcUriReceiverVal('collection');
|
||||||
|
@ -273,10 +273,6 @@ var publicationToPersonUtils = {
|
||||||
else if ( selectedType == 'Conference Paper' ) {
|
else if ( selectedType == 'Conference Paper' ) {
|
||||||
// if the user has changed type, keep any relevant values and display the
|
// if the user has changed type, keep any relevant values and display the
|
||||||
// acSelection as appropriate
|
// acSelection as appropriate
|
||||||
var ckForVal = this.getAcUriReceiverVal('collection');
|
|
||||||
if ( ckForVal == '' || ckForVal == this.sentinel ) {
|
|
||||||
this.collection.parent('p').show();
|
|
||||||
}
|
|
||||||
ckForVal = this.getAcUriReceiverVal('conference');
|
ckForVal = this.getAcUriReceiverVal('conference');
|
||||||
if ( ckForVal == '' || ckForVal == this.sentinel ) {
|
if ( ckForVal == '' || ckForVal == this.sentinel ) {
|
||||||
this.presentedAt.parent('p').show();
|
this.presentedAt.parent('p').show();
|
||||||
|
@ -287,6 +283,10 @@ var publicationToPersonUtils = {
|
||||||
|
|
||||||
// if the user is changing type, ensure that irrelevant fields are cleared
|
// if the user is changing type, ensure that irrelevant fields are cleared
|
||||||
// and reset an acSelection divs
|
// and reset an acSelection divs
|
||||||
|
if ( this.collection.val() != '' && this.collection.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||||
|
this.collection.val('');
|
||||||
|
this.resetAcSelection('collection');
|
||||||
|
}
|
||||||
if ( this.book.val() != '' && this.book.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
if ( this.book.val() != '' && this.book.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||||
this.book.val('');
|
this.book.val('');
|
||||||
this.resetAcSelection('book');
|
this.resetAcSelection('book');
|
||||||
|
|
|
@ -44,7 +44,7 @@ import edu.cornell.mannlib.vitro.webapp.utils.generators.EditModeUtils;
|
||||||
*/
|
*/
|
||||||
public class AddPublicationToPersonGenerator extends VivoBaseGenerator implements EditConfigurationGenerator {
|
public class AddPublicationToPersonGenerator extends VivoBaseGenerator implements EditConfigurationGenerator {
|
||||||
|
|
||||||
final static String collectionClass = bibo + "Periodical";
|
final static String collectionClass = bibo + "Journal";
|
||||||
final static String bookClass = bibo + "Book";
|
final static String bookClass = bibo + "Book";
|
||||||
final static String documentClass = "http://purl.obolibrary.org/obo/IAO_0000030";
|
final static String documentClass = "http://purl.obolibrary.org/obo/IAO_0000030";
|
||||||
final static String conferenceClass = bibo + "Conference";
|
final static String conferenceClass = bibo + "Conference";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue