papercite icon indicating copy to clipboard operation
papercite copied to clipboard

Static filtering on keywords

Open GIWebb opened this issue 6 years ago • 3 comments

I have been using "select=keywords allow="", to do static filtering since I first started using your wonderful plugin, which I would guess was around 5 years ago. It has worked until very recently.

An example that worked until very recently is [bibtex file=publications.bib template=publist-norel format=my-format sort=year order=desc process_titles=0 select=keywords allow="Concept Drift"]

I need a means of selecting subsets of my papers corresponding to different topics. Those topics overlap. It would be very potentially error prone to use a script to extract different bib files for each topic every time I update the master bib file, as I currently maintain 22 topics.

I have tried rolling back papercite as far as Version 4, which does not work with my web site. None of the 5.* versions provide the functionality with my current site. I have tried rolling back the other plugins that I recently updated, but that doesn’t seem to help either.

GIWebb avatar May 30 '18 14:05 GIWebb

I've been searching for this functionality quite a long. I'm trying unsuccesfully to filter on a keyword with an adapted version of your example. Is there any other way to do it?

jperezmartin avatar Dec 05 '18 15:12 jperezmartin

Hi there, We are also using this great plugin (thanks a lot for your effort ) for our group website and was wondering how to filter publications based on a "Keywords" field. See below one example of the bib entry:

@InProceedings{sejdiu-2018-dist-lod-stats-iswc,
  Title                    = {Dist{LODS}tats: {D}istributed {C}omputation of {RDF D}ataset {S}tatistics},
  Author                = {Sejdiu, Gezim and Ermilov, Ivan and Lehmann, Jens and Nadjib-Mami, Mohamed},
  Booktitle             = {Proceedings of 17th International Semantic Web Conference},
  Year                    = {2018},
  Keywords           = {2018 bde sansa sejdiu lehmann iermilov mami},
  Url                      = {http://jens-lehmann.org/files/2018/iswc_distlodstats.pdf}
}

The fild I'm interested in is:

Keywords           = {2018 bde sansa dsa sejdiu lehmann iermilov mami},

And the content on this fild could be used to filter publications based on the projects (e.g. sansa), or sub-groups (e.g. dsa) or even on authors publicationtag (e.g. sejdiu, but this is covered by filtering the authors).

Is there a workaround for this? I have tried with conditions (e..g @?**Keywords**=sansa@) but wasn't able to filter the desired publications.

Best regards,

GezimSejdiu avatar Jul 17 '19 07:07 GezimSejdiu

Thanks for suggesting this workaround. You need to use the ~ condition. The following TPL works for me, selecting all and only entries whose keyword field contains "time series".

@{group@
@?groupkey@<h3 class="papercite">@groupkey@</h3>@;groupkey@
<div class="papercite_bibliography">
 @{entry@
    @?keywords~.*time series.*@

... @;keywords@ @}entry@ @}group@

GIWebb avatar Dec 13 '19 04:12 GIWebb