Permalink
Browse files

DS-1816 add missing DSO type to DRI (focus.containerType)

  • Loading branch information...
1 parent d7df347 commit 340c8b12358d3fbaaffa7cb5b00f4de2cc9bbc56 @helix84 helix84 committed Jan 27, 2014
@@ -211,13 +211,22 @@ public void addPageMeta(PageMeta pageMeta) throws SAXException,
{
if (dso instanceof Item)
{
+ pageMeta.addMetadata("focus","containerType").addContent("type:item");
pageMeta.addMetadata("focus","object").addContent("hdl:"+dso.getHandle());
this.getObjectManager().manageObject(dso);
dso = ((Item) dso).getOwningCollection();
}
- if (dso instanceof Collection || dso instanceof Community)
+ if (dso instanceof Collection)
+ {
+ pageMeta.addMetadata("focus","containerType").addContent("type:collection");
+ pageMeta.addMetadata("focus","container").addContent("hdl:"+dso.getHandle());
+ this.getObjectManager().manageObject(dso);
+ }
+
+ if (dso instanceof Community)
{
+ pageMeta.addMetadata("focus","containerType").addContent("type:community");
pageMeta.addMetadata("focus","container").addContent("hdl:"+dso.getHandle());
this.getObjectManager().manageObject(dso);
}
@@ -135,13 +135,22 @@ public void addPageMeta(PageMeta pageMeta) throws SAXException,
{
if (dso instanceof Item)
{
+ pageMeta.addMetadata("focus","containerType").addContent("type:item");
pageMeta.addMetadata("focus","object").addContent("hdl:"+dso.getHandle());
this.getObjectManager().manageObject(dso);
dso = ((Item) dso).getOwningCollection();
}
-
- if (dso instanceof Collection || dso instanceof Community)
+
+ if (dso instanceof Collection)
+ {
+ pageMeta.addMetadata("focus","containerType").addContent("type:collection");
+ pageMeta.addMetadata("focus","container").addContent("hdl:"+dso.getHandle());
+ this.getObjectManager().manageObject(dso);
+ }
+
+ if (dso instanceof Community)
{
+ pageMeta.addMetadata("focus","containerType").addContent("type:community");
pageMeta.addMetadata("focus","container").addContent("hdl:"+dso.getHandle());
this.getObjectManager().manageObject(dso);
}

0 comments on commit 340c8b1

Please sign in to comment.