Support » Plugin: Books & Papers » Big potential

  • sangil


    The author of this plugin was very efficient! Already, many of my questions have been answered and now the plugin has been improved for me. Today I saw the update of the plugin!
    For users, please find {{ }} grammar for the conditional display.

    I have been trying to find a plugin like this for many years and finally this is the best fit for the website of my research group.
    And yet it can be improved in its presentation of papers.

    One issue is its formatting:
    In the setup menu, one can set up the format; here is the default format.
    [authors] [title] ([year]) [doi] [arxiv] [filelink] [supplementary].

    However this is not at all flexible — there is no “conditional” formatting.
    For instance, if the year is empty, then it should not produce (0).
    Typically papers are shown on the journal website as soon as they are accepted
    and those early-view papers have DOI numbers but no year, issue, volume.
    It would be nice to say something like
    [if year “([year])”] to display ([year]) only if it is nonzero and nonempty.

    Also, doi and arXiv link do not put hyperlinks automatically.

    And it would be nice if the title of the paper is linked to
    doi if available,
    and arxiv if doi is unavailable and arxiv is available.

    • This topic was modified 3 years ago by sangil.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author engraver


    Dear @sangil, thank you for your feedback! We will check possible bugs. However, conditional formatting is available. For example, {{[doi]}} will produce text only if [doi] tag is not empty.

    You can find a few examples here.

    Thread Starter sangil


    Wow! I didn’t know that conditional formatting is available. It should be the default! 😉

    Thread Starter sangil


    Here is my current setting:

    [authors]. {{<a href="[url]">}}[title]{{</a><!---[url]-->}}{{, [journal]}}{{, <b>[volume]</b>}}{{([issue])}}{{([year])}}{{, pp. [pages]}} {{ <a href="[doi]">doi:[doi]</a>}}{{, arXiv:<a href="[arxiv]">[arxiv]</a>}}

    * PROBLEM 1: {{[volume]}} shows up, even if I didn’t enter anything in the volume. The same goes to {{[issue]}}. These are integer variables and so by default if nothing is entered, then the number 0 will be the value but {{[volume]}} does not ignore it.
    So, in my case, () shows up, even though volume has not been entered.

    * PROBLEM 2: When “add a work”, there is no way to enter nothing in the field “journal”. I want to put my papers on arXiv, which has not been accepted to any journal yet.

    * PROBLEM 3: Importing the bib file did not work.
    Perhaps it may be an issue on null journals.
    === error output ===

    An error of type E_ERROR was caused in line 700 of the file /var/www/html/wp-content/plugins/books-papers/books-n-papers.php. Error message: Uncaught Error: Call to a member function importArticle() on null in /var/www/html/wp-content/plugins/books-papers/books-n-papers.php:700
    Stack trace:
    #0 /var/www/html/wp-includes/class-wp-hook.php(286): BNPP_BooksNPapers->printImportDataPage(”)
    #1 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #2 /var/www/html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #3 /var/www/html/wp-admin/admin.php(253): do_action(‘books-and-paper…’)
    #4 {main}

    Thread Starter sangil


    After updating {{ [volume] }} works as expected. Many thanks!
    By the way, {{ [journal] }} doesn’t seem to work as expected.
    For instance, {{, [journal]}} always print “,” even if the journal is empty.
    Could you check it? Thank you.

    Plugin Author frier


    Hey @sangil !
    All issues that you have mentioned should be fixed in the latest version, except for the bib import one. Unfortunately, I couldn’t reproduce the error on my side. Could you provide us with the sample of file (or its content) you have issues with, please?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Big potential’ is closed to new replies.