本文整理了Java中pl.edu.icm.model.bwmeta.YElement.getContributors()
方法的一些代码示例,展示了YElement.getContributors()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YElement.getContributors()
方法的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.YElement
类名称:YElement
方法名:getContributors
暂无
代码示例来源:origin: pl.edu.icm.polindex/polindex-core
private List<YContributor> getContributors(YElement element) {
List<YContributor> result = Lists.newArrayList();
if (element.getContributors() != null) {
for (YContributor contributor : element.getContributors()) {
if (contributor.isInstitution()) {
continue;
}
result.add(contributor);
}
}
return result;
}
代码示例来源:origin: pl.edu.icm.synat/synat-content-impl
private boolean isYElementPutable(final YElement yElement) {
final List<YContributor> authorNodeList = yElement.getContributors();
for (int i = 0; i < authorNodeList.size(); i++) {
final YContributor currentNode = authorNodeList.get(i);
if (currentNode != null && currentNode.isPerson() && AUTHOR.equals(currentNode.getRole())) {
return true;
}
}
return false;
}
代码示例来源:origin: pl.edu.icm.polindex/polindex-core
public YElement convert(YElement yElement, String collection) {
//normalizacja kontrybutorów
if (yElement.getContributors() != null) {
Iterator<YContributor> contributors = yElement.getContributors().iterator();
while (contributors.hasNext()) {
YContributor contributor = contributors.next();
fixContributor(contributor);
if (isEmpty(contributor)) {
logger.warn("Bwmeta warning: empty contributor skipped in article "+yElement.getId());
contributors.remove();
}
}
}
normalizeReferences(yElement);
if (isBazhumCollection(collection)) {
normalizeBazhumArticle(yElement);
}
return yElement;
}
代码示例来源:origin: pl.edu.icm.polindex/polindex-core
Journal convert(YElement yJournal) {
Preconditions.checkArgument(yJournal.getStructure(EXT_HIERARCHY_JOURNAL)!= null);
Preconditions.checkArgument(yJournal.getStructure(EXT_HIERARCHY_JOURNAL).getCurrent().getLevel().equals(EXT_LEVEL_JOURNAL_JOURNAL));
Journal result = new Journal(yJournal.getId());
setTitleAndIssns(yJournal, result);
result.setPbnId(yJournal.getId(IdSchemes.PBN_ID));
//publisher
if (yJournal.getContributors() != null) {
for (YContributor contrib : yJournal.getContributors()) {
if (CR_PUBLISHER.equals(contrib.getRole())) {
result.setPublisherName(BWMetaUtil.getCanonicalName(contrib));
}
}
}
// approved flag
String attribute = getAttribute(PciBwmetaConstants.ATTR_APPROVED, yJournal);
if (StringUtils.isNotEmpty(attribute)) {
result.setApproved(Boolean.parseBoolean(attribute));
}
return result;
}
内容来源于网络,如有侵权,请联系作者删除!