From f8208c23156a53d5d67d486333e84b1148409d8d Mon Sep 17 00:00:00 2001 From: Patrick Tang Date: Sun, 23 Jun 2024 00:39:05 -0700 Subject: [PATCH] fix --- .../src/main/webapp/js/backbone/views/view_sidebar.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/step-web/src/main/webapp/js/backbone/views/view_sidebar.js b/step-web/src/main/webapp/js/backbone/views/view_sidebar.js index c7fbc7dee0..47f4224259 100644 --- a/step-web/src/main/webapp/js/backbone/views/view_sidebar.js +++ b/step-web/src/main/webapp/js/backbone/views/view_sidebar.js @@ -58,14 +58,17 @@ var SidebarView = Backbone.View.extend({ this.lexicon.addClass("active"); //load content lastMorphCode = ''; - var curMorphs = step.util.convertMorphOSHM2TOS( this.model.get("morph") ); + var strong = this.model.get("strong"); + var currentMorph = this.model.get("morph"); + if ((strong.substring(0,1) === "H") && (typeof currentMorph === "string") && (currentMorph.substring(0,4) !== "TOS:")) + currentMorph = "TOS:" + currentMorph; + var curMorphs = step.util.convertMorphOSHM2TOS( currentMorph ); if (curMorphs != undefined) lastMorphCode = curMorphs; var morphCount = this.model.get("morphCount"); var ref = this.model.get("ref"); var version = this.model.get("version"); var allVersions = this.model.get("allVersions"); - var strong = this.model.get("strong"); var variant = this.model.get("variant") || ""; variant = variant.split(";"); if (typeof allVersions !== "string") { @@ -80,7 +83,7 @@ var SidebarView = Backbone.View.extend({ } if ((typeof version === "undefined") && (typeof ref === "undefined") && - (typeof morph === "undefined") && + (typeof currentMorph === "undefined") && (strong === "H0001")) { console.log("MODULE_GET_INFO undefined H0001"); return;