Lines 11-37
export const useAVStore = defineStore("authorised_values", {
Link Here
|
11 |
av_agreement_license_statuses: [], |
11 |
av_agreement_license_statuses: [], |
12 |
av_agreement_license_location: [], |
12 |
av_agreement_license_location: [], |
13 |
av_agreement_relationships: [ |
13 |
av_agreement_relationships: [ |
14 |
{ authorised_value: "supersedes", lib: __("supersedes") }, |
14 |
{ value: "supersedes", description: __("supersedes") }, |
15 |
{ authorised_value: "is-superseded-by", lib: __("is superseded by") }, |
15 |
{ value: "is-superseded-by", description: __("is superseded by") }, |
16 |
{ |
16 |
{ |
17 |
authorised_value: "provides_post-cancellation_access_for", |
17 |
value: "provides_post-cancellation_access_for", |
18 |
lib: __("provides post-cancellation access for"), |
18 |
description: __("provides post-cancellation access for"), |
19 |
}, |
19 |
}, |
20 |
{ |
20 |
{ |
21 |
authorised_value: "has-post-cancellation-access-in", |
21 |
value: "has-post-cancellation-access-in", |
22 |
lib: __("has post-cancellation access in"), |
22 |
description: __("has post-cancellation access in"), |
23 |
}, |
23 |
}, |
24 |
{ |
24 |
{ |
25 |
authorised_value: "tracks_demand-driven_acquisitions_for", |
25 |
value: "tracks_demand-driven_acquisitions_for", |
26 |
lib: __("tracks demand-driven acquisitions for"), |
26 |
description: __("tracks demand-driven acquisitions for"), |
27 |
}, |
27 |
}, |
28 |
{ |
28 |
{ |
29 |
authorised_value: "has-demand-driven-acquisitions-in", |
29 |
value: "has-demand-driven-acquisitions-in", |
30 |
lib: __("has demand-driven acquisitions in"), |
30 |
description: __("has demand-driven acquisitions in"), |
31 |
}, |
31 |
}, |
32 |
{ authorised_value: "has_backfile_in", lib: __("has backfile in") }, |
32 |
{ value: "has_backfile_in", description: __("has backfile in") }, |
33 |
{ authorised_value: "has_frontfile_in", lib: __("has frontfile in") }, |
33 |
{ value: "has_frontfile_in", description: __("has frontfile in") }, |
34 |
{ authorised_value: "related_to", lib: __("related to") }, |
34 |
{ value: "related_to", description: __("related to") }, |
35 |
], |
35 |
], |
36 |
av_package_types: [], |
36 |
av_package_types: [], |
37 |
av_package_content_types: [], |
37 |
av_package_content_types: [], |
Lines 47-59
export const useAVStore = defineStore("authorised_values", {
Link Here
|
47 |
); |
47 |
); |
48 |
return; |
48 |
return; |
49 |
} |
49 |
} |
50 |
let o = this[arr_name].find((e) => e.authorised_value == av); |
50 |
let o = this[arr_name].find((e) => e.value == av); |
51 |
return o ? o.lib : av; |
51 |
return o ? o.description : av; |
52 |
}, |
52 |
}, |
53 |
map_av_dt_filter(arr_name) { |
53 |
map_av_dt_filter(arr_name) { |
54 |
return this[arr_name].map((e) => { |
54 |
return this[arr_name].map((e) => { |
55 |
e["_id"] = e["authorised_value"]; |
55 |
e["_id"] = e["value"]; |
56 |
e["_str"] = e["lib"]; |
56 |
e["_str"] = e["description"]; |
57 |
return e; |
57 |
return e; |
58 |
}); |
58 |
}); |
59 |
}, |
59 |
}, |