Project

General

Profile

« Previous | Next » 

Revision 55622

adding zenodo main community in the inverse map for the corrispondence zenodo community-openaire community

View differences:

modules/dnet-openaire-exporter/trunk/src/main/java/eu/dnetlib/openaire/community/CommunityClientImpl.java
40 40
                    if(!inverseListMap.containsKey(zenodoId)) {
41 41
                        inverseListMap.put(zc.getZenodoid(),new HashSet<>());
42 42
                    }
43
                    inverseListMap.get(zc.getZenodoid()).add(cs.getId());
43
                    inverseListMap.get(zc.getZenodoid()).add(communityId);
44 44
                }
45
                final String zenodoMainCommunity = communityCommon.getCommunity(communityId).getZenodoCommunity();
46
                if(!inverseListMap.containsKey(zenodoMainCommunity)) {
47
                    inverseListMap.put(zenodoMainCommunity,new HashSet<>());
48
                }
45 49

  
50
                inverseListMap.get(zenodoMainCommunity).add(communityId);
51

  
46 52
            }
47 53
        } catch (CommunityException e) {
48 54
            e.printStackTrace();

Also available in: Unified diff