Map custom field so that it can be used in CSL citation

Created on 27 November 2024, 21 days ago

Problem/Motivation

I have a custom boolean field called columns (field_columns) created on the Journal Article reference type. This works well.
However, I need to add this to a citation so that when the field is checked it shows col. in the citation.

I can't seem to access the field in the mapping.

function mymodule_bibcite_csl_variable_map_alter(&$map) {
  $map['field_columns'] = 'columns';
}

And so

<choose>
  <if variable="columns">
    <text value="col."/>
  </if>
</choose>

Doesn't provide anything.

Any help would be greatly appreciated.

💬 Support request
Status

Active

Version

3.0

Component

Miscellaneous

Created by

🇨🇦Canada avo webworks Ottawa, Ontario, Canada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024