Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made modifications to publicationToPersonUtils.js so that multilangua… #170

Merged
merged 2 commits into from
May 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ var publicationToPersonUtils = {
// hide everything, then show what's needed based on type
// simpler in the event the user changes the type
this.hideAllFields();
var selectedType = this.typeSelector.find(':selected').text();
var selectedType = this.typeSelector.find(':selected').val();

if ( selectedType == 'Academic Article' ) {
if ( selectedType == 'http://purl.org/ontology/bibo/AcademicArticle' ) {
// if the user has changed type, keep any relevant values and display the
// acSelection as appropriate
var ckForVal = this.getAcUriReceiverVal('collection');
Expand Down Expand Up @@ -189,7 +189,7 @@ var publicationToPersonUtils = {
this.number.val('');
this.chapterNbr.val('');
}
else if ( selectedType == 'Chapter' ) {
else if ( selectedType == 'http://purl.org/ontology/bibo/Chapter' ) {
// if the user has changed type, keep any relevant values and display the
// acSelection as appropriate
var ckForVal = this.getAcUriReceiverVal('book');
Expand Down Expand Up @@ -233,7 +233,7 @@ var publicationToPersonUtils = {
this.startPage.val('');
this.endPage.val('');
}
else if ( selectedType == 'Book' || selectedType == 'Edited Book' ) {
else if ( selectedType == 'http://purl.org/ontology/bibo/Book' || selectedType == 'http://purl.org/ontology/bibo/EditedBook' ) {
// if the user has changed type, keep any relevant values and display the
// acSelection as appropriate
var ckForVal = this.getAcUriReceiverVal('editor');
Expand Down Expand Up @@ -270,7 +270,7 @@ var publicationToPersonUtils = {
this.endPage.val('');
this.chapterNbr.val('');
}
else if ( selectedType == 'Conference Paper' ) {
else if ( selectedType == 'http://vivoweb.org/ontology/core#ConferencePaper' ) {
// if the user has changed type, keep any relevant values and display the
// acSelection as appropriate
ckForVal = this.getAcUriReceiverVal('conference');
Expand Down Expand Up @@ -310,7 +310,7 @@ var publicationToPersonUtils = {
this.endPage.val('');
this.chapterNbr.val('');
}
else if ( selectedType == 'Conference Poster' || selectedType == 'Speech') {
else if ( selectedType == 'http://vivoweb.org/ontology/core#ConferencePoster' || selectedType == 'http://vivoweb.org/ontology/core#Speech') {
// if the user has changed type, keep any relevant values and display the
// acSelection as appropriate
var ckForVal = this.getAcUriReceiverVal('conference');
Expand Down