{"id":18246130,"url":"https://github.com/mfcovington/djangocms-lab-publications","last_synced_at":"2025-04-08T18:55:46.124Z","repository":{"id":32088469,"uuid":"35660527","full_name":"mfcovington/djangocms-lab-publications","owner":"mfcovington","description":"A Django app for adding sets of scientific publications with PubMed metadata to a Django site with django CMS-specific features","archived":false,"fork":false,"pushed_at":"2018-02-27T15:31:29.000Z","size":137,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-03-17T09:44:42.689Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/djangocms-lab-publications/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mfcovington.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-15T07:37:04.000Z","updated_at":"2018-07-02T10:38:24.000Z","dependencies_parsed_at":"2022-09-17T11:01:08.689Z","dependency_job_id":null,"html_url":"https://github.com/mfcovington/djangocms-lab-publications","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfcovington%2Fdjangocms-lab-publications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfcovington%2Fdjangocms-lab-publications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfcovington%2Fdjangocms-lab-publications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfcovington%2Fdjangocms-lab-publications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfcovington","download_url":"https://codeload.github.com/mfcovington/djangocms-lab-publications/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247909161,"owners_count":21016478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T09:24:40.877Z","updated_at":"2025-04-08T18:55:46.100Z","avatar_url":"https://github.com/mfcovington.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"**************************\ndjangocms-lab-publications\n**************************\n\n``djangocms-lab-publications`` is a Django app for adding sets of scientific publications with PubMed metadata to a Django site with django CMS-specific features. It uses ``pubmed-lookup`` to query PubMed using PubMed IDs or PubMed URLs.\n\nSource code is available on GitHub at `mfcovington/djangocms-lab-publications \u003chttps://github.com/mfcovington/djangocms-lab-publications\u003e`_. Information about and source code for ``pubmed-lookup`` is available on GitHub at `mfcovington/pubmed-lookup \u003chttps://github.com/mfcovington/pubmed-lookup\u003e`_.\n\n.. contents:: :local:\n\n\nInstallation\n============\n\n**PyPI**\n\n.. code-block:: sh\n\n    pip install djangocms-lab-publications\n\n\n**GitHub (development branch)**\n\n.. code-block:: sh\n\n    pip install git+http://github.com/mfcovington/djangocms-lab-publications.git@develop\n\n\nConfiguration\n=============\n\n- `Install django CMS and start a project \u003chttp://docs.django-cms.org/en/latest/introduction/install.html\u003e`_, if one doesn't already exist.\n\n  - Unless you use this app as part of `djangocms-lab-site \u003chttps://github.com/mfcovington/djangocms-lab-site\u003e`_ or plan to style the app from scratch, you will want to choose the ``Use Twitter Bootstrap Theme`` option (when running ``djangocms``) and then edit the resulting ``templates/base.html``. This will add style that looks like Bootstrap 2. To use Bootstrap 3 styling, remove the following line for the ``bootstrap-theme.min.css`` stylesheet from ``templates/base.html``:\n\n    .. code-block:: python\n\n        \u003clink rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.x.x/css/bootstrap-theme.min.css\"\u003e\n\n\n- Do the following in ``settings.py``:\n\n  - Add ``cms_lab_publications`` and its dependencies to ``INSTALLED_APPS``:\n\n    .. code-block:: python\n\n        INSTALLED_APPS = (\n            # ...\n            'taggit',\n            'taggit_helpers',\n            'cms_lab_publications',\n            'easy_thumbnails',\n            'filer',\n            'mptt',\n        )\n\n\n  - Add ``easy_thumbnail`` settings: \n\n    .. code-block:: python\n\n        # For easy_thumbnails to support retina displays (recent MacBooks, iOS)\n        THUMBNAIL_HIGH_RESOLUTION = True\n        THUMBNAIL_QUALITY = 95\n        THUMBNAIL_PROCESSORS = (\n            'easy_thumbnails.processors.colorspace',\n            'easy_thumbnails.processors.autocrop',\n            'filer.thumbnail_processors.scale_and_crop_with_subject_location',\n            'easy_thumbnails.processors.filters',\n        )\n        THUMBNAIL_PRESERVE_EXTENSIONS = ('png', 'gif')\n        THUMBNAIL_SUBDIR = 'versions'\n\n\n- If ``cms_lab_publications`` is used in a project served by Apache, a config directory must be created within the Apache user's home directory. This config directory is used by code within biopython's ``Bio.Entrez.Parser.DataHandler`` which is used by ``pubmed_lookup``, a dependency of ``cms_lab_publications``.\n\n  .. code-block:: sh\n\n      # In this snippet, the Apache user is 'www-data' and\n      # the Apache user's home directory is '/var/www/'\n      sudo su - root\n      cd /var/www/\n      chown :www-data\n      chmod g+s \n      mkdir -p /var/www/.config/biopython/Bio/Entrez/DTDs\n\n\nMigrations\n==========\n\nCreate and perform ``cms_lab_publications`` migrations:\n\n.. code-block:: sh\n\n    python manage.py makemigrations cms_lab_publications\n    python manage.py migrate\n\n\nUsage\n=====\n\n- Start the development server:\n\n.. code-block:: sh\n\n    python manage.py runserver\n\n\n- Visit: ``http://127.0.0.1:8000/``\n- Create a CMS page.\n- Insert the ``Publication Set Plugin`` into a placeholder field.\n\n\n*Version 0.1.5*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfcovington%2Fdjangocms-lab-publications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfcovington%2Fdjangocms-lab-publications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfcovington%2Fdjangocms-lab-publications/lists"}