comses / catalog Goto Github PK
View Code? Open in Web Editor NEWWeb tools to annotate publications related to computational modeling
Home Page: http://catalog.comses.net
License: GNU General Public License v3.0
Web tools to annotate publications related to computational modeling
Home Page: http://catalog.comses.net
License: GNU General Public License v3.0
What base platform/technology should we use to develop the web tools?
Other language app frameworks would need to use https://drupal.org/project/rest_auth or something similar to auth with and delegate user / permissions management to Drupal
Exception
TypeError: reduce() of empty sequence with no initial value
(3 additional frame(s) were not displayed)
...
File "rest_framework/views.py", line 451, in dispatch
response = self.handle_exception(exc)
File "rest_framework/views.py", line 448, in dispatch
response = handler(request, *args, **kwargs)
File "catalog/core/views.py", line 271, in get
sqs = SearchQuerySet().autocomplete(name=request.GET.get('q', '')).models(Sponsor)
File "haystack/query.py", line 463, in autocomplete
return clone.filter(six.moves.reduce(operator.__and__, q
uery_bit
s))
When an invalid URL or email address is entered the form just says "Something went wrong, please verify form data". Instead it should display the DRF error message at the form input field location.
Create a django management command to generate a data out file of publications with the following data:
Publication Year, Lead Author, Publication Title, Journal Name, codeurl, docs, platform, sponsor1, sponsor2, ..., sponsorN
Note that for the multi valued sponsor field we'll need to keep track of the max number of sponsors N that we find in the data and create N sponsor fields for them. They will be mostly empty for those publications that only have a single sponsor for example.
If settings.ZOTERO_API_KEY
is not None, add Authorization: Bearer <settings.ZOTERO_API_KEY>
to the http header on each request
I'm not sure if the collection syntax is correct - another issue is that the tool says it is pulling 614 publications but it should only be pulling 544 from https://www.zotero.org/groups/workbench-cml/items/collectionKey/7DQ82DZ3
alllee% ./manage.py zotero_import --group=289063 --collection=7DQ82DZ3
Starting to import data from Zotero. Hang tight, this may take a while.
Number of Publications to import: 614
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/alllee/.virtualenvs/catalog/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
utility.execute()
File "/home/alllee/.virtualenvs/catalog/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/alllee/.virtualenvs/catalog/local/lib/python2.7/site-packages/django/core/management/base.py", line 390, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/alllee/.virtualenvs/catalog/local/lib/python2.7/site-packages/django/core/management/base.py", line 441, in execute
output = self.handle(*args, **options)
File "/home/alllee/work/comses/catalog/catalog/core/management/commands/zotero_import.py", line 235, in handle
self.generate_entry(json_data)
File "/home/alllee/work/comses/catalog/catalog/core/management/commands/zotero_import.py", line 214, in generate_entry
note = self.create_note(item['data'], item['meta'])
File "/home/alllee/work/comses/catalog/catalog/core/management/commands/zotero_import.py", line 197, in create_note
item.added_by = self.get_user(meta)
File "/home/alllee/work/comses/catalog/catalog/core/management/commands/zotero_import.py", line 50, in get_user
first_name, last_name = meta_data['createdByUser']['name'].strip().split(' ')
ValueError: need more than 1 value to unpack
Followups:
Try running ./manage.py zotero_import --group=289063 --collection=7DQ82DZ3
It first generates issues with lxml.html not being found that can be easily fixed by changing the import to from lxml import html
.
It then fails on what appear to be empty notes
modified data isn't working properly for contact_author_name: see https://catalog.comses.net/publication/633/curate/
currently pinned at 4.10.4, upgrade when django-haystack releases support for solr 5
restarting supervisord causes uwsgi to break horribly until a manual kill -9 on the parent process is issued. Need to fix so fab deploy will work properly
Sponsor has fields like Ministry de of Ecology, Energy, Sustainable Development and Sea
and
ACA Challenge Grants in Biodiversity, Foothills Research Institute-Chisholm-Dogrib Fire initiative grants, Sundre Forest Products LTD., Canon National Parks Science Scholarship for the Americas, University of Alberta and Parks Canada, NSERC
or
Alberta Innovates Technology Futures, Portland State University, Arizona State University, Uppsala University, and University of Cincinnati.
We can't always split by ,
here because in some cases the comma is separating multiple values and in others it is part of a singular name.
Failed to add documents to Solr: [Reason: Error 404 Not Found]
Try this: http://localhost:8983/solr/admin/cores
--collection=3HM4CEW5
determine how to store and organize data imported from zotero.
Looks like django rest framework 3.1 has backwards incompatible API changes to pagination:
http://www.django-rest-framework.org/api-guide/pagination/#pagination
As the curators are already attaching notes to the Note class we can it for Curator's comments by either merging note to publication instead of separate class or at-least we can get rid of tags field in the Note class as AFAIK we won't be using it for any purposes..
Unicode input in Sponsor field, e.g., Conacyt México in Publication 2019 causing PublicationSerializer.modified_data_text
to croak
It would be cool if we can create a visualization that correlates publications with geographical locations, interactive that can highlight which areas of the world are archiving their models, searchable by things like
Look into integrating pyzotero to manage access to zotero. We need to pull by collection and use API keys, this looks like a fairly clean API to zotero.
http://pyzotero.readthedocs.org/en/latest/#retrieving-collections
remove inheritance, merge Book/Thesis/Report/JournalArticle fields into Publication and add a type field to distinguish between them
add author names as additional filter using author: lastname
Similar to the google scholar link
add simple button to flag pub for further review
refactor the binding between Django models and django rest framework serializers
search results not displaying pagination
Signal processors might be the way to go about it.
strikethrough or something similar
Change search lists to link to the short form, and have a button to edit all publication details in that short form.
Along with the exception getting logged add the publication information like publication title, id etc.
ids: 1081 1082 1083 1251
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.