bin.referencelinker

referencelinker.py: a tool to link parenthetical references to ref-list elements in a JATS file

Usage:

referencelinker.py scan <input> [options] referencelinker.py link <input> <source_id> <dest_id> [options] referencelinker.py prune <input> [options]

Options:
-d, --debug

Enable debug output

--interactive

Prompt the user to assist in interactive tagging

-h, --help

Show this screen.

--nogit

Disable git debug filesystem (only of use with –debug)

-v, --version

Show version.

-z, --zotero

Enable Zotero integration for references.

Module Contents

bin.referencelinker.__author__ = Martin Paul Eve[source]
bin.referencelinker.__email__ = martin@martineve.com[source]

A class that looks for references to link in an NLM file and joins them to the corresponding reference entry

class bin.referencelinker.ReplaceObject(global_variables, paragraph, reference_to_link)[source]

Bases: debug.Debuggable

class bin.referencelinker.ReplaceStub(global_variables, paragraph, replace_text, tree, manipulate, link_text='TO_LINK', length_ignore=False)[source]

Bases: debug.Debuggable

replace_in_text(self, element, link_text)[source]
replace_in_tail(self, element, link_text)[source]
replace_in_text_and_update_others(self, object_list, link_text)[source]
class bin.referencelinker.ReferenceLinker(global_variables)[source]

Bases: debug.Debuggable

process_ibid_authors(self, ref_items)[source]
clean_ref_items(self, tree, ref_items, manipulate)[source]
run(self, interactive)[source]
search_references(self, search_term, ref_items, manipulate, input_block)[source]
cleanup(self)[source]
extract_contents(self, p)[source]
handle_input(self, manipulate, opts, p, prompt, ref_items, sel, candidates=None, tree=None)[source]
run_prompt(self)[source]
prune(self)[source]
bin.referencelinker.main()[source]