Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

sources : manage bibliographic sources

The lino_xl.lib.sources plugin adds the notions for managing your bibliographic sources, including lists of sources, authors and licenses.

About this document

Examples in this document use the lino_book.projects.noi2 demo project.

>>> from lino_book.projects.noi2.startup import *

Publisher ‣ Sources.

Authors and Licenses can be configured via Configure ‣ Publisher ‣ Authors and Configure ‣ Publisher ‣ Licenses.

>>> show_menu_path('sources.Sources')
Publisher --> Sources
>>> show_menu_path('sources.Authors')
Configure --> Publisher --> Authors
>>> show_menu_path('sources.Licenses')
Configure --> Publisher --> Licenses
>>> rt.show('sources.Sources')
==== =========================================== ======================================= =======================================================================================================
 ID   Title                                       Author                                  URL
---- ------------------------------------------- --------------------------------------- -------------------------------------------------------------------------------------------------------
 1    Private collection                          Luc Saffre
 2    The Hitchhiker's Guide to the Galaxy        Douglas Adams (1952-11-03—2001-11-05)
 3    Crossroads, Kilham West Field               Christine Johnstone                     https://commons.wikimedia.org/wiki/File:Crossroads,_Kilham_West_Field_-_geograph.org.uk_-_2097672.jpg
 4    Haunted House - geograph.org.uk - 6141456   Derek Harper                            https://commons.wikimedia.org/wiki/File:Haunted_House_-_geograph.org.uk_-_6141456.jpg
 5    People talking (3945337913).jpg             Herman Theodore Bohlman (*1872-04-15)   https://commons.wikimedia.org/wiki/File:People_talking_(3945337913).jpg
 6    History of PDF - Wikipedia                                                          https://en.wikipedia.org/wiki/History_of_PDF
 7    KLPR
 8    Gotteslob
 9                                                                                        https://www.lauluraamat.ee/2020/11/0017-ligidal-on-jumal.html
 10                                                                                       https://eelk.ee/doc/lauluraamat/pdf/KLPR-350.pdf
 11                                                                                       https://en.wikipedia.org/wiki/Wer_nur_den_lieben_Gott_l%C3%A4%C3%9Ft_walten
==== =========================================== ======================================= =======================================================================================================
>>> rt.show('sources.Authors')
============ =================== ============
 Last name    First name          Birth date
------------ ------------------- ------------
 Adams        Douglas             1952-11-03
 Bach         Johann Sebastian    1685-00-00
 Bohlman      Herman Theodore     1872-04-15
 Harper       Derek
 Johnstone    Christine
 Maurach      Carl Peter Ludwig   1824-00-00
 Neander      Joachim             1650-00-00
 Neumark      Georg               1621-00-00
 Saffre       Luc
 Tersteegen   Gerhard             1697-00-00
============ =================== ============
>>> rt.show('sources.Licenses')
=========== ======================== ======================== ========================
 Reference   Designation              Designation (bn)         Designation (de)
----------- ------------------------ ------------------------ ------------------------
 pd          Public domain            Public domain            Public domain
 reserved    All rights reserved      All rights reserved      All rights reserved
 cc by       Creative Commons BY      Creative Commons BY      Creative Commons BY
 cc by-sa    Creative Commons BY SA   Creative Commons BY SA   Creative Commons BY SA
 cc by-nd    Creative Commons BY-ND   Creative Commons BY-ND   Creative Commons BY-ND
=========== ======================== ======================== ========================
lino_xl.lib.sources.user_agent

The string to use as the User-Agent header when looking up the title of a source.

See for example Wikimedia requirements https://foundation.wikimedia.org/wiki/Policy:Wikimedia_Foundation_User-Agent_Policy

CoolBot/0.0 (https://example.org/coolbot/; coolbot@example.org) generic-library/0.0