Package: djangocms-lab-publications
djangocms-lab-publicationsis a Django app for adding sets of scientific publications with PubMed metadata to a Django site with django CMS-specific features. It usespubmed-lookupto query PubMed using PubMed IDs or PubMed URLs.Source code is available on GitHub atmfcovington/djangocms-lab-publications. Information about and source code forpubmed-lookupis available on GitHub atmfcovington/pubmed-lookup.InstallationConfigurationMigrationsUsageRevision HistoryInstallationPyPIpipinstalldjangocms-lab-publicationsGitHubpipinstallhttps://github.com/mfcovington/djangocms-lab-publications/releases/download/0.1.5/djangocms-lab-publications-0.1.5.tar.gzConfigurationInstall django CMS and start a project, if one doesn’t already exist.Unless you use this app as part ofdjangocms-lab-siteor plan to style the app from scratch, you will want to choose theUse Twitter Bootstrap Themeoption (when runningdjangocms) and then edit the resultingtemplates/base.html. This will add style that looks like Bootstrap 2. To use Bootstrap 3 styling, remove the following line for thebootstrap-theme.min.cssstylesheet fromtemplates/base.html:<linkrel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.x.x/css/bootstrap-theme.min.css">Do the following insettings.py:Addcms_lab_publicationsand its dependencies toINSTALLED_APPS:INSTALLED_APPS=(# ...'taggit','taggit_helpers','cms_lab_publications','easy_thumbnails','filer','mptt',)Addeasy_thumbnailsettings:# For easy_thumbnails to support retina displays (recent MacBooks, iOS)THUMBNAIL_HIGH_RESOLUTION=TrueTHUMBNAIL_QUALITY=95THUMBNAIL_PROCESSORS=('easy_thumbnails.processors.colorspace','easy_thumbnails.processors.autocrop','filer.thumbnail_processors.scale_and_crop_with_subject_location','easy_thumbnails.processors.filters',)THUMBNAIL_PRESERVE_EXTENSIONS=('png','gif')THUMBNAIL_SUBDIR='versions'Ifcms_lab_publicationsis 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’sBio.Entrez.Parser.DataHandlerwhich is used bypubmed_lookup, a dependency ofcms_lab_publications.# In this snippet, the Apache user is 'www-data' and
# the Apache user's home directory is '/var/www/'sudosu-rootcd/var/www/chown:www-datachmodg+smkdir-p/var/www/.config/biopython/Bio/Entrez/DTDsMigrationsCreate and performcms_lab_publicationsmigrations:pythonmanage.pymakemigrationscms_lab_publicationspythonmanage.pymigrateUsageStart the development server:pythonmanage.pyrunserverVisit:http://127.0.0.1:8000/Create a CMS page.Insert thePublication Set Plugininto a placeholder field.Version 0.1.5Revision History0.1.5 2015-11-09Fix styling of vertical filter selector buttons and boxes in response to changes indjangocms-admin-styleAdd bottom margin to non-paginated publication listsRemove ‘Abstract’ button from modalResolve Django 1.8 warningsUpdate README with more complete and accurate instructions0.1.4 2015-06-24Allow manual entry of Publications that don’t have a PubMed IDUse django-taggit-helpers in adminRename deprecated queryset methodConfigure bumpversion & wheel for easier distributionConvert README and changelog to reStructuredText for distribution via PyPIMinor changes to admin interfaceChange pagination description to ‘pubs per page’Add/update help text for ‘tags’ and ‘pagination’0.1.3 2015-06-03Allow bulk PubMed queries for a Publication SetAllow a Publication Set to be created without publicationsDefault to no pagination (hides page ‘1’ button for short publication sets)Set default Publication Set label to ‘Publications’Admin improvementsPublication AdminReorder Publication Admin’s inlinesAdd year and PubMed ID to Publication Admin search fieldDisplay (and sort by) # of Publication Sets in Publication AdminPublication Set AdminIn Publication Set Admin, move publications from a tabular inline to a vertical filterReorder Publication Set Admin’s list display itemsFilter Publication Set records by whether its Bulk PubMed Query failedDisplay whether a Publication Set’s Bulk PubMed Query status is OKOtherUpdate and improve layout of help textAdd short descriptions for custom list display itemsAdd docstring for MissingAttachmentListFilter0.1.2 2015-05-27Expand documentation for installation and configurationAdd mini_citation field to PublicationHelps identify publication when in edit mode (without expanding PubMed Metadata fieldset)Helps naming associated files (PDF, Supplemental, and Image) by providing a base nameBumpspubmed-lookupdependency to version 0.1.1Many improvements to Publication and Publication Set AdminsRearrange Publication Admin fieldsetsAdd PublicationSetInline to PublicationAdminAdd save button across tops of Publication and Publication Set AdminsNow Powered by BlackinaDisplay whether a record has PDF/Supp/Image attachments in Publication AdminFilter PublicationAdmin by missing/existing attachmentsFilter Publication and Publication Set Admins by tags for the current model onlyShow (and sort by) ‘number of publications’ for records in Publication Set Admin0.1.1 2015-05-23Allow multiple Publication Set plugins per pageUse Publication Set’s name, not label, for__str__and ordering0.1.0 2015-05-22A Django app for adding sets of scientific publications with PubMed metadata to a Django site with django CMS-specific features