Script-based filters for filtering out sub-versions

fbungarz
Posts: 3303
Joined: 08 Dec 06 5:03
Location: Galapagos, Ecuador

Re: Script-based filters for filtering out sub-versions

Post by fbungarz » 12 Jan 16 11:17

Isn't that suitable for you?
Reading your explanation, it took me a while to figure out what your scripts actually do...

For my own use I thus renamed your scripts:

Filter Out All SubVersions = Show Only Main Versions

Filter Out Redundant SubVersions = Show Main Versions and non-versioned images

Cheers,
Frank

vlad
Posts: 969
Joined: 01 Sep 08 15:20

Re: Script-based filters for filtering out sub-versions

Post by vlad » 12 Jan 16 12:42

Sorry Frank, but I think your summary is not correct. Let me try to sketch my own summary:

Filter Out All SubVersions = Show Main Versions and non-versioned images

Filter Out Redundant SubVersions = Show non-versioned images + Qualifying Versions
(Qualifying Version = Main Version, if present in the current collection; otherwise: one of the displayed sub-versions)

Please note that the two scripts have the same effect if and only if the versioned images in the current collection include all the corresponding main versions.

(Sorry, I've found no simpler way to summarize the functionality. Hopefully, an example will clarify it.)

Example:

Let's say Img_Main, Img_SubVersion_1, Img_SubVersion_2 is a version set and Img_NonVersioned is a non-versioned image.

Case 1: current collection shows all 4 images: (Img_Main, Img_SubVersion_1, Img_SubVersion_2, Img_NonVersioned)

Filter Out All SubVersions: displays (Img_Main, Img_nonVersioned)
Filter Out Redundant SubVersions: displays (Img_Main, Img_nonVersioned)

Case 2: current collection shows: (Img_SubVersion_1, Img_SubVersion_2, Img_NonVersioned)

Filter Out All SubVersions: displays only (Img_nonVersioned)
Filter Out Redundant SubVersions: displays (Img_SubVersion_1, Img_nonVersioned)

Please note that both filters satisfy the fundamental filtering property: the filtered collection is always a (strict or non-strict) subset of the initial collection.

Does that make sense and match your experience?

Cheers,
Vlad

fbungarz
Posts: 3303
Joined: 08 Dec 06 5:03
Location: Galapagos, Ecuador

Re: Script-based filters for filtering out sub-versions

Post by fbungarz » 13 Jan 16 22:14

Hi Vlad,
OK that makes sense. Though I must say I have hardly ever come across the second case/scenario...
Cheers,
Frank

Post Reply