370 item = item_metadata.item |
370 item = item_metadata.item |
371 |
371 |
372 item.folders.add(folder) |
372 item.folders.add(folder) |
373 |
373 |
374 else: |
374 else: |
|
375 new_metadata = { |
|
376 "authors" : item_authors, |
|
377 "school" : item_school, |
|
378 "designation" : item_designation, |
|
379 "field" : item_field, |
|
380 "datation" : item_datation, |
|
381 "technics" : item_technics, |
|
382 "measurements" : item_measurements, |
|
383 "create_or_usage_location" : item_create_or_usage_location, |
|
384 "discovery_context" : item_discovery_context, |
|
385 "conservation_location" : item_conservation_location, |
|
386 "photo_credits" : item_photo_credits, |
|
387 "inventory_number" : item_inventory_number, |
|
388 "joconde_ref" : item_joconde_ref |
|
389 } |
375 self.create_item_and_metadata( |
390 self.create_item_and_metadata( |
376 item_joconde_ref, collection, new_metadata, item['SRC_IMG_FILES'], options, self.source_dir, self.target_dir) |
391 item_joconde_ref, collection, new_metadata, item['SRC_IMG_FILES'], options, self.source_dir, self.target_dir) |
377 |
392 |
378 print('# All done!') |
393 print('# All done!') |
379 |
394 |