Title: Message Title
|
|
Issue Type:
|
New Feature
|
Assignee:
|
Unassigned
|
Components:
|
DSpace API
|
Created:
|
18/Jun/14 7:00 PM
|
Priority:
|
Minor
|
Reporter:
|
Terry Brady
|
|
We have a large collections of items that is visible only to our university community. When our site is crawled, we have a flood of error messages related to these items. These items appear in our sitemap (We are running DSpace 3.1). When our site is crawled, this triggers a large number of errors. Ideally, we would like to suppress items, collections, and communities without anonymous access from our sitemap. Here is a change that we have deployed to our local instance in org.dspace.app.sitemap.GenerateSitemaps. Replace ItemIterator allItems = Item.findAll(c); With String myQuery = "SELECT * FROM item WHERE in_archive='1' " + "and exists (select 1 from resourcepolicy " + "where item.item_id=resource_id and resource_type_id=2 and epersongroup_id=0)"; TableRowIterator rows = DatabaseManager.queryTable(c, "item", myQuery); ItemIterator allItems = new ItemIterator(c, rows); If this feature was to be adopted, it would make sense to create a findAllAnonymous() function. Are there valid use cases where restricted content should appear in the sitemap? If so, perhaps this feature could be activated conditionally.
|
|
|
|
|
|
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel