Skip to content

Can we replace the manually maintained publication list with an automatic one? #133

Closed
donald opened this issue May 30, 2025 · 2 comments
Closed

Comments

@donald
Copy link
Member

donald commented May 30, 2025

No description provided.

@donald
Copy link
Member Author

donald commented May 30, 2025

I guess we can just retrieve data from pure [1] via its API [2] [3] and feed it into the django table.

mpicms=# \d  publications_publication;
                                      Table "public.publications_publication"
   Column   |          Type          | Collation | Nullable |                       Default                        
------------+------------------------+-----------+----------+------------------------------------------------------
 id         | integer                |           | not null | nextval('publications_publication_id_seq'::regclass)
 title      | text                   |           | not null | 
 groups     | text                   |           | not null | 
 authors    | text                   |           | not null | 
 source     | text                   |           | not null | 
 doi        | character varying(100) |           | not null | 
 sort_order | integer                |           |          | 
Indexes:
    "publications_publication_pkey" PRIMARY KEY, btree (id)

[1] https://pure.mpg.de/
[2]: https://pure.mpg.de/rest/swagger-ui.html
[3]: https://colab.mpdl.mpg.de/mediawiki/PubMan_REST_API_Documentation#POST_.7Bbase_url.7D.2Frest.2Fitems.2Fsearch

@donald
Copy link
Member Author

donald commented Jun 2, 2025

Import script: https://github.molgen.mpg.de/donald/autopubs/blob/main/autopubs.py
Required bugfix: #134

@donald donald closed this as completed Jun 2, 2025
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant