@@ -57,46 +57,51 @@ export class DictionaryPickerComponent implements OnInit {
57
57
break ;
58
58
case 'dcmProperty' :
59
59
this . hideDots = true ;
60
+ const currentPropertiePosition = document . location . pathname . split ( "." ) . pop ( ) ; //Get the last string after the . from the current URL
60
61
const uiConfig = _ . get ( this . deviceConfiguratorService . device , "dcmDevice.dcmuiConfig[0]" ) ;
61
- const dropdown = [
62
- {
63
- key :"IID_PATIENT_URL=[VIEWER_URL]"
64
- } , {
65
- key :"IID_STUDY_URL=[VIEWER_URL]"
66
- } , {
67
- key :"IID_URL_TARGET=_self"
68
- } , {
69
- key :"IID_URL_TARGET=_blank"
70
- } , {
71
- key :"MWLAccessionNumberGenerator=[name-of-cd-import-acc-no-id-generator]"
72
- } , {
73
- key :"allow-any-hostname=true"
74
- } , {
75
- key :"disable-trust-manager=true"
76
- } , {
77
- key :"allow-any-hostname=true"
78
- } , {
79
- key :"disable-trust-manager=true"
80
- } , {
81
- key :"bearer-token=[bearer-token]"
82
- } , {
83
- key :"basic-auth=[basic-auth]"
84
- } , {
85
- key :"basic-auth=[basic-auth]"
86
- } , {
87
- key :"content-type=true"
88
- } , {
89
- key :"content-type=false"
90
- } , {
91
- key :"chunked=true"
92
- } , {
93
- key :"transfer-syntax=[transfer-syntax]"
94
- } , {
95
- key :"concurrency=[concurrency]"
96
- }
97
- ] ;
98
- this . dcmTags = dropdown ;
99
- this . dcmTagsFiltered = _ . clone ( dropdown ) ;
62
+ if ( currentPropertiePosition === "dcmWebApp" ) {
63
+ const dropdown = [
64
+ {
65
+ key :"IID_PATIENT_URL=[VIEWER_URL]"
66
+ } , {
67
+ key :"IID_STUDY_URL=[VIEWER_URL]"
68
+ } , {
69
+ key :"IID_URL_TARGET=_self"
70
+ } , {
71
+ key :"IID_URL_TARGET=_blank"
72
+ } , {
73
+ key :"MWLAccessionNumberGenerator=[name-of-cd-import-acc-no-id-generator]"
74
+ } , {
75
+ key :"allow-any-hostname=true"
76
+ } , {
77
+ key :"disable-trust-manager=true"
78
+ } , {
79
+ key :"allow-any-hostname=true"
80
+ } , {
81
+ key :"disable-trust-manager=true"
82
+ } , {
83
+ key :"bearer-token=[bearer-token]"
84
+ } , {
85
+ key :"basic-auth=[basic-auth]"
86
+ } , {
87
+ key :"basic-auth=[basic-auth]"
88
+ } , {
89
+ key :"content-type=true"
90
+ } , {
91
+ key :"content-type=false"
92
+ } , {
93
+ key :"chunked=true"
94
+ } , {
95
+ key :"transfer-syntax=[transfer-syntax]"
96
+ } , {
97
+ key :"concurrency=[concurrency]"
98
+ } , {
99
+ key :"WebAppDropdownLabel=[custom_label]"
100
+ }
101
+ ] ;
102
+ this . dcmTags = dropdown ;
103
+ this . dcmTagsFiltered = _ . clone ( dropdown ) ;
104
+ }
100
105
101
106
if ( _ . hasIn ( uiConfig , "dcmuiMWLWorklistLabel" ) && uiConfig . dcmuiMWLWorklistLabel . length > 0 ) {
102
107
uiConfig . dcmuiMWLWorklistLabel . forEach ( el => {
0 commit comments