diff --git a/src/components/panels/edit/modals/HubStubCreateModal.vue b/src/components/panels/edit/modals/HubStubCreateModal.vue index 42eb14fd..94c72f88 100644 --- a/src/components/panels/edit/modals/HubStubCreateModal.vue +++ b/src/components/panels/edit/modals/HubStubCreateModal.vue @@ -196,6 +196,8 @@ this.profileStore.setValueComplex(this.activeHubStubComponent.guid, null, this.activeHubStubComponent.propertyPath, results.postLocation, this.hubTitle, null, {}, null) this.newHubUrl=results.postLocation + + this.postStatus='posted' }else{ @@ -291,8 +293,7 @@ :sticks="['br']" :stickSize="22" > -
- +
@@ -343,7 +344,10 @@
The Hub was created! If you would like to edit it further please click the link, it will open in new tab:
-
{{ newHubUrl }}
+
+
NOT IN PRODUCTION, THE URI BELOW WILL NEED TO BE ADJUSTED TO WORK WITH STAGING PORT
+ {{ newHubUrl }} +
diff --git a/src/stores/profile.js b/src/stores/profile.js index 7991823d..a000da92 100644 --- a/src/stores/profile.js +++ b/src/stores/profile.js @@ -2282,8 +2282,14 @@ export const useProfileStore = defineStore('profile', { if (!type && URI && !lastProperty.includes("intendedAudience")){ // I regretfully inform you we will need to look this up - let context = await utilsNetwork.returnContext(URI) - type = context.typeFull + if (URI.indexOf('id.loc.gov/resources/hubs/') > -1){ + type = 'http://id.loc.gov/ontologies/bibframe/Hub' + } else{ + let context = await utilsNetwork.returnContext(URI) + type = context.typeFull + } + + } // literals don't have a type or a URI & intendedAudience has extra considerations @@ -4889,7 +4895,7 @@ export const useProfileStore = defineStore('profile', { pubResuts.postLocation = hubUri } - // pubResuts = {'postLocation': 'https://id.loc.gov/resources/hubs/a07eefde-6522-9b99-e760-5c92f7d396eb'} + // pubResuts = {'postLocation': 'https://id.loc.gov/resources/hubs/a07eefde-6522-9b99-xxxx-5c92f7d396eb'} return pubResuts