Well, it wasn't much of a script, really - I just put the commands:
/dspace/bin/dspace community-filiator -s -p (handle of the dummy community)
-c (handle of a community to be deleted)
/dspace/bin/dspace community-filiator -s -p (handle of the dummy community)
-c (handle of next community to be deleted)
/dspace/bin/dspace community-filiator -s -p (handle of the dummy community)
-c (handle of next community to be deleted)
and so on, about 100 lines, in a file. We are using linux, so I just put
#!/bin/bash
at the top and made the thing executable and then ran it. I got all the
handles from grabbing the source code of the community-list web page and
parsing it. Then when all the communities to be gotten rid of were under
the dummy community, I just deleted it with the web interface.Way faster
than doing it all from the web, but still a bit of a pain.I am going to
have to make a feature request - a person really should be able to do this
all from the command line.
Cheers -
Mark
On Wed, Mar 13, 2013 at 5:41 PM, Lighton Phiri <[email protected]>wrote:
> I thought that utility was merely meant for handling relationships. Do
> you mind sharing the script(s) and approach you used?
> Lighton Phiri
> http://lightonphiri.org
>
>
> On 13 March 2013 23:29, Mark Ehle <[email protected]> wrote:
> > I was able to script the community-filiator command to put all the
> unwanted
> > communities under a dummy community and then delete the dummy. Problem
> > solved.
> >
> > On Wed, Mar 13, 2013 at 2:56 PM, Mark Ehle <[email protected]> wrote:
> >>
> >> Folks -
> >>
> >> I have been working on a batch importing script that works most of the
> >> time just fine, but today it created around 100 bogus communities
> before I
> >> caught it. Rather than try to delete them from the web interface, is
> there a
> >> command line way to do that? I know that you can use the map files to
> delete
> >> collections, but not communities.
> >>
> >> Thanks -
> >>
> >> Mark
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Everyone hates slow websites. So do we.
> > Make your web apps faster with AppDynamics
> > Download AppDynamics Lite for free today:
> > http://p.sf.net/sfu/appdyn_d2d_mar
> > _______________________________________________
> > DSpace-tech mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/dspace-tech
> > List Etiquette:
> > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette