Problem/Motivation

Why this issue is filed

Adding a reference to a content node (using integration with the footnotes module) requires knowing the citekey. The problem is that that the citeky was not displayed in the biblio list of references, though documentation said it would be, and the setting to display it was configured.

Steps to reproduce the problem

The following is my experience; it may or may not work for you, but is what I did that produced the problem.

Enable the base biblio module, configure citekeys to display, and create a reference. The citekey will be visible at http://your-drupal-site/biblio.

Now enable the Biblio - CiteProc module. Visit the biblio list again, and the citekeys will have disappeared.

Now disable the Biblio - CiteProc module. Visit the biblio list again, and the citekeys will be there again.

Comments

snowmountain’s picture

Issue summary: View changes
snowmountain’s picture

Issue summary: View changes
snowmountain’s picture

I found a way to get the citekey to show when the CiteProc module was enabled.

This module's code was new to me. I have not extensively tested this, eg, not for inline references.

But, for what it's worth, this is what I found that worked for me:

In the file sites/all/modules/biblio/modules/CiteProc/CSL.inc, in function render($data, $mode = NULL), I added one line of code (near line 1437):

$text = '<span class="citekey">[' . check_plain($data->biblio_citekey) . '] </span>' . $text;

before the if statement.

The class and span were added so I could use CSS to hide the citekey in footnotes of content nodes (when biblio was used in conjunction with the footnotes module).

snowmountain’s picture

StatusFileSize
new611 bytes

Here is a patch.

One limitation of this patch: there is a configuration setting to display, or not display, the citekey.

This patch bypasses that configuration setting, and the citekey is always displayed.

However, by using the tag with the citekey class, css can hide it in certain cases.