lidia-zotero

Zotero plugin for capturing PDF reader annotations for the LIDIA project

https://github.com/centrefordigitalhumanities/lidia-zotero

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.0%) to scientific vocabulary

Keywords

annotation linguistics zotero-plugin
Last synced: 6 months ago · JSON representation ·

Repository

Zotero plugin for capturing PDF reader annotations for the LIDIA project

Basic Info
  • Host: GitHub
  • Owner: CentreForDigitalHumanities
  • License: bsd-3-clause
  • Language: JavaScript
  • Default Branch: develop
  • Homepage: https://lidia.readthedocs.io/
  • Size: 545 KB
Statistics
  • Stars: 1
  • Watchers: 3
  • Forks: 0
  • Open Issues: 7
  • Releases: 18
Topics
annotation linguistics zotero-plugin
Created over 3 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License Citation

README.md

LIDIA Annotations

Zotero plugin for capturing PDF reader annotations in a structured format for the LIDIA project.

The project is set up as a bootstrapped plugin for Zotero 6 and 7. Tested only under Zotero 6.

About

This extension is used to create a database of linguistic diagnostic arguments (hence LiDiA). Users can add linguistic academic articles or books to a shared Zotero folder, create annotations using the PDF reader and use the extension to describe the diagnostic arguments they find in the text. The data is saved as Zotero annotation comments in YAML format. The data will then be read out in a separate web application [1] in order to create a database for the sake of the general community of linguists. The project, together with this Zotero extension, is being documented at [2].

This project is still under active development and is not ready for production use. The plugin was specifically created for use with the LIDIA project at Utrecht University, but the general principle of this Zotero extension may be applicable to other academic projects as well.

Feedback is welcome! You may create an issue or contact one of the developers.

[1] https://github.com/UUDigitalHumanitieslab/lidia [2] https://lidia.readthedocs.io/

Development

Make Zotero ready for the extension (you only need to do this once):

  • Create a new Zotero profile with zotero --ProfileManager (here named Develop).
  • Configure a custom data directory for the new profile (in this example we use ~/.zotero/zotero/Develop).
  • Start the new profile: zotero -P Develop and exit.
  • git clone git@github.com:UUDigitalHumanitieslab/lidia-zotero.git /path/to/Projects/LIDIA/lidia-zotero
  • mkdir $HOME/.zotero/zotero/Develop/extensions
  • echo "<absolute-path-to-source>/build" > $HOME/.zotero/zotero/Develop/extensions/lidia-zotero@cdh.uu.nl
  • sed -i '/.*extensions\.lastAppBuildId.*/d' $HOME/.zotero/zotero/Develop/prefs.js
  • sed -i '/.*extensions\.lastAppVersion.*/d' $HOME/.zotero/zotero/Develop/prefs.js

This will enable the plugin from the source directory.

Install npm packages: - npm install

Build and run: - Make changes in your source - npm run build - zotero -P Develop -purgecaches -ZoteroDebugText

Use of React

This extension uses React for rendering part of the UI, as was done earlier in Diego de la Hera's plugin zotero-cita. To make that possible we include a patch to react-dom that is included in zotero-cita as well. This patch forces the use of the XHTML namespace when creating elements, because Zotero 6 by default creates XUL elements.

React also needs to have access to global objects like window and document. This is achieved by passing the window object of the Zotero main window to the bundled JavaScript file when it is loaded in bootstrap.js using the Services.scriptloader.loadSubScript method.

Release

Releases and local builds are made using zotero-plugin.

To create a local build, run npm run build.

To create a release:

  • Switch to main branch
  • Bump the version in package.json (e.g. 0.2.1)
  • Create a signed/annotated tag with the same version (e.g. git tag --sign -m "Release v0.2.1" v0.2.1)
  • git push --follow-tags

Reading

Owner

  • Name: Centre for Digital Humanities
  • Login: CentreForDigitalHumanities
  • Kind: organization
  • Email: cdh@uu.nl
  • Location: Netherlands

Interdisciplinary centre for research and education in computational and data-driven methods in the humanities.

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: lidia-zotero
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Tijmen
    family-names: Baarda
    affiliation: 'Centre for Digital Humanities, Utrecht University'
    orcid: 'https://orcid.org/0000-0002-2577-4948'
  - given-names: Arjan
    family-names: Mossel
    affiliation: 'Centre for Digital Humanities, Utrecht University'
    orcid: 'https://orcid.org/0000-0001-7492-3789'
identifiers:
  - type: doi
    value: 10.5281/zenodo.10411579
    description: The concept DOI of the repository
repository-code: 'https://github.com/CentreForDigitalHumanities/lidia-zotero'
url: 'https://lidia.readthedocs.io/'
abstract: >-
  Zotero plugin for capturing PDF reader annotations for the
  LIDIA project
keywords:
  - Zotero
  - annotation
  - linguistics
license: BSD-3-Clause

GitHub Events

Total
  • Member event: 1
Last Year
  • Member event: 1

Committers

Last synced: 10 months ago

All Time
  • Total Commits: 215
  • Total Committers: 2
  • Avg Commits per committer: 107.5
  • Development Distribution Score (DDS): 0.433
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Tijmen Baarda t****a@g****m 122
Arjan Mossel a****l@g****m 93

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 46
  • Total pull requests: 35
  • Average time to close issues: 3 months
  • Average time to close pull requests: 17 days
  • Total issue authors: 2
  • Total pull request authors: 2
  • Average comments per issue: 0.85
  • Average comments per pull request: 0.86
  • Merged pull requests: 32
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • ar-jan (23)
  • tijmenbaarda (21)
Pull Request Authors
  • tijmenbaarda (18)
  • ar-jan (13)
Top Labels
Issue Labels
enhancement (6) bug (6)
Pull Request Labels

Dependencies

.github/workflows/release.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/setup-node v2.3.0 composite
  • actions/setup-python v4 composite
package-lock.json npm
  • 433 dependencies
package.json npm
  • esbuild ^0.18 development
  • patch-package ^6.2.2 development
  • zotero-plugin ^1.4.25 development
  • iso-639-3 ^3.0.1
  • react ^18.2.0
  • react-dom ^18.2.0
  • yaml ^1.10.2
vocabulary/requirements.txt pypi
  • openpyxl >=3.1.0