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

fixed script error when hitting the insert button #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions OntologySearch.gs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ function searchOLS(term) {
ontologyDict[ontologyLabel] = {"ontology-name": elem.ontology_name, "terms": []};
record = {
label: elem.label,
id: elem.id,
id: elem.short_form,
'ontology-label': elem.ontology_prefix,
'ontology-name': elem.ontology_name,
accession: elem.iri,//elem.obo_id,
Expand Down Expand Up @@ -293,7 +293,7 @@ function handleTermInsertion(term_id) {
// figure out whether the Term Source REF and Term Accession Number columns exist, if they do exist at all. Insertion technique will vary
// depending on the file being looked at.
var sourceAndAccessionPositions = getSourceAndAccessionPositionsForTerm(selectedRange.getColumn());

// add all terms into a separate sheet with all their information.
if (sourceAndAccessionPositions.sourceRef != undefined && sourceAndAccessionPositions.accession != undefined) {
insertOntologySourceInformationInInvestigationBlock(ontologyObject);
Expand Down
2 changes: 1 addition & 1 deletion Utils.gs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@


// constants
var OLS_API_BASE_URI = "http://www.ebi.ac.uk/ols/api";
var OLS_API_BASE_URI = "http://www.ebi.ac.uk/ols4/api";
var OLS_PAGINATION_SIZE = 500; // MAX pagination size

/**
Expand Down