Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENHANCEMENT - Publications list configuration #240

Open
khawkins98 opened this issue Apr 24, 2020 · 9 comments
Open

ENHANCEMENT - Publications list configuration #240

khawkins98 opened this issue Apr 24, 2020 · 9 comments
Assignees
Labels
enhancement New feature or request High Priority: High

Comments

@khawkins98
Copy link
Contributor

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

@khawkins98 khawkins98 added the enhancement New feature or request label Apr 24, 2020
@khawkins98 khawkins98 added this to the Group site sprint milestone Apr 24, 2020
@dbushell
Copy link
Collaborator

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
Copy link
Contributor Author

khawkins98 commented Apr 28, 2020

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:

  • show N number of publications
  • in a custom order
  • filtering publications by:
    • DOI or
    • pubMedId

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
Copy link
Collaborator

Currently blocked by #248

@khawkins98
Copy link
Contributor Author

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

@dbushell
Copy link
Collaborator

dbushell commented May 7, 2020

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
Copy link
Contributor Author

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
Copy link
Collaborator

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
Copy link
Contributor Author

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

@khawkins98
Copy link
Contributor Author

khawkins98 commented May 18, 2020

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

@khawkins98 khawkins98 added the High Priority: High label May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request High Priority: High
Projects
None yet
Development

No branches or pull requests

2 participants