@@ -20,11 +20,25 @@ class FindDublicateFieldValues extends CustomMaskSplitter
20
20
newOnClick = (evt , button ) ->
21
21
# generate content for modal
22
22
searchResults = button .opts .searchResults
23
+ # if pool, show pool-path, else show objecttype
24
+ objecttype = searchResults[0 ]._objecttype
25
+ hasPool = false
26
+ if searchResults[0 ][objecttype]? ._pool ? ._path
27
+ hasPool = true
28
+ firstRowLabel = $$ (' fylr-plugin-find-duplicate-field-values.modal.open.pool' )
29
+ else
30
+ firstRowLabel = $$ (' fylr-plugin-find-duplicate-field-values.modal.open.objecttype' )
23
31
content = ' <table>'
24
- content += ' <tr><th>Objekttyp </th><th>ID</th><th>Kurzinfo </th><th>' + $$ (' fylr-plugin-find-duplicate-field-values.modal.open.link' ) + ' </th></tr>'
32
+ content += ' <tr><th>' + firstRowLabel + ' </th><th>ID</th><th>' + $$ ( ' fylr-plugin-find-duplicate-field-values.modal.open.shortinfo_standard ' ) + ' </th><th>' + $$ (' fylr-plugin-find-duplicate-field-values.modal.open.link' ) + ' </th></tr>'
25
33
for object in searchResults
26
34
content += ' <tr>'
27
- content += ' <td>' + object ._objecttype + ' </td>'
35
+ if hasPool == false
36
+ content += ' <td>' + object ._objecttype + ' </td>'
37
+ else
38
+ fullPath = []
39
+ for pathElem in object[objecttype]._pool ._path
40
+ fullPath .push pathElem .pool .name [ez5 .loca .getLanguage ()]
41
+ content += ' <td>' + fullPath .join (' > ' ) + ' </td>'
28
42
content += ' <td>' + object ._system_object_id + ' </td>'
29
43
content += ' <td>' + object ._standard [1 ].text [ez5 .loca .getLanguage ()] + ' </td>'
30
44
link = window .location .origin + ' /#/detail/' + object ._uuid
@@ -59,7 +73,7 @@ class FindDublicateFieldValues extends CustomMaskSplitter
59
73
type : " POST"
60
74
json_data :
61
75
limit : 100
62
- format : ' standard '
76
+ format : ' full '
63
77
generate_rights : false
64
78
objecttypes : [objecttype]
65
79
search : [
0 commit comments