Examples of HarvestedItemInfo


Examples of org.dspace.search.HarvestedItemInfo

                            c.getMetadata("name")).append(": ").append(
                            itemInfos.size()).append("\n\n");
   
                    for (int j = 0; j < itemInfos.size(); j++)
                    {
                        HarvestedItemInfo hii = (HarvestedItemInfo) itemInfos
                                .get(j);
   
                        DCValue[] titles = hii.item.getDC("title", null, Item.ANY);
                        emailText.append("      ").append(labels.getString("org.dspace.eperson.Subscribe.title")).append(" ");
   
View Full Code Here

Examples of org.dspace.search.HarvestedItemInfo

                - (24 * 60 * 60 * 1000));
        String yesterday = sdf.format(thisTimeYesterday);

        for (Iterator iter = completeList.iterator(); iter.hasNext();)
        {
            HarvestedItemInfo infoObject = (HarvestedItemInfo) iter.next();

            Date lastUpdate = infoObject.item.getLastModified();
            String lastUpdateStr = sdf.format(lastUpdate);

            // has the item modified today?
View Full Code Here

Examples of org.dspace.search.HarvestedItemInfo

                - (24 * 60 * 60 * 1000));
        String yesterday = sdf.format(thisTimeYesterday);
       
        for (Iterator iter = completeList.iterator(); iter.hasNext();)
        {
            HarvestedItemInfo infoObject = (HarvestedItemInfo) iter.next();
            DCValue[] dateAccArr = infoObject.item.getMetadata("dc", "date", "accessioned", Item.ANY);
           
            if (dateAccArr != null && dateAccArr.length > 0)
            {
                for(DCValue date : dateAccArr)
View Full Code Here

Examples of org.dspace.search.HarvestedItemInfo

        return new DCDate(d).toString();
    }

    public Iterator getSetSpecs(Object nativeItem)
    {
        HarvestedItemInfo hii = (HarvestedItemInfo) nativeItem;
        Iterator i = hii.collectionHandles.iterator();
        List setSpecs = new LinkedList();

        // Convert the DB Handle string 123.456/789 to the OAI-friendly
        // hdl_123.456/789
View Full Code Here

Examples of org.dspace.search.HarvestedItemInfo

        return setSpecs.iterator();
    }

    public boolean isDeleted(Object nativeItem)
    {
        HarvestedItemInfo hii = (HarvestedItemInfo) nativeItem;

        return hii.withdrawn;
    }
View Full Code Here

Examples of org.dspace.search.HarvestedItemInfo

    }

    public String createMetadata(Object nativeItem)
            throws CannotDisseminateFormatException
    {
      HarvestedItemInfo itemInfo = (HarvestedItemInfo)nativeItem;
        Item item = itemInfo.item;

        // Get all the DC
        DCValue[] allDC = item.getDC(Item.ANY, Item.ANY, Item.ANY);
View Full Code Here

Examples of org.dspace.search.HarvestedItemInfo

    }

    public String createMetadata(Object nativeItem)
            throws CannotDisseminateFormatException
    {
        HarvestedItemInfo hii = (HarvestedItemInfo) nativeItem;

        try
        {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
View Full Code Here

Examples of org.dspace.search.HarvestedItemInfo

    {
        log.info(LogManager.getHeader(null, "oai_request",
                "verb=getSchemaLocations,identifier="
                        + ((identifier == null) ? "null" : identifier)));

        HarvestedItemInfo itemInfo = null;
        Context context = null;

        // Get the item from the DB
        try
        {
View Full Code Here

Examples of org.dspace.search.HarvestedItemInfo

            // Build up lists of headers and identifiers
            Iterator i = itemInfos.iterator();

            while (i.hasNext())
            {
                HarvestedItemInfo itemInfo = (HarvestedItemInfo) i.next();

                String[] header = getRecordFactory().createHeader(itemInfo);

                headers.add(header[0]);
                identifiers.add(header[1]);
View Full Code Here

Examples of org.dspace.search.HarvestedItemInfo

                                + ((metadataPrefix == null) ? "null"
                                        : metadataPrefix)));

        Context context = null;
        String record = null;
        HarvestedItemInfo itemInfo = null;
       
        // First get the item from the DB
        try
        {
            // Valid IDs start with oai:hostname:
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.