Package gr.ekt.bte.core

Examples of gr.ekt.bte.core.RecordSet.addRecord()


            // There is no element to represent an record, so we can not process
            // multi records at once.
            Record record = CiNiiUtils.convertCiNiiDomToRecord(xmlRoot);
            if (record != null)
            {
                recordSet.addRecord(convertFields(record));
            }
        }
        catch (FileNotFoundException e)
        {
            log.error(e.getMessage(), e);
View Full Code Here


            {
                Record record = null;
                try
                {
                    record = PubmedUtils.convertPubmedDomToRecord(xmlArticle);
                    recordSet.addRecord(convertFields(record));
                }
                catch (Exception e)
                {
                    throw new RuntimeException(e.getMessage(), e);
                }
View Full Code Here

        RecordSet ret = new RecordSet();

        for (ItemSubmissionLookupDTO dto : dtoList)
        {
            Record rec = dto.getTotalPublication(providers);
            ret.addRecord(rec);
        }

        log.info("BTE DataLoader finished. Items loaded: "
                + ret.getRecords().size());
View Full Code Here

        if (results != null)
        {
            for (Record record : results)
            {
                recordSet.addRecord(record);
            }
        }

        return recordSet;
    }
View Full Code Here

            for (Element dataRoot : dataRoots)
            {
                Record record = ArxivUtils.convertArxixDomToRecord(dataRoot);
                if (record != null)
                {
                    recordSet.addRecord(convertFields(record));
                }
            }
        }
        catch (FileNotFoundException e)
        {
View Full Code Here

            Element xmlRoot = inDoc.getDocumentElement();
            Element queryResult = XMLUtils.getSingleElement(xmlRoot, "query_result");
            Element body        = XMLUtils.getSingleElement(queryResult, "body");
            Element dataRoot    = XMLUtils.getSingleElement(body, "query");
            Record record = CrossRefUtils.convertCrossRefDomToRecord(dataRoot);
            recordSet.addRecord(convertFields(record));

        }
        catch (FileNotFoundException e)
        {
            e.printStackTrace();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.