• Resolved Mark

    (@codeispoetry)


    In some kinds of libraries there is content you may not want included by default (while still having the possibility to display it when you want). It would be wonderful if we could just tell ZotPress to exclude items with a given tag.

    Proposal: Perhaps a simple tags_exclude shortcode would help (the main tags would not change in functionality), like so:

    [zotpress tags_exclude="exclude-from-main"]

    • This topic was modified 6 years, 1 month ago by Mark.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Mark

    (@codeispoetry)

    Update to make this request more concrete. Consider the case of a publication list derived from a group library that contains peer-reviewed work and preprints. Sometimes it is desirable to list the preprints separately.

    Listing a subset of items is easy if they’re tagged (or if there are few enough to select them with item keys). But excluding same subset from a larger list (for instance, to have a list of preprints and separately the peer-reviewed papers) is not currently possible. This is a key feature for many academic publication lists.

    Since we already have tags, I though tags_exclude would make most sense, hence my proposal. I’d be very happy with a quick fix that accomplished that.

    (The most general solution would also allow users to exclude items by item keys, item type, or collection: all eminently sensible options.)

    Thread Starter Mark

    (@codeispoetry)

    bumping this thread in the hope @kseaborn can comment on feasibility; also to note the related, open issue that multiple tags should probably produce the set intersection, not union

    Plugin Author Katie

    (@kseaborn)

    Please see the original thread you linked and see if the inclusive attribute works for this case.

    Thread Starter Mark

    (@codeispoetry)

    I probably don’t get it but even though inclusive=no works for the other case (which is awesome!), it doesn’t seem to address the use case where I’d want to exclude some set of items that have a particular tag or tags. So the request is to be able to do sth like this:

    [zotpress author="Roberts" tagsexclude="rubbish"]

    With the resulting list being all publications by Alice except those tagged as rubbish.
    The more general case would be to allow items to be excluded from a list based on whatever feature (e.g. item type, like preprints, or collection); but I was hoping tags would be an obvious first solution.

    • This reply was modified 5 years, 3 months ago by Mark.
    Plugin Author Katie

    (@kseaborn)

    I see what you mean now, and no, the plugin doesn’t do that. If possible, I would specify the tags or use a collection to differentiate the items.

    Thread Starter Mark

    (@codeispoetry)

    No worries, this one’s easy to work around!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Simple feature request: exclude tag’ is closed to new replies.