Integrating Fundref via Fundref Widget

<QueryDict: {u'abstract': [u''], u'title': [u'd'], u'csrfmiddlewaretoken': [u'iO4X7u8TAS6Ew6sTGu9mAEOr1QyH7d47'], u'has-funding': [u'True'], u'has-competing': [u'False'], u'funder-name-2': [u'Cambridge University Hospitals'], u'funder-name-3': [u'Fake Uni'], u'funder-name-0': [u''], u'funder-name-1': [u'Oxford University Hospitals NHS Trust'], u'section_id': [u'5'], u'funder-name-4': [u''], u'funder-name-5': [u''], u'award-number-3': [u'', u''], u'award-number-4': [u'', u''], u'award-number-5': [u'', u'1213'], u'award-number-2': [u'', u'Cam1', u'Cam2', u''], u'award-number-0': [u''], u'award-number-1': [u'', u'Ox1', u'Ox2', u'Ox3']}>
award_numbers = {k: v for k, v in award_number_dict.iteritems() if v and k.startswith('award-number-')}
{
u'award-number-0': [u''],
u'award-number-1': [u'', u'Ox1', u'Ox2', u'Ox3'],
u'award-number-2': [u'', u'Cam1', u'Cam2', u''],
u'award-number-3': [u'', u''],
u'award-number-4': [u'', u''],
u'award-number-5': [u'', u'1213']
}
award_numbers = {k: filter(None, v) for k, v in award_number_dict.iteritems() if v and k.startswith('award-number-')}
{
u'award-number-0': [],
u'award-number-1': [u'Ox1', u'Ox2', u'Ox3'],
u'award-number-2': [u'Cam1', u'Cam2'],
u'award-number-3': [],
u'award-number-4': [],
u'award-number-5': [u'1213']
}

 by the author.

--

--

Pub Tech developer for Birkbeck CTP

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andy Byers

Andy Byers

Pub Tech developer for Birkbeck CTP