- πΊπΈUnited States mark_fullmer Tucson
Individual sites could also potentially rewrite such URLs as actual hyperlinks by implementing
HOOK__preprocess_bibcite_citation()
, which provides access to the already-rendered citation. Presumably you could use regular expressions to find/replace specific markup with hyperlinks. This would not be as elegant a solution as using Lambda functions to modify the citation processor itself, as described in https://github.com/seboettg/citeproc-php#use-lambda-functions-to-setup-c... , but might be more straightforward for some developers. Thanks. Yes, that should be possible but because I also want to put the title into a span, I would have to rerender the whole citation in
HOOK__preprocess_bibcite_citation()
.
This can be avoided by overriding the BibCiteProcessor plugin (citeproc-php) withHOOK_bibcite_bibcite_processor_info_alter()
and passing the lambda functions toCiteProc()
inrender()
there.- πΊπΈUnited States mark_fullmer Tucson
Okay, changing this to a "Support request." Let's try to add some documentation that shows example usage of both
HOOK__preprocess_bibcite_citation()
andHOOK_bibcite_bibcite_processor_info_alter()
This is the first time I am posting; unsure how to proceed. If appropriate I can supply some code snippets related to the
info_alter
option.- πΊπΈUnited States mark_fullmer Tucson
This is the first time I am posting; unsure how to proceed. If appropriate I can supply some code snippets related to the info_alter option.
Code snippets in a comment would be a great start. I can then move them into a new page under the documentation at https://www.drupal.org/docs/contributed-modules/bibliography-citation β