Revision 4c575756
Added by Andreas Müller over 4 years ago
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/ErmsLinkImport.java | ||
---|---|---|
80 | 80 |
mapping.addMapper(DbIgnoreMapper.NewInstance("link_fn", "Seems to be an internal VLIZ file name. Not used in SQL script ")); |
81 | 81 |
mapping.addMapper(DbIgnoreMapper.NewInstance("link_thumbnail", "Some data (>1000) but not used in SQL script.")); |
82 | 82 |
mapping.addMapper(DbIgnoreMapper.NewInstance("link_qualitystatus_id", "Not used in SQL script.")); |
83 |
mapping.addMapper(DbIgnoreMapper.NewInstance("link_order", "Not used in SQL script. Until 2019 only 'null' and '0' existed."));
|
|
83 |
mapping.addMapper(DbIgnoreMapper.NewInstance("link_order", "Not used in SQL script. Did not exist in versions prior to 2018"));
|
|
84 | 84 |
} |
85 | 85 |
return mapping; |
86 | 86 |
} |
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/ErmsReferenceImport.java | ||
---|---|---|
95 | 95 |
|
96 | 96 |
//not yet implemented |
97 | 97 |
|
98 |
mapping.addMapper(DbIgnoreMapper.NewInstance("source_type", "Handled by ObjectCreateMapper - but mapping not yet fully correct. See comments there."));
|
|
98 |
mapping.addMapper(DbIgnoreMapper.NewInstance("source_type", "Handled by ObjectCreateMapper")); |
|
99 | 99 |
mapping.addMapper(DbIgnoreMapper.NewInstance("source_orig_fn", "Currently not needed. Holds information about pdf files.")); |
100 | 100 |
mapping.addMapper(DbIgnoreMapper.NewInstance("source_openaccess", "Currently not needed. Holds information about open access of the source.")); |
101 | 101 |
|
... | ... | |
105 | 105 |
|
106 | 106 |
@Override |
107 | 107 |
public Reference createObject(ResultSet rs, ErmsImportState state) throws SQLException { |
108 |
// int id = rs.getInt("id"); |
|
109 | 108 |
String type = rs.getString("source_type"); |
110 | 109 |
Reference ref; |
111 | 110 |
if (type.equalsIgnoreCase("p")){ |
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiAdditionalSourceExport.java | ||
---|---|---|
32 | 32 |
/** |
33 | 33 |
* The export class for PESI additional sources stored as taxon sources in the CDM (mostly coming from ERMS)<p> |
34 | 34 |
* @author a.mueller |
35 |
* @since 22.09.2019
|
|
35 |
* @since 2019-09-22
|
|
36 | 36 |
*/ |
37 | 37 |
@Component |
38 | 38 |
public class PesiAdditionalSourceExport extends PesiExportBase { |
... | ... | |
144 | 144 |
} |
145 | 145 |
} |
146 | 146 |
|
147 |
|
|
148 | 147 |
// Commit transaction |
149 | 148 |
commitTransaction(txStatus); |
150 | 149 |
logger.debug("Committed transaction."); |
Also available in: Unified diff
ref #1444 minor changes and cleanup