[DS-279] XMLUI Item Mapper will map the same item more than one time

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@4264 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Stuart Lewis
2009-09-15 03:29:34 +00:00
parent 21ceb87476
commit ac87493d64
2 changed files with 23 additions and 5 deletions

View File

@@ -141,11 +141,28 @@ public class SearchItemForm extends AbstractDSpaceTransformer {
String url = contextPath+"/handle/"+item.getHandle();
Row row = table.addRow();
CheckBox select = row.addCell().addCheckBox("itemID");
select.setLabel("Select");
select.addOption(itemID);
boolean canBeMapped = true;
Collection[] collections = item.getCollections();
for (Collection c : collections)
{
if (c.getID() == collectionID)
{
canBeMapped = false;
}
}
if (canBeMapped)
{
CheckBox select = row.addCell().addCheckBox("itemID");
select.setLabel("Select");
select.addOption(itemID);
}
else
{
row.addCell().addContent("");
}
row.addCellContent(owning);
row.addCell().addXref(url,author);
row.addCell().addXref(url,title);

View File

@@ -42,6 +42,7 @@
- [DS-242] Special groups shown for logged in user rather than for user being examined
- [DS-250] Invalid identifiers are not escaped
- [DS-256] Item Export ignores metadata language qualifier
- [DS-279] XMLUI Item Mapper will map the same item more than one time
- [DS-290] [dspace]/exports is not created during fresh install
- [DS-303] Export migrate option incorrectly removes non-handle identifier.uris