Metadata-Version: 2.4
Name: NEMO-publications
Version: 1.4.1
Summary: Plugin adding publications that users can submit and link to tools/projects using the DOI
Author-email: Atlantis Labs LLC <atlantis@atlantislabs.io>
License: MIT License
        
        Copyright (c) 2023 Atlantis Labs LLC
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://gitlab.com/nemo-community/atlantis-labs/nemo-publications
Project-URL: Changelog, https://gitlab.com/nemo-community/atlantis-labs/nemo-publications/-/releases
Project-URL: Issues, https://gitlab.com/nemo-community/atlantis-labs/nemo-publications/-/issues
Project-URL: CI, https://gitlab.com/nemo-community/atlantis-labs/nemo-publications/-/pipelines
Keywords: NEMO
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Framework :: Django :: 4.2
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: django
Requires-Dist: bibtexparser
Requires-Dist: python-dateutil
Requires-Dist: requests
Provides-Extra: nemo-ce
Requires-Dist: NEMO-CE>=7.0.0; extra == "nemo-ce"
Provides-Extra: nemo
Requires-Dist: NEMO>=7.0.0; extra == "nemo"
Provides-Extra: dev-tools
Requires-Dist: pre-commit; extra == "dev-tools"
Requires-Dist: djlint; extra == "dev-tools"
Requires-Dist: black; extra == "dev-tools"
Dynamic: license-file

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/NEMO-Publications?label=python)](https://www.python.org/downloads/release/python-3110/)
[![PyPI](https://img.shields.io/pypi/v/nemo-publications?label=pypi%20version)](https://pypi.org/project/NEMO-Publications/)
<img src="https://img.shields.io/pypi/dm/nemo-publications?color=blue&label=pypi%20downloads">

# NEMO Publications

This plugin for NEMO adds the ability to manage Publications.
* Search and add publication using DOI
* Link publications to authors (NEMO Users), Tools and Projects

# Compatibility:

### NEMO-Publications >= 1.0.0
* NEMO >= 4.7.0
* NEMO-CE >= 1.7.0

# Installation

`pip install NEMO-publications`

# Add NEMO Publications

in `settings.py` add to `INSTALLED_APPS`:

```python
INSTALLED_APPS = [
    '...',
    'NEMO_publications',
    '...'
    'NEMO',
    '...'
]
```

# Usage
Add choice to "Landing page choices" in Detailed Administration
* Set URL to `/publications/`
* Use suggested icon located in `resources/icons/publications.png`

For the publication jumbotron, you can use the URL `/publications/jumbotron/`

# Customizations
Go to `Customization -> Publications` to enable the landing page widget and set parameters for the carousel like interval time and number of recent publications to display. 

# Settings
The following settings are used by default:

```python
PUBLICATION_SETTINGS = {
    "timeout": 15,
    "doi_search_url": "http://dx.doi.org/{}",
    "headers": [
        {"Accept": "application/x-bibtex"}, 
        {"Accept": "text/bibliography; style=bibtex"}
    ]
}
```

To override any of them, simply add the ones you want to replace in `settings.py` as follows:
```python
PUBLICATION_SETTINGS = {
    "timeout": 45, # Increase timeout to 45s
}
```
