You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`subject`.`name`as`subject`,-- subjects are from curated list
14
+
tags.tags,-- authors can add any tags they like
15
+
--`owner`.os2loop_shared_owner_value as `owner`, -- should not be exported, can be found by url reference if end user have a need and has access rights
-- the table os2loop_documents_collection_item associate document collections (their nid on collection_id)
23
-
-- to documents (document_id = nid) except for 20 document collections. Fx case /rammedelegation nid=3807 it is a collection of
24
-
-- links to sharepoint docs and /medicinhaandtering nid=3827 is a link to the collection
23
+
-- to documents (document_id = nid) except for 20 document collections. Fx case /rammedelegation nid=3807 it is a collection of
24
+
-- links to sharepoint docs and /medicinhaandtering nid=3827 is a link to the collection
25
25
-- /instruks-korrekt-haandtering-af-medicin-i-sundhed-og-omsorg-mso nid 4188
26
26
-- of 805 documents 164 documents are not assigned to a document_collection
27
+
and status =1
27
28
) as n_fd
28
29
left join path_alias as pa on CONCAT('/node/',n_fd.nid) =pa.path
29
30
left join (
30
-
SELECT
31
+
SELECT
31
32
doc_col_itm.collection_id,
32
33
json_arrayagg(doc_col_itm.document_id) as document_node_ids,
33
34
json_arrayagg(pa.`alias`) as document_relative_urls
@@ -38,26 +39,26 @@ left join (
38
39
left join node__os2loop_documents_dc_content as docscol_content onn_fd.nid=docscol_content.entity_id-- contains only records from bundle documents_collection (all delta 0, so top placement)
39
40
left join (
40
41
SELECT
41
-
entity_id,
42
-
os2loop_documents_info_box_value
43
-
FROM node__os2loop_documents_info_box
42
+
entity_id,
43
+
os2loop_documents_info_box_value
44
+
FROM node__os2loop_documents_info_box
44
45
WHERE bundle ='os2loop_documents_collection') as docs_ib onn_fd.nid=docs_ib.entity_id-- only from bundle document_collection
45
46
left join node__os2loop_shared_approval_date as approval_date onn_fd.nid=approval_date.entity_id
46
47
left join (
47
-
SELECT
48
-
n_ss.entity_id,
49
-
subject_tt_fd.name
50
-
FROM node__os2loop_shared_subject as n_ss
51
-
left join taxonomy_term_field_data as subject_tt_fd onn_ss.os2loop_shared_subject_target_id=subject_tt_fd.tid
0 commit comments