Re: [Dspace-tech] Having A Sub-Community Collection appear in 2 Communities?

2007-07-23 Thread James Rutherford
On Fri, Jul 20, 2007 at 06:06:42PM -0400, Richard Rodgers wrote:
 What behavior do you want when (one of) the parents is deleted?
 Normally DSpace deletes everything below a community (sub-communities,
 collections, etc) I assume you would want any sub-community that has
 more than one parent to *not* be deleted. Is this true with your
 modified code?

Even though it's not officially supported to have communities with
multiple parents, Community.removeSubcommunity() does check to make sure
that the child node is orphaned before deleting it.

cheers,

Jim

-- 
James Rutherford  |  Hewlett-Packard Limited registered Office:
Research Engineer |  Cain Road,
HP Labs   |  Bracknell,
Bristol, UK   |  Berks
+44 117 312 7066  |  RG12 1HN.
[EMAIL PROTECTED]   |  Registered No: 690597 England

The contents of this message and any attachments to it are confidential and
may be legally privileged. If you have received this message in error, you
should delete it from your system immediately and advise the sender. To any
recipient of this message within HP, unless otherwise stated you should
consider this message and attachments as HP CONFIDENTIAL.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Having A Sub-Community Collection appear in 2 Communities?

2007-07-20 Thread George Kozak
Hi...

