[Dspace-tech] hiding metadata from oai harvesting and search/browse indexes
Hi All, We have a number of collections in Cambridge that are have been entered as 'Dark' with no anonymous access to the items. Unfortunately, these items still show up in the search and browse listings in dspace. We have discussed a number of strategies and would like some advice: 1. Remove the collections from the lucene and browse indexes. Effectively hiding them from all users. 2. Alter browse/search to return items that the user has permission to see by adding a authorization check when building the results. This option is quite messy because it complicates the entire browse/search ui. 3. Mask meta data from unauthorized users in the browse/search results mechanism. 4. Alter the search/browse sql search to return only authorized items (non trivial). 5. Add authorization check at the Item level to mask out meta data for unauthorized users. in the Item.find(context,id) there would be a canRead() canEdit() check. Currently I vote for number 5, because it solves the oai harvesting problem, but I'm not sure of the ramifications of adding an authorization check to retrieve an Item. Thanks in advance. James Dickson - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Collection submitters
Hi Jayan, was your DSpace instance once on 1.2.*? If so, your problems might be related with: Bug: http://sourceforge.net/tracker/index.php?func=detailaid=1638565group_id=19984atid=119984 Patch: http://sourceforge.net/tracker/index.php?func=detailaid=1638565group_id=19984atid=119984 This will only work, if you have not modified/added admin/submitters in between. Claudia Jayan Chirayath Kurian schrieb: Hi! (1) In Dspace 1.4.1 a collection was created and tried adding collection submitters through edit collection interface - edit button. Clicking Select E-people enabled the e-person menu. But when clicked on add button, the Dspace status bar shows error on page. Scripting is enabled. (2) In Dspace admin tools- Groups, for a user defined group, adding an e-person to the group deletes the e-persons existing in the group. The Dspace status bar shows error on page. Removing existing users is not happening with the Administration group but cannot add new e-person to any group including the Administration group. In this case also the Dspace status bar shows error on page. Please suggest. Thanks, Jayan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Deleting items
Im creating a Java code for deleting all items under a collection. Sometimes when deleting an item I get a message saying: Exception: IndexReader out of date and no longer valid for delete, undelete, or setNorm operations Does Anyone know what is causing? I guess it is Lucene related? Thanks, -Mika - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] inser/delete into the metadatavalue table
Hi Jose, you can of course add metadata with a java script using DSpace API without any problems. If you want add metadata from sql script you need only to reset the metadata sequence at the end of your script. SELECT setval('metadatavalue_seq', max(metadata_value_id)) FROM metadatavalue; SELECT setval('dcvalue_seq', max(dc_value_id)) FROM dcvalue; Of course you need also to run index-all at the end. Best wishes, Andrea PS: deleting metadata doesn't require sequence update Jose Blanco ha scritto: I sent this question out a few days ago, and did not hear anything. If some one has some info on it, could you let me know. Thanks! *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Jose Blanco *Sent:* Monday, April 02, 2007 12:53 PM *To:* dspace-tech@lists.sourceforge.net *Subject:* [Dspace-tech] inser/delete into the metadatavalue table I have a big chunk of items I would like to add and delete metadata to. Previously I have updated the metadatavalue table when I have just wanted to do updates to certain metadata values, and then ran index-all, but I have never done inserts and deletes to this table via a script, and I want to make sure this will not cause any problems. Could some one let me know if this is safe to do? Thanks! Jose - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] inser/delete into the metadatavalue table
Andrea: I'm running 1.4.1 and so dcvalue is a view in this version. So I don't think I have to use this command : SELECT setval('dcvalue_seq', max(dc_value_id)) FROM dcvalue Right? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrea Bollini Sent: Thursday, April 05, 2007 3:58 AM To: Jose Blanco Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] inser/delete into the metadatavalue table Hi Jose, you can of course add metadata with a java script using DSpace API without any problems. If you want add metadata from sql script you need only to reset the metadata sequence at the end of your script. SELECT setval('metadatavalue_seq', max(metadata_value_id)) FROM metadatavalue; SELECT setval('dcvalue_seq', max(dc_value_id)) FROM dcvalue; Of course you need also to run index-all at the end. Best wishes, Andrea PS: deleting metadata doesn't require sequence update Jose Blanco ha scritto: I sent this question out a few days ago, and did not hear anything. If some one has some info on it, could you let me know. Thanks! *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Jose Blanco *Sent:* Monday, April 02, 2007 12:53 PM *To:* dspace-tech@lists.sourceforge.net *Subject:* [Dspace-tech] inser/delete into the metadatavalue table I have a big chunk of items I would like to add and delete metadata to. Previously I have updated the metadatavalue table when I have just wanted to do updates to certain metadata values, and then ran index-all, but I have never done inserts and deletes to this table via a script, and I want to make sure this will not cause any problems. Could some one let me know if this is safe to do? Thanks! Jose - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] inser/delete into the metadatavalue table
Andrea: In looking at the dspace code, it seems like I could use this SQL: SELECT getnextid(metadatavalue) And then issue and insert into metadavalue values ( ... ) using the metadata_value_id I get from the SELECT statement. Will this also work? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrea Bollini Sent: Thursday, April 05, 2007 3:58 AM To: Jose Blanco Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] inser/delete into the metadatavalue table Hi Jose, you can of course add metadata with a java script using DSpace API without any problems. If you want add metadata from sql script you need only to reset the metadata sequence at the end of your script. SELECT setval('metadatavalue_seq', max(metadata_value_id)) FROM metadatavalue; SELECT setval('dcvalue_seq', max(dc_value_id)) FROM dcvalue; Of course you need also to run index-all at the end. Best wishes, Andrea PS: deleting metadata doesn't require sequence update Jose Blanco ha scritto: I sent this question out a few days ago, and did not hear anything. If some one has some info on it, could you let me know. Thanks! *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Jose Blanco *Sent:* Monday, April 02, 2007 12:53 PM *To:* dspace-tech@lists.sourceforge.net *Subject:* [Dspace-tech] inser/delete into the metadatavalue table I have a big chunk of items I would like to add and delete metadata to. Previously I have updated the metadatavalue table when I have just wanted to do updates to certain metadata values, and then ran index-all, but I have never done inserts and deletes to this table via a script, and I want to make sure this will not cause any problems. Could some one let me know if this is safe to do? Thanks! Jose - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] redirect port 8443 to 80?
Hello, I'm following the Dspace wiki page DspaceOnStandardPorts and ServletSecurity to run Dspace on Tomcat only. I've set up iptables to route port 80 to 8080 and 443 to 8443, then set the Tomcat redirectPort to 443 instead of 8443, so I don't get the 8443 port number such as https://laii-dspace.unm.edu:8443 at the browser address bar, but then when I click the DSpace logo from a secured page such as https://laii-dspace.unm.edu/password-login all the following pages are through https regardless of which the page is, which bothers me. But when I tried to click the dspace logo from the mit dspace page https://dspace.mit.edu/password-login the request to the https://dspace.mit.edu/ seems to be rerouted to http://dspace.mit.edu/. So what's the trick? Thanks, Zhiwu - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] inser/delete into the metadatavalue table
yes, it works This is the same method used in the API Andrea Jose Blanco ha scritto: Andrea: In looking at the dspace code, it seems like I could use this SQL: SELECT getnextid(metadatavalue) And then issue and insert into metadavalue values ( ... ) using the metadata_value_id I get from the SELECT statement. Will this also work? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrea Bollini Sent: Thursday, April 05, 2007 3:58 AM To: Jose Blanco Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] inser/delete into the metadatavalue table Hi Jose, you can of course add metadata with a java script using DSpace API without any problems. If you want add metadata from sql script you need only to reset the metadata sequence at the end of your script. SELECT setval('metadatavalue_seq', max(metadata_value_id)) FROM metadatavalue; SELECT setval('dcvalue_seq', max(dc_value_id)) FROM dcvalue; Of course you need also to run index-all at the end. Best wishes, Andrea PS: deleting metadata doesn't require sequence update Jose Blanco ha scritto: I sent this question out a few days ago, and did not hear anything. If some one has some info on it, could you let me know. Thanks! *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Jose Blanco *Sent:* Monday, April 02, 2007 12:53 PM *To:* dspace-tech@lists.sourceforge.net *Subject:* [Dspace-tech] inser/delete into the metadatavalue table I have a big chunk of items I would like to add and delete metadata to. Previously I have updated the metadatavalue table when I have just wanted to do updates to certain metadata values, and then ran index-all, but I have never done inserts and deletes to this table via a script, and I want to make sure this will not cause any problems. Could some one let me know if this is safe to do? Thanks! Jose - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech