-export const COLLECTION_TAG_FORM_NAME = 'collectionTagForm';
-
-export const loadCollectionPanel = (uuid: string) =>
- async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
- dispatch(collectionPanelActions.LOAD_COLLECTION({ uuid }));
- dispatch(collectionPanelFilesAction.SET_COLLECTION_FILES({ files: createTree() }));
- const collection = await services.collectionService.get(uuid);
- const collectionsByPDH = await services.collectionService.list({
- filters: new FilterBuilder()
- .addEqual('portableDataHash', collection.portableDataHash)
- .getFilters()
- });
- dispatch(collectionPanelActions.SET_NUMBER_OF_COLLECTIONS_WITH_SAME_PDH(collectionsByPDH.itemsAvailable));
- dispatch(loadDetailsPanel(collection.uuid));
- dispatch(collectionPanelActions.LOAD_COLLECTION_SUCCESS({ item: collection }));
- dispatch(resourcesActions.SET_RESOURCES([collection]));
- dispatch<any>(loadCollectionFiles(collection.uuid));
- return collection;
- };
-
-export const createCollectionTag = (data: TagProperty) =>