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/vse0120000070mrt/direct/01/[1]
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> 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/vse0120000070mrt/direct/01/[3]
_______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech[4]






Links:
------
[1] http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
[2] https://lists.sourceforge.net/lists/listinfo/dspace-tech
[3] http://clk.atdmt.com/MRT/go/vse0120000070mrt/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/vse0120000070mrt/direct/01/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to