diff --git a/src/components/panels/edit/modals/SubjectEditor.vue b/src/components/panels/edit/modals/SubjectEditor.vue index 21e14836..802c7ce9 100644 --- a/src/components/panels/edit/modals/SubjectEditor.vue +++ b/src/components/panels/edit/modals/SubjectEditor.vue @@ -134,7 +134,12 @@
Retrieving data...
+ +
+ + +
@@ -1490,7 +1502,7 @@ methods: { this.contextRequestInProgress = true this.contextData = await utilsNetwork.returnContext(this.pickLookup[this.pickPostion].uri) - + // for backwards compability if (this.contextData.nodeMap.marcKey && this.contextData.nodeMap.marcKey[0]){ this.pickLookup[this.pickPostion].marcKey = this.contextData.nodeMap.marcKey[0] @@ -1499,11 +1511,11 @@ methods: { // we will modify our local context data here to make things easier if (Array.isArray(this.contextData.title)){ // first grab the non-latin auth labels - this.contextData.nonLatinTitle = JSON.parse(JSON.stringify(this.contextData.title.filter((v)=>{ return (v['@language']) }))) + this.contextData.nonLatinTitle = JSON.parse(JSON.stringify(this.contextData.title.filter((v)=>{ return (v['@language'] != "en" ? v['@language'] : "") }))) this.pickLookup[this.pickPostion].nonLatinTitle = this.contextData.nonLatinTitle // return the first label with no language tag - this.contextData.title = this.contextData.title.filter((v)=>{ return (!v['@language']) })[0] + this.contextData.title = this.contextData.title.filter((v)=>{ return (v['@language'] == "en" || !v['@language']) })[0] if (this.contextData.title && this.contextData.title['@value']){ this.contextData.title = this.contextData.title['@value'] } diff --git a/src/lib/utils_network.js b/src/lib/utils_network.js index 5d04abf2..2423de81 100644 --- a/src/lib/utils_network.js +++ b/src/lib/utils_network.js @@ -1039,7 +1039,6 @@ const utilsNetwork = { data.forEach((n)=>{ - var citation = ''; var variant = ''; // var seeAlso = ''; @@ -1151,7 +1150,7 @@ const utilsNetwork = { delete results.nodeMap[k] } }) - + return results; }, @@ -2663,16 +2662,12 @@ const utilsNetwork = { * @return {array} - results from API */ searchShelfList: async function(search, details, dir){ - console.info("search: ", search) if (!dir){ dir ='ascending' } let urlSearch = "lds/browse.xqy?bq=" + search +"&browse-order=" + dir + "&browse=class" + details + "&mime=json" - console.info("url: ", useConfigStore().returnUrls.shelfListing + urlSearch) - - // try{ //let req = await fetch(useConfigStore().returnUrls.shelfListing + `browse/class/${dir}/${search}.json` ) let req = await fetch(useConfigStore().returnUrls.shelfListing + urlSearch )