Re: [Dspace-tech] Changing thumbnail authorizations

2010-09-28 Thread Jason Fowler
Peter,

Thanks. With one minor tweak that code did the trick.

Jason Fowler, CA, MSLS
Archives and Special Collections Librarian
The Southern Baptist Theological Seminary
President, ALABI
502-897-4573
jfow...@sbts.edu

From: pdiet...@gmail.com [pdiet...@gmail.com] On Behalf Of Peter Dietz 
[dietz...@osu.edu]
Sent: Monday, September 27, 2010 1:18 PM
To: Jason Fowler
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Changing thumbnail authorizations

Hi Jason,

I've had to do something similar, which was setting our licenses to be admin 
read only.

Here's the code I would run to do this: http://gist.github.com/599397

Its looking at all the policies for bitstreams in the thumbnail bundles. And 
for everything that was admin-group read, it changes it to anonymous group 
read. You'll want to test this on some testing data first. So the gist has both 
a select all to show you what it finds, and an update, to go ahead and change 
them to anon-read.
http://gist.github.com/599397
--
Peter Dietz
Systems Developer/Engineer
Ohio State University Libraries



On Mon, Sep 27, 2010 at 10:01 AM, Jason Fowler 
jfow...@sbts.edumailto:jfow...@sbts.edu wrote:
Hi,

I've looked around at this and can't figure it out.

I have a collection that uses IP authentication. The items have thumbnails, 
though, and I would like those to have anonymous authorization policies. Does 
anyone know any sql that would allow me to change the authorization for all 
thumbnail bittreams in my DSpace installation to be viewable by anonymous?

Thanks,

Jason Fowler, CA, MSLS
Archives and Special Collections Librarian
The Southern Baptist Theological Seminary
President, ALABI
502-897-4573
jfow...@sbts.edumailto:jfow...@sbts.edu
--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.netmailto:DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Changing thumbnail authorizations

2010-09-27 Thread Jason Fowler
Hi,

I've looked around at this and can't figure it out. 

I have a collection that uses IP authentication. The items have thumbnails, 
though, and I would like those to have anonymous authorization policies. Does 
anyone know any sql that would allow me to change the authorization for all 
thumbnail bittreams in my DSpace installation to be viewable by anonymous?

Thanks,

Jason Fowler, CA, MSLS
Archives and Special Collections Librarian
The Southern Baptist Theological Seminary
President, ALABI
502-897-4573
jfow...@sbts.edu
--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Changing thumbnail authorizations

2010-09-27 Thread Peter Dietz
Hi Jason,

I've had to do something similar, which was setting our licenses to be admin
read only.

Here's the code I would run to do this: http://gist.github.com/599397

Its looking at all the policies for bitstreams in the thumbnail bundles. And
for everything that was admin-group read, it changes it to anonymous group
read. You'll want to test this on some testing data first. So the gist has
both a select all to show you what it finds, and an update, to go ahead and
change them to anon-read.
 http://gist.github.com/599397
--
Peter Dietz
Systems Developer/Engineer
Ohio State University Libraries



On Mon, Sep 27, 2010 at 10:01 AM, Jason Fowler jfow...@sbts.edu wrote:

 Hi,

 I've looked around at this and can't figure it out.

 I have a collection that uses IP authentication. The items have thumbnails,
 though, and I would like those to have anonymous authorization policies.
 Does anyone know any sql that would allow me to change the authorization for
 all thumbnail bittreams in my DSpace installation to be viewable by
 anonymous?

 Thanks,

 Jason Fowler, CA, MSLS
 Archives and Special Collections Librarian
 The Southern Baptist Theological Seminary
 President, ALABI
 502-897-4573
 jfow...@sbts.edu

 --
 Start uncovering the many advantages of virtual appliances
 and start using them to simplify application deployment and
 accelerate your shift to cloud computing.
 http://p.sf.net/sfu/novell-sfdev2dev
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech