Package gr.ekt.bte.core

Examples of gr.ekt.bte.core.Record


        List<String> ids = getCiNiiIDs(title, author, year, maxResults, appId);
        if (ids != null && ids.size() > 0)
        {
            for (String id : ids)
            {
                Record record = search(id, appId);
                if (record != null)
                {
                    records.add(record);
                }
            }
View Full Code Here


            Element xmlRoot = inDoc.getDocumentElement();

            // 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));
            }
        }
View Full Code Here

            List<Element> pubArticles = XMLUtils.getElementList(xmlRoot,
                    "PubmedArticle");

            for (Element xmlArticle : pubArticles)
            {
                Record record = null;
                try
                {
                    record = PubmedUtils.convertPubmedDomToRecord(xmlArticle);
                    recordSet.addRecord(convertFields(record));
                }
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 (pmids != null && pmids.size() > 0
                && (dois == null || dois.size() == 0))
        {
            for (String pmid : pmids)
            {
                Record p = null;
                try
                {
                    p = pubmedService.getByPubmedID(pmid);
                }
                catch (Exception e)
View Full Code Here

        List<Element> pubArticles = XMLUtils.getElementList(xmlRoot,
            "PubmedArticle");

        for (Element xmlArticle : pubArticles)
        {
          Record pubmedItem = null;
          try
          {
            pubmedItem = PubmedUtils
                .convertPubmedDomToRecord(xmlArticle);
            results.add(pubmedItem);
View Full Code Here

                  {
                    throw new RuntimeException("Http call failed: "
                        + statusLine);
                  }

                  Record crossitem;
                  try
                  {
                    DocumentBuilderFactory factory = DocumentBuilderFactory
                        .newInstance();
                    factory.setValidating(false);
View Full Code Here

            Set<String> ciniiids = keys.get(CINII);
            if (ciniiids != null && ciniiids.size() > 0)
            {
                for (String ciniiid : ciniiids)
                {
                    Record record = ciniiService.getByCiNiiID(ciniiid, getAppId());
                    if (record != null)
                    {
                        results.add(convertFields(record));
                    }
                }
View Full Code Here

          List<Element> dataRoots = XMLUtils.getElementList(xmlRoot,
              "entry");

          for (Element dataRoot : dataRoots)
          {
            Record crossitem = ArxivUtils
                .convertArxixDomToRecord(dataRoot);
            if (crossitem != null)
            {
              results.add(crossitem);
            }
View Full Code Here

            Element xmlRoot = inDoc.getDocumentElement();
            List<Element> dataRoots = XMLUtils.getElementList(xmlRoot, "entry");

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

TOP

Related Classes of gr.ekt.bte.core.Record

Copyright © 2018 www.massapicom. 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.