diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/BaseResource.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/BaseResource.vue
index f298bc1daf..72ef9aff71 100644
--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/BaseResource.vue
+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/BaseResource.vue
@@ -137,6 +137,26 @@ export default {
attr => attr.show_in_table
);
},
+ assignAVs(attrs) {
+ attrs.forEach(attr => {
+ if (attr.type === "select" && typeof attr.av_cat === "string") {
+ const av_key = attr.av_cat;
+ attr.options = this[av_key];
+ attr.requiredKey = "value";
+ attr.selectLabel = "description";
+ }
+ if (attr.type == "relationship" && attr.props) {
+ Object.keys(attr.props).forEach(key => {
+ if (attr.props[key].type == "av") {
+ attr.props[key].av = this[key];
+ }
+ });
+ }
+ if (attr.subFields?.length) {
+ this.assignAVs(attr.subFields);
+ }
+ });
+ },
},
name: "BaseResource",
props: {
diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/DocumentSelect.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/DocumentSelect.vue
new file mode 100644
index 0000000000..68f5041cb1
--- /dev/null
+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/DocumentSelect.vue
@@ -0,0 +1,76 @@
+
+
+
+