teachPress Enhancements for Publication Management (Updated)


PublicationThumbTeachPress is a WordPress plugin for managing courses (which I do not need here) and publications with support for BibTeX and referencing publications from posts.

The teachPress BibTeX database already contains most of the information about the publications in a structured format. So instead of manually replicating the information in a post, I decided to extend teachPress, such that I can reuse all the BibTeX information with shortcodes.

The goal was to have most standard information (authors, title, publishing information, abstract, download link) only in the publication metadata. Further information, such as related work, special comments etc. could then flexibly be added to the post as needed.

Usage

The extensions make creating a publications post very simple:

  1. Import a BibTeX file or enter the data as a new publication
  2. Complete the publication entry, e.g. by entering an abstract, keywords/tags, link to the publication, …
  3. Check “create and link new post” at the bottom of the right column
  4. Save

This will not only create a publication, but also the associated post and link them both. All keywords of the publication will be added as tags to the publication. You can customize the created publication afterwards. For examples, have a look at my publications or a sample.

Download

The modifications are available as a patch against teachPress 4.1.0. (Update: Most of it has been integrated into teachPress 4.2. Thanks, Michael!)

Reference

The automatically created posts look as follows:

[tpsingle]<!--more-->

[tpabstract]

[tpbibtex]

This can be amended as desired.

 HTML Formatting in the Abstract

<B>, <I>, <EM>, <SUP>, <SUB>, <OL>, <UL>, <LI> and <P> tags in the abstract are converted to the matching LaTeX2e codes when displaying or exporting BibTeX.

Bugs

When the automatic post generation creates a new tag, this tag is not associated with any language. If you use WP i18n (and probably also WPML, on which it is based), the tag might only work halfway:

You can avoid this by creating any tags ahead of time or run the following SQL command on your database after (assuming your default language is English):

UPDATE wp_icl_translations SET language_code='en'
WHERE language_code='' AND element_type='tax_post_tag';

I consider this a bug of WP-i18n; however, if anyone has a clean workaround, please let me know.

Let’s stay in touch!

Receive a mail whenever I publish a new post.

About 1-2 Mails per month, no Spam.

Follow me on the Fediverse

Web apps


One response to “teachPress Enhancements for Publication Management (Updated)”

Leave a Reply

Only people in my network can comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.