Revision 55482
Added by Alessia Bardi almost 5 years ago
modules/dnet-parthenos-publisher/trunk/src/main/java/eu/dnetlib/parthenos/catalogue/CatalogueLicense.java | ||
---|---|---|
31 | 31 |
public static CatalogueLicense getCatalogueLicenseFor(final String license){ |
32 | 32 |
//TODO: get the best from the data we have, if we are able to clean the string, this method wil be much simpler... |
33 | 33 |
if(StringUtils.isBlank(license)) return NotSpecified; |
34 |
if(license.equalsIgnoreCase("CC") || license.equalsIgnoreCase("Free/ CC")) return CC0; |
|
34 |
if(license.equalsIgnoreCase("CC") || license.equalsIgnoreCase("Free/ CC") || license.equalsIgnoreCase("Creative Commons CC0 1.0 Universal Public Domain Dedication")) return CC0;
|
|
35 | 35 |
if(license.equalsIgnoreCase("CC-BY") || license.equalsIgnoreCase("CC BY")) return CCBY; |
36 | 36 |
if(license.equalsIgnoreCase("CC-BY-SA") || license.equalsIgnoreCase("Attribute-share-alike (CC-BY-SA) license") || license.equalsIgnoreCase("CC BY-SA")) return CCBYSA; |
37 | 37 |
if(license.equalsIgnoreCase("CC-BY-SA-NC") || license.equalsIgnoreCase("Creative Commons BY-NC-SA")) return CCBYNCSA; |
Also available in: Unified diff
New synonym for CC0