Store metadata edition into local database.
Process to retrieve metadata :
- Look into remote database
- If ok, look into local database
- If ok, merge data into local database, update remote if needed and return it
- If not, look into card IPTC
- If ok, merge, store into local database, update remote if needed and return data
- If not, store into local database and return data
- If not, look into local database
- If ok, update remote if neededand return it.
- If not, look into IPTC
- If ok, update local and remote database if needed and return data.
- If not, return empty metadata.
Process to edit metadata :
- Retrieve metadata
- Edit them
- Store result into local database.
- If needed, update remote database.
Process of card creation :
- Create card
- Edit metadata from scratch
- Store metadata into IPTC
- Save the file
- Store metadata into local database
- Upload image and metadata to remote database if needed.