visual-framework / vf-wp

WordPress theme and plugins for Visual Framework integration
3 stars 6 forks source link

ENHANCEMENT - Publications list configuration #240

Open khawkins98 opened 4 years ago

khawkins98 commented 4 years ago

Echoes: https://gitlab.ebi.ac.uk/emblorg/backlog/issues/259

dbushell commented 4 years ago

We have this config for the (EMBL) Team Publications block plugin (and heading/limit):

team-publications

is that enough? I will update the README documentation as it doesn't include the search fields.

The plugin can be configured on deploy same as to how the Jobs and Members plugin are.

khawkins98 commented 4 years ago

Yeah, that ticket I referenced on GitLab was already sorted (I've now closed it).

The ask is to create a custom list of publications in the Gutenberg editor; I want to:

That is, don't give me all my publications, but show me publications C Z and then A.

Maybe we can do that by:

  1. Adding a "filter by DOI or pubMedId"
  2. Stacking 3 Gutenberg blocks up

Might also be a need to extend the contentHub here.

Snippet of EDR data:

      {
        "DOI": "10.1074/jbc.RA119.011774",
        "cfIssue": "4",
        "cfNameAbbrev": "J. Biol. Chem.",
        "cfResPublDate": "2020-02-24T00:00:00.000Z",
        "cfStartPage": "1091",
        "cfTitle": "Phosphatidylinositol 3,4-bisphosphate synthesis and turnover are spatially segregated in the endocytic pathway.",
        "cfVol": "295",
        "euroPubMedId": "31831620",
        "originalSource": "MED",
        "pubMedId": "31831620",
        "publYear": "2019",
        "srcAuthors": "Wang H, Loerke D, Bruns C, Müller R, Koch PA, Puchkov D, Schultz C, Haucke V",
        "srcJourName": "The Journal of biological chemistry"
      },
dbushell commented 4 years ago

Currently blocked by #248

khawkins98 commented 4 years ago

We should now be able to proceed; #248 is resolved.

dbushell commented 4 years ago

Hey @khawkins98 the existing block is using a limit query var however the Content Hub no longer seems to respect this. e.g.

https://dev.content.embl.org/api/v1/pattern.html?pattern=embl-team-publications&sort-field-value[changed]=DESC&title=Web%20Development&limit=3

should return only 3 items?

Also for the DOI and pubMedId are they added as &pubMedId=31831620 or is there more too it?

khawkins98 commented 4 years ago

Yeah, this seems like a regression. Should work:

image

https://docs.google.com/document/d/1ywOw18sx3ylP-bO63LEqGGowknuvxYTs5EBwAci1ISU/edit?ts=5bdc201d

@meladawy could you have a look?

dbushell commented 4 years ago

I've also notice the Groups theme template-publications.php which sets filter_keyword and filter_year is being ignored by the plugin. Which should allow the front-end user to filter publications on that page.

Note to self: refer to Jobs plugin template for example of using template search/filters.

khawkins98 commented 4 years ago

Issue now being worked on at https://gitlab.ebi.ac.uk/emblorg/backlog/issues/346

khawkins98 commented 4 years ago

Updated notes on this after our call on vf-wp today:

Fixes/updates

These were working but no longer seem to, it may be a "simple" template update needed. Link to template

Blocked