Hi,

Based on my reading of the "filter-media" code, I think the "-i" flag can 
also be used to reference a Community or Collection.  In that scenario, all 
Items in that Community or Collection will be processed.

See the code 
at: 
https://github.com/DSpace/DSpace/blob/main/dspace-api/src/main/java/org/dspace/app/mediafilter/MediaFilterScript.java#L227-L250

Tim

On Monday, November 7, 2022 at 8:21:23 AM UTC-6 Mark H. Wood wrote:

> On Mon, Nov 07, 2022 at 05:40:25AM -0800, Lewatle Johannes Phaladi wrote:
> > I have shared your respond with my colleagues to see if we can have 
> > solution. Is there anyway to run filter-media on community or collection.
> > 
> > maybe by breaking that index can make it complete the task.
>
> 'bin/dspace filter-media -h' shows that it can be run on individual
> items, but I see no option to process a single community or
> collection.
>
> You could make lists of item IDs in each collection and create
> scripts for 'bin/dspace read':
>
> filter-media -i 12345/1
> filter-media -i 12345/2
> ...
>
> This should be faster than running each item separately.
>
> -- 
> Mark H. Wood
> Lead Technology Analyst
>
> University Library
> Indiana University - Purdue University Indianapolis
> 755 W. Michigan Street
> Indianapolis, IN 46202
> 317-274-0749 <(317)%20274-0749>
> www.ulib.iupui.edu
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/4f9696e2-1b07-4401-bbd6-6cd9d4d46454n%40googlegroups.com.

Reply via email to