Merge branch 'release/5.36.0'
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / media / MetaDataMapping.java
1 // $Id$
2 /**
3 * Copyright (C) 2023 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10 package eu.etaxonomy.cdm.api.service.media;
11
12 import eu.etaxonomy.cdm.model.metadata.IKeyLabel;
13
14 /**
15 * @author kluther
16 * @date 10.02.2023
17 *
18 */
19 public enum MetaDataMapping implements IKeyLabel{
20 //if Credit and Artist is filled the values would be added comma separated, we need to decide which should be used.
21 Credit("Credit ", "Photographer"),
22 Taxon("Title", "Taxon"),
23 Headline("Headline","Taxon"),
24 Sublocation("Sublocation", "Locality"),
25 OriginialTransmissionReference("Original Transmission, Reference", "Original Transmission Reference"),
26 Artist("Artist", "Photographer")
27 ;
28
29
30
31 private String label;
32 private String key;
33
34 private MetaDataMapping(String key, String label) {
35 this.key = key;
36 this.label = label;
37 }
38
39 @Override
40 public String getLabel() {
41 return label;
42 }
43
44 @Override
45 public String getKey() {
46 return key;
47 }
48
49
50
51
52
53 }