• Resolved rvalenzuela

    (@rvalenzuela)


    I am trying to use a multi-item reference. One of the references has only one author while the other has several. Therefore, I would like to use the etal attribute in the later reference. By using:

    [zotpressInText item=”{BXQG52QA},{PBGPBP69}” etal=”yes” style=”american meteorological society”]

    I get:

    ( et al., 2011; Ralph et al., 2011)

    instead of:

    ( Dettinger, 2011; Ralph et al., 2011)

    Any suggestions?

    Thanks in advance.

    https://ww.wp.xz.cn/plugins/zotpress/

Viewing 1 replies (of 1 total)
  • Thread Starter rvalenzuela

    (@rvalenzuela)

    I fixed this by making the following replacement in shortcode.intext.php:

    if ($etal == "yes") $item->author = substr($item->author, 0, strpos($item->author, ",")) . " <em>et al foo.</em>";

    for:

    if ($etal == "yes" && count(explode(",", $item->author)) > 2) $item->author = substr($item->author, 0, strpos($item->author, ",")) . " <em>et al.</em>";

    Now it renders correctly 🙂

Viewing 1 replies (of 1 total)

The topic ‘etal attribute’ is closed to new replies.