Seif: No. Since all the subject templates are ORed together you end up matching everything. In fact just these two lines match everything:
su1 = Subject.new_for_values(interpretation="!"+DOCUMENT) su2 = Subject.new_for_values(interpretation="!"+AUDIO)
So the only way to construct "Others" would be via inclusive queries:
su_1 = Subject.new_for_values(interpretation=MINDMAP) ... su_n = Subject.new_for_values(interpretation=VCARD)
Including everything except the predefined categories. Needlnes to say this approach breaks down as soon as someone adds another file of unknown type since that will not match this query.
Seif: No. Since all the subject templates are ORed together you end up matching everything. In fact just these two lines match everything:
su1 = Subject. new_for_ values( interpretation= "!"+DOCUMENT) new_for_ values( interpretation= "!"+AUDIO)
su2 = Subject.
So the only way to construct "Others" would be via inclusive queries:
su_1 = Subject. new_for_ values( interpretation= MINDMAP) new_for_ values( interpretation= VCARD)
...
su_n = Subject.
Including everything except the predefined categories. Needlnes to say this approach breaks down as soon as someone adds another file of unknown type since that will not match this query.