We are having a problem with people wanting to see the same Sub-Community 
(and it's collections) appear in 2 different Collections.

For instance, currently I have a Sub-Community called Albert Mann 
Library.  It appears in our Community Cornell University Library, but 
the people at Mann Library would also like their Library appearing in the 
hierarchy of College of Agriculture and Life Sciences.  Can this be done?

***
George Kozak
Coordinator
Web Development and Management
Digital Media Group
501 Olin Library
Cornell University
607-255-8924
***
[EMAIL PROTECTED] 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Having A Sub-Community Collection appear in 2 Communities?

2007-07-20 Thread mfrodrigues



  Hi!

  I have the some problem. I would like to see the same sub-community  
inside several Communities. This means that one sub-community should  
have more than one father.


  The CommunityFilliator class states that:
first test - proposed child must currently be an orphan

  So, I've commented this check and i can set one sub-community with  
several fathers.


  Im pretty sure that this modification is harmless, but, if this  
lines were in the code, they were there for a reason! Is it dangerous  
this change? Could this bring any side-effects?


  Marcelo

  Quoting George Kozak [EMAIL PROTECTED]:


Hi...

We are having a problem with people wanting to see the same Sub-Community
(and it's collections) appear in 2 different Collections.

For instance, currently I have a Sub-Community called Albert Mann
Library.  It appears in our Community Cornell University Library, but
the people at Mann Library would also like their Library appearing in the
hierarchy of College of Agriculture and Life Sciences.  Can this be done?

***
George Kozak
Coordinator
Web Development and Management
Digital Media Group
501 Olin Library
Cornell University
607-255-8924
***
[EMAIL PROTECTED]


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech







-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Having A Sub-Community Collection appear in 2 Communities?

2007-07-20 Thread Richard Rodgers
Hi Marcelo:

The sub-community functionality was designed as a single-parent
model. I'd need to study the code/DB schema to see what potential
problems there may be, but one question springs to mind immediately:

What behavior do you want when (one of) the parents is deleted?
Normally DSpace deletes everything below a community (sub-communities,
collections, etc) I assume you would want any sub-community that has
more than one parent to *not* be deleted. Is this true with your
modified code?

Thanks,

Richard R

On Fri, 2007-07-20 at 22:45 +0100, [EMAIL PROTECTED] wrote:
 Hi!
 
 I have the some problem. I would like to see the same sub-community
 inside several Communities. This means that one sub-community should
 have more than one father.
 
 The CommunityFilliator class states that:
 first test - proposed child must currently be an orphan
 
 So, I've commented this check and i can set one sub-community with
 several fathers.
 
 Im pretty sure that this modification is harmless, but, if this lines
 were in the code, they were there for a reason! Is it dangerous this
 change? Could this bring any side-effects?
 
 Marcelo
 
 Quoting George Kozak [EMAIL PROTECTED]:
 
  Hi...
 
  We are having a problem with people wanting to see the same
 Sub-Community
  (and it's collections) appear in 2 different Collections.
 
  For instance, currently I have a Sub-Community called Albert Mann
  Library. It appears in our Community Cornell University Library,
 but
  the people at Mann Library would also like their Library appearing
 in the
  hierarchy of College of Agriculture and Life Sciences. Can this be
 done?
 
  ***
  George Kozak
  Coordinator
  Web Development and Management
  Digital Media Group
  501 Olin Library
  Cornell University
  607-255-8924
  ***
  [EMAIL PROTECTED]
 
 
 
 -
  This SF.net email is sponsored by: Microsoft
  Defy all challenges. Microsoft(R) Visual Studio 2005.
  http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
  ___
  DSpace-tech mailing list
  DSpace-tech@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/dspace-tech
 
 
 
 
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___ DSpace-tech mailing list 
 DSpace-tech@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/dspace-tech


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Having A Sub-Community Collection appear in 2 Communities?

2007-07-20 Thread mfrodrigues



  Hello,

  Yes, in fact, the delete issue is the most important.

  Let me explain what happens in my case. Lets suppose this  
Communities example:


  -
Books (community)
   =Comedy (sub-community)
Magazines (community)
    =Sport  (sub-community)
    =Comedy (sub-community)
-

  If i try to delete Books or Magazines entire community I get a  
PSQLException, which makes sense, because of the foreign key constraint.


  But, when deleting only Comedy-Magazines, will cause the deletion  
of Comedy, but in Books category. So, only removes the reference to  
the first father. Comedy still remains, but this time like this:


  -
Books (community)
Magazines (community)
   =Sport  (sub-community)
   =Comedy (sub-community)
-

When deleting for Comedy for the second time, since there is no other  
father, the delete is successfully made.


  So, i would not advise this little hack unless anyone is using  
stable communities with very little changes in its structure. But any  
comments and opinions would be appreciated!


  Marcelo

  Quoting Richard Rodgers [EMAIL PROTECTED]:


Hi Marcelo:

The sub-community functionality was designed as a single-parent
model. I'd need to study the code/DB schema to see what potential
problems there may be, but one question springs to mind immediately:

What behavior do you want when (one of) the parents is deleted?
Normally DSpace deletes everything below a community (sub-communities,
collections, etc) I assume you would want any sub-community that has
more than one parent to *not* be deleted. Is this true with your
modified code?

Thanks,

Richard R

On Fri, 2007-07-20 at 22:45 +0100, [EMAIL PROTECTED] wrote:

Hi!

I have the some problem. I would like to see the same sub-community
inside several Communities. This means that one sub-community should
have more than one father.

The CommunityFilliator class states that:
first test - proposed child must currently be an orphan

So, I've commented this check and i can set one sub-community with
several fathers.

Im pretty sure that this modification is harmless, but, if this lines
were in the code, they were there for a reason! Is it dangerous this
change? Could this bring any side-effects?

Marcelo

Quoting George Kozak [EMAIL PROTECTED]:

 Hi...

 We are having a problem with people wanting to see the same
Sub-Community
 (and it's collections) appear in 2 different Collections.

 For instance, currently I have a Sub-Community called Albert Mann
 Library. It appears in our Community Cornell University Library,
but
 the people at Mann Library would also like their Library appearing
in the
 hierarchy of College of Agriculture and Life Sciences. Can this be
done?

 ***
 George Kozak
 Coordinator
 Web Development and Management
 Digital Media Group
 501 Olin Library
 Cornell University
 607-255-8924
 ***
 [EMAIL PROTECTED]



-
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/[1]
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech[2]





-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/[3]
___ DSpace-tech mailing  
 list DSpace-tech@lists.sourceforge.net   
https://lists.sourceforge.net/lists/listinfo/dspace-tech[4]








Links:
--
[1] http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
[2] https://lists.sourceforge.net/lists/listinfo/dspace-tech
[3] http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
[4] https://lists.sourceforge.net/lists/listinfo/dspace-tech



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech