ilri / ckm-cgspace-mass-tweeter

A tool to mass-tweet CGSpace entries to twitter, also providing the status of each entry as being tweeted or not.
Other
1 stars 2 forks source link

Include HashTags #14

Closed tsega closed 8 years ago

tsega commented 8 years ago

Now that the items to import can be expanded to include related information, we need to hashtag each item with the abbreviated name of it's top level community. DSpace REST API ReadMe

Structure of an expanded CGSpace item:

Request

https://cgspace.cgiar.org/rest/items/?format=json&limit=1&expand=all

Response

{
  "id":17471,
  "name":"Community conservancies and payments for wildlife conservation (PWC) as a coping strategy under different conservancy institutional arrangements",
  "handle":"10568/16610",
  "type":"item",
  "link":"/RESTapi/items/17471",
  "expand":[],
  "lastModified":"2013-04-10 08:14:03.038",
  "parentCollection": {
    "id":3,
    "name":"ILRI presentations",
    "handle":"10568/53",
    "type":"collection",
    "link":"/RESTapi/collections/3",
    "expand":["parentCommunityList","parentCommunity","items","license","logo","all"],
    "logo":null,
    "parentCommunity":null,
    "parentCommunityList":[],
    "items":[],
    "license":null,
    "copyrightText":"",
    "introductoryText":"<table border=\"0\"><tr>\r\n<td><img align=\"left\" src=\"https://www.ilri.org/images/Iconrss2.png\"></img></td>\r\n<td><a href=\"https://feeds.feedburner.com/IlriPresentations\" target=\"_blank\">Subscribe to RSS Feed</a></td></tr> \r\n<tr><td><img align=\"left\" src=\"https://www.ilri.org/images/email.jpg\"></img></td><td><a href=\"https://feedburner.google.com/fb/a/mailverify?uri=IlriPresentations&amp;loc=en_US\">Subscribe to email alerts</a>\r\n</td></tr></table>\r\n<p></p>\r\n<form style=\"border:1px solid #ccc;padding:3px;text-align:center;\" action=\"https://feedburner.google.com/fb/a/mailverify\" method=\"post\" target=\"popupwindow\" onsubmit=\"window.open('https://feedburner.google.com/fb/a/mailverify?uri=IlriPresentations', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true\"><p>Enter your email address:</p><p><input type=\"text\" style=\"width:140px\" name=\"email\"/></p><input type=\"hidden\" value=\"IlriPresentations\" name=\"uri\"/><input type=\"hidden\" name=\"loc\" value=\"en_US\"/><input type=\"submit\" value=\"Subscribe\" /></form>",
    "shortDescription":"",
    "sidebarText":"",
    "numberItems":831
  },
  "parentCollectionList":[
    {
      "id":3,
      "name":"ILRI presentations",
      "handle":"10568/53",
      "type":"collection",
      "link":"/RESTapi/collections/3",
      "expand":["parentCommunityList","parentCommunity","items","license","logo","all"],
      "logo":null,
      "parentCommunity":null,
      "parentCommunityList":[],
      "items":[],
      "license":null,
      "copyrightText":"",
      "introductoryText":"<table border=\"0\"><tr>\r\n<td><img align=\"left\" src=\"https://www.ilri.org/images/Iconrss2.png\"></img></td>\r\n<td><a href=\"https://feeds.feedburner.com/IlriPresentations\" target=\"_blank\">Subscribe to RSS Feed</a></td></tr> \r\n<tr><td><img align=\"left\" src=\"https://www.ilri.org/images/email.jpg\"></img></td><td><a href=\"https://feedburner.google.com/fb/a/mailverify?uri=IlriPresentations&amp;loc=en_US\">Subscribe to email alerts</a>\r\n</td></tr></table>\r\n<p></p>\r\n<form style=\"border:1px solid #ccc;padding:3px;text-align:center;\" action=\"https://feedburner.google.com/fb/a/mailverify\" method=\"post\" target=\"popupwindow\" onsubmit=\"window.open('https://feedburner.google.com/fb/a/mailverify?uri=IlriPresentations', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true\"><p>Enter your email address:</p><p><input type=\"text\" style=\"width:140px\" name=\"email\"/></p><input type=\"hidden\" value=\"IlriPresentations\" name=\"uri\"/><input type=\"hidden\" name=\"loc\" value=\"en_US\"/><input type=\"submit\" value=\"Subscribe\" /></form>",
      "shortDescription":"",
      "sidebarText":"",
      "numberItems":831
    },
    {
      "id":510,
      "name":"Livelihood diversifying potential of livestock based carbon sequestration in pastoral systems in Africa",
      "handle":"10568/16578",
      "type":"collection",
      "link":"/RESTapi/collections/510",
      "expand":["parentCommunityList","parentCommunity","items","license","logo","all"],
      "logo":null,
      "parentCommunity":null,
      "parentCommunityList":[],
      "items":[],
      "license":null,
      "copyrightText":"",
      "introductoryText":"<p></p>\r\nPart of the Integrated Agricultural Production Systems for the Dry Areas program\r\n<p></p>",
      "shortDescription":"",
      "sidebarText":"",
      "numberItems":5
    }
  ],
  "parentCommunityList":[
    {
      "id":1,
      "name":"International Livestock Research Institute (ILRI)",
      "handle":"10568/1",
      "type":"community",
      "link":"/RESTapi/communities/1",
      "expand":["parentCommunity","collections","subCommunities","logo","all"],
      "logo":null,
      "parentCommunity":null,
      "copyrightText":"",
      "introductoryText":"Mahider is the name of the ILRI research publications and products repository. It is an index and repository of research outputs and publications produced or sponsored by ILRI (Visit our web site: <a href=\"https://www.ilri.org\" target=\"_blank\">https://www.ilri.org</a>)\r\n<br/>\r\nSee <a href=\"https://cgspace.cgiar.org/handle/10568/3/browse?type=dateissued&sort_by=2&order=DESC&rpp=50&etal=0&submit_browse=Update\">latest <b>journal articles</b> by ILRI staff</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/1/browse?type=dateissued&sort_by=2&order=DESC&rpp=50&etal=0&submit_browse=Update\">latest <b>publications and outputs</b> by ILRI staff and projects</a><p></p>View outputs from: <ul>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/171\">Animal bioscience program</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/171/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/27868\">Animal science for sustainable productivity program</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/27868/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/178/\">Biosciences eastern and central Africa (BecA) ILRI Hub</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/178/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/27867\">Feed and forages bioscience program</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/27867/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/231\">Food safety and zoonoses program</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/231/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/27869\">Livelihoods, gender and impact program</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/27869/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/150\">Livestock systems and environment program</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/150/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/230\">Policy, trade and value chains program</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/230/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/32724\">Vaccine biosciences program</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/32724/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<p></p>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/110/\">Institutional planning and partnerships</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/110/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/173\">Research methods group</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/173/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<p></p>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/113\">Capacity development unit</a>\r\n / <a href=\"https://cgspace.cgiar.org/handle/10568/113/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<p></p>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/3112\">CGIAR Research Program on Livestock and Fish</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/3112/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<p></p>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/16498\">Africa RISING project</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/16498/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/2347\">EADD project</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/2347/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/25101\">LIVES project</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/25101/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/2296\">NBDC project</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/2296/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n</ul>\r\n<p> </p>\r\n\r\n<table border=\"0\"><tr>\r\n<td><img align=\"left\" src=\"https://ilri.org/images/Iconrss2.png\"></img></td>\r\n<td><a href=\"http://feeds.feedburner.com/ilrioutputs\" target=\"_blank\">Subscribe to RSS Feed</a></td></tr> \r\n<tr><td><img align=\"left\" src=\"https://ilri.org/images/email.jpg\"></img></td><td><a href=\"http://feedburner.google.com/fb/a/mailverify?uri=ilrioutputs&amp;loc=en_US\">Subscribe to email alerts</a>\r\n</td></tr></table>\r\n<p></p>\r\n<form style=\"border:1px solid #ccc;padding:3px;text-align:center;\" action=\"https://feedburner.google.com/fb/a/mailverify\" method=\"post\" target=\"popupwindow\" onsubmit=\"window.open('https://feedburner.google.com/fb/a/mailverify?uri=ilrioutputs', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true\"><p>Enter your email address:</p><p><input type=\"text\" style=\"width:140px\" name=\"email\"/></p><input type=\"hidden\" value=\"ilrioutputs\" name=\"uri\"/><input type=\"hidden\" name=\"loc\" value=\"en_US\"/><input type=\"submit\" value=\"Subscribe\" /></form>",
      "shortDescription":"ILRI",
      "sidebarText":"",
      "countItems":17385,
      "subcommunities":[],
      "collections":[]
    },
    {
      "id":135,
      "name":"ILRI Projects",
      "handle":"10568/27629",
      "type":"community",
      "link":"/RESTapi/communities/135",
      "expand":["parentCommunity","collections","subCommunities","logo","all"],
      "logo":null,
      "parentCommunity":null,
      "copyrightText":"",
      "introductoryText":"",
      "shortDescription":"",
      "sidebarText":"",
      "countItems":2123,
      "subcommunities":[],
      "collections":[]
    },
    {
      "id":1,
      "name":"International Livestock Research Institute (ILRI)",
      "handle":"10568/1",
      "type":"community",
      "link":"/RESTapi/communities/1",
      "expand":["parentCommunity","collections","subCommunities","logo","all"],
      "logo":null,
      "parentCommunity":null,
      "copyrightText":"",
      "introductoryText":"Mahider is the name of the ILRI research publications and products repository. It is an index and repository of research outputs and publications produced or sponsored by ILRI (Visit our web site: <a href=\"https://www.ilri.org\" target=\"_blank\">https://www.ilri.org</a>)\r\n<br/>\r\nSee <a href=\"https://cgspace.cgiar.org/handle/10568/3/browse?type=dateissued&sort_by=2&order=DESC&rpp=50&etal=0&submit_browse=Update\">latest <b>journal articles</b> by ILRI staff</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/1/browse?type=dateissued&sort_by=2&order=DESC&rpp=50&etal=0&submit_browse=Update\">latest <b>publications and outputs</b> by ILRI staff and projects</a><p></p>View outputs from: <ul>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/171\">Animal bioscience program</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/171/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/27868\">Animal science for sustainable productivity program</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/27868/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/178/\">Biosciences eastern and central Africa (BecA) ILRI Hub</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/178/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/27867\">Feed and forages bioscience program</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/27867/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/231\">Food safety and zoonoses program</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/231/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/27869\">Livelihoods, gender and impact program</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/27869/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/150\">Livestock systems and environment program</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/150/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/230\">Policy, trade and value chains program</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/230/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/32724\">Vaccine biosciences program</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/32724/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<p></p>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/110/\">Institutional planning and partnerships</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/110/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/173\">Research methods group</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/173/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<p></p>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/113\">Capacity development unit</a>\r\n / <a href=\"https://cgspace.cgiar.org/handle/10568/113/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<p></p>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/3112\">CGIAR Research Program on Livestock and Fish</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/3112/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<p></p>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/16498\">Africa RISING project</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/16498/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/2347\">EADD project</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/2347/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/25101\">LIVES project</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/25101/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n<li><a href=\"https://cgspace.cgiar.org/handle/10568/2296\">NBDC project</a> / <a href=\"https://cgspace.cgiar.org/handle/10568/2296/browse?type=dateissued&sort_by=2&order=DESC&rpp=30\">Latest</a></li>\r\n</ul>\r\n<p> </p>\r\n\r\n<table border=\"0\"><tr>\r\n<td><img align=\"left\" src=\"https://ilri.org/images/Iconrss2.png\"></img></td>\r\n<td><a href=\"http://feeds.feedburner.com/ilrioutputs\" target=\"_blank\">Subscribe to RSS Feed</a></td></tr> \r\n<tr><td><img align=\"left\" src=\"https://ilri.org/images/email.jpg\"></img></td><td><a href=\"http://feedburner.google.com/fb/a/mailverify?uri=ilrioutputs&amp;loc=en_US\">Subscribe to email alerts</a>\r\n</td></tr></table>\r\n<p></p>\r\n<form style=\"border:1px solid #ccc;padding:3px;text-align:center;\" action=\"https://feedburner.google.com/fb/a/mailverify\" method=\"post\" target=\"popupwindow\" onsubmit=\"window.open('https://feedburner.google.com/fb/a/mailverify?uri=ilrioutputs', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true\"><p>Enter your email address:</p><p><input type=\"text\" style=\"width:140px\" name=\"email\"/></p><input type=\"hidden\" value=\"ilrioutputs\" name=\"uri\"/><input type=\"hidden\" name=\"loc\" value=\"en_US\"/><input type=\"submit\" value=\"Subscribe\" /></form>",
      "shortDescription":"ILRI",
      "sidebarText":"",
      "countItems":17385,
      "subcommunities":[],
      "collections":[]
    }
  ],
  "metadata":[
    {
      "key":"dc.contributor.author",
      "value":"Birner, R.",
      "language":null
    },
    {
      "key":"dc.contributor.author",
      "value":"Osano, P.",
      "language":null
    },
    {
      "key":"dc.date.accessioned",
      "value":"2012-03-11T10:33:16Z",
      "language":null
    },
    {
      "key":"dc.date.available",
      "value":"2012-03-11T10:33:16Z",
      "language":null
    },
    {
      "key":"dc.date.issued",
      "value":"2012-02-15",
      "language":null
    },
    {
      "key":"dc.identifier.citation",
      "value":"Birner, R. and Osano, P. 2012. Community conservancies and payments for wildlife conservation (PWC) as a coping strategy under different conservancy institutional arrangements. Presented at the Workshop on Enabling Livestock Based Economies in Kenya to Adapt to Climate Change: A Review of PES from Wildlife Tourism as a Climate Change Adaptation Option, ILRI, Nairobi, 15 February 2012. Nairobi, Kenya: ILRI.",
      "language":"en_US"
    },
    {
      "key":"dc.identifier.uri",
      "value":"http://hdl.handle.net/10568/16610",
      "language":null
    },
    {
      "key":"dc.language.iso",
      "value":"en",
      "language":"en_US"
    },
    {
      "key":"dc.publisher",
      "value":"ILRI",
      "language":"en_US"
    },
    {
      "key":"dc.subject",
      "value":"CLIMATIC CHANGE",
      "language":"en_US"
    },
    {
      "key":"dc.subject",
      "value":"LIVESTOCK",
      "language":"en_US"
    },
    {
      "key":"dc.subject",
      "value":"WILDLIFE",
      "language":"en_US"
    },
    {
      "key":"dc.title",
      "value":"Community conservancies and payments for wildlife conservation (PWC) as a coping strategy under different conservancy institutional arrangements",
      "language":"en_US"
    },
    {
      "key":"dc.type.output",
      "value":"Presentation",
      "language":"en_US"
    },
    {
      "key":"dc.identifier.url",
      "value":"http://www.slideshare.net/ILRI/community-conservancies-and-payments-for-wildlife-conservation-pwc-as-a-coping-strategy-under-different-conservancy-institutional-arrangements",
      "language":"en_US"
    },
    {
      "key":"dc.isubject.ilrisubject",
      "value":"CLIMATE CHANGE",
      "language":"en_US"
    },
    {
      "key":"dc.isubject.ilrisubject",
      "value":"ENVIRONMENT",
      "language":"en_US"
    },
    {
      "key":"dc.isubject.ilrisubject",
      "value":"LIVESTOCK",
      "language":"en_US"
    },
    {
      "key":"dc.isubject.ilrisubject",
      "value":"WILDLIFE",
      "language":"en_US"
    },
    {
      "key":"dc.rplace.region",
      "value":"AFRICA",
      "language":null
    },
    {
      "key":"dc.rplace.region",
      "value":"EAST AFRICA",
      "language":null
    },
    {
      "key":"dc.cplace.country",
      "value":"KENYA",
      "language":"en_US"
    },
    {
      "key":"dc.identifier.status",
      "value":"Open Access",
      "language":"en_US"
      },{
        "key":"dc.crsubject.crpsubject",
        "value":"DRYLAND SYSTEMS",
        "language":"en_US"
      }
    ],
    "bitstreams":[
      {
        "id":12826,
        "name":"PWC.jpg",
        "handle":null,
        "type":"bitstream",
        "link":"/RESTapi/bitstreams/12826",
        "expand":["parent","policies","all"],
        "bundleName":"ORIGINAL",
        "description":"thumbnail",
        "format":"JPEG",
        "mimeType":"image/jpeg",
        "sizeBytes":25943,
        "parentObject":null,
        "retrieveLink":"/bitstreams/12826/retrieve",
        "checkSum":{
          "value":"8fa54decd8e9355be8d92f23fa79aef4",
          "checkSumAlgorithm":"MD5"
        },
        "sequenceId":1,
        "policies":null
      },
      {
        "id":12827,
        "name":"license.txt",
        "handle":null,
        "type":"bitstream",
        "link":"/RESTapi/bitstreams/12827",
        "expand":["parent","policies","all"],
        "bundleName":"LICENSE",
        "description":null,
        "format":"License",
        "mimeType":"text/plain; charset=utf-8",
        "sizeBytes":1797,
        "parentObject":null,
        "retrieveLink":"/bitstreams/12827/retrieve",
        "checkSum":{
          "value":"f04c89519d6216f3b66fce7669876e6c","checkSumAlgorithm":"MD5"
        },
        "sequenceId":2,
        "policies":null
      },
      {
        "id":12956,
        "name":"PWC.jpg.jpg",
        "handle":null,
        "type":"bitstream",
        "link":"/RESTapi/bitstreams/12956",
        "expand":["parent","policies","all"],
        "bundleName":"THUMBNAIL",
        "description":"Generated Thumbnail",
        "format":"JPEG",
        "mimeType":"image/jpeg",
        "sizeBytes":2893,
        "parentObject":null,
        "retrieveLink":"/bitstreams/12956/retrieve",
        "checkSum":{
          "value":"80ef1340d34e06cf6bd2e32ab233deb0",
          "checkSumAlgorithm":"MD5"
        },
        "sequenceId":3,
        "policies":null
      }
    ],
    "archived":"true",
    "withdrawn":"false"
  }
tsega commented 8 years ago

Hash Tags have now been included but they need to be:

  1. Unique: no repetitions of community hash tags.
  2. Relevant: only top level communities are required.

With regards to relevance, when importing items only hash tags for the top level communities should be added. Since a settings page containing a list of top-level communities is already setup and a corresponding collection available in the database. The hashTag field of an item document should be an array containing references to communities in the new collection.