@@ -80,18 +80,23 @@ def process(args, session):
8080 # a list of resources to preserve
8181 node_list = {}
8282
83+ # get a list of Drupal Node IDs either from specified ID or via a list
8384 if args .force_single_node :
8485 node_list = drupalUtilities .id_list_from_arg (session , args )
85- logging .info (node_list )
86+ logging .info (f"AIP: Drupal node before media inclusion - { node_list } " )
87+ # inspect associated Drupal Media for changes
88+ # a Media change does not transitively update the associated Node change timestamp
89+ # if Media changed but not the associated Node then add associated Node ID to the list
90+ drupalUtilities .single_node_merge_with_media (session , args .server , node_list , args .force_single_node )
91+ logging .info (f"AIP: Drupal node with media changes - { node_list } " )
8692 else :
8793 # get a list of Drupal Node IDs changed since a given optional date
8894 # or a single node then force update
8995 node_list = drupalUtilities .id_list_from_nodes (session , args )
9096 logging .info (f"AIP: Drupal nodes before media inclusion - { node_list } " )
91-
92- # inspect Drupal Media for changes
93- # a Media change is does not transitively change the associated Node change timestamp)
94- # if Media changed then add associated Node ID to the list
97+ # inspect associated Drupal Media for changes
98+ # a Media change does not transitively update the associated Node change timestamp)
99+ # if Media changed but not the associated Node then add associated Node ID to the list
95100 drupalUtilities .id_list_merge_with_media (session , args , node_list )
96101 logging .info (f"AIP: Drupal nodes with media changes - { node_list } " )
97102
0 commit comments