h(self._('Search for a person to attribute the paper to')+' </a> <br>')
return"\n".join(t_html)
def__tmpl_admin_records_table(self,form_id,person_id,bibrecids,verbiage_dict={'no_doc_string':'Sorry, there are currently no documents to be found in this category.',
'b_confirm':'Confirm',
'b_repeal':'Repeal',
'b_to_others':'Assign to other person',
'b_forget':'Forget decision'},
buttons_verbiage_dict={'mass_buttons':{'no_doc_string':'Sorry, there are currently no documents to be found in this category.',
'b_confirm':'Confirm',
'b_repeal':'Repeal',
'b_to_others':'Assign to other person',
'b_forget':'Forget decision'},
'record_undecided':{'alt_confirm':'Confirm!',
'confirm_text':'Confirm record assignment.',
'alt_repeal':'Rejected!',
'repeal_text':'This record has been repealed.'},
'record_confirmed':{'alt_confirm':'Confirmed.',
'confirm_text':'This record assignment has been confirmed.',
'alt_forget':'Forget decision!',
'forget_text':'Forget assignment decision',
'alt_repeal':'Repeal!',
'repeal_text':'Repeal record assignment'},
'record_repealed':{'alt_confirm':'Confirm!',
'confirm_text':'Confirm record assignment.',
'alt_forget':'Forget decision!',
'forget_text':'Forget assignment decision',
'alt_repeal':'Rejected!',
'repeal_text':'Repeal this record assignment.'}},
show_reset_button=True):
'''
Generate the big tables for the person overview page
@param form_id: name of the form
@type form_id: string
@param person_id: Person ID
@type person_id: int
@param bibrecids: List of records to display
@type bibrecids: list
@param verbiage_dict: language for the elements
@type verbiage_dict: dict
@param buttons_verbiage_dict: language for the buttons
h('<br>NOTE: please note the a number is appended automatically to the name displayed above. This cannot be manually triggered so to ensure unicity of IDs.')
h('To change the number if greater then one, please change all the other names first, then updating this one will do the trick. </div>')
h('</form> </div></div>')
userid=get_uid_from_personid(person_id)
h('<div> <br>')
h('<strong> Internal IDs </strong> <br>')
ifuserid:
email=get_email(int(userid))
h('UserID: INSPIRE user %s is associated with this profile with email: %s'%(str(userid),str(email)))
else:
h('UserID: There is no INSPIRE user associated to this profile!')
%(CFG_SITE_URL,self._("Confirmation needed to continue")))
h(self._('The result of this request will be visible immediately but we need your confirmation to do so for this paper has been manually claimed before'))
h('<p><b>Congratulations! you have now successfully connected to INSPIRE via arXiv.org!</b></p>')
h('<p>Right now, you can verify your'
' publication records, which will help us to produce better publication lists and'
' citation statistics.'
'</p>')
h('<p>We are currently importing your publication list from arXiv.org .'
'When we\'re done, you\'ll see a link to verify your'
' publications below; please claim the papers that are yours '
' and remove the ones that are not. This information will be automatically processed'
' or be sent to our operator for approval if needed, usually within 24'
' hours.'
'</p>')
h('If you have '
'any questions or encounter any problems please contact us here: '
'<a rel="nofollow" href="mailto:%s">%s</a></p>'
%(CFG_BIBAUTHORID_AUTHOR_TICKET_ADMIN_EMAIL,
CFG_BIBAUTHORID_AUTHOR_TICKET_ADMIN_EMAIL))
return"\n".join(html)
deftmpl_welcome(self):
'''
SSO landing/welcome page.
'''
html=[]
h=html.append
h('<p><b>Congratulations! you have successfully logged in!</b></p>')
h('<p>We are currently creating your publication list. When we\'re done, you\'ll see a link to correct your '
'publications below.</p>')
h('<p>When the link appears we invite you to confirm the papers that are '
'yours and to reject the ones that you are not author of. If you have '
'any questions or encounter any problems please contact us here: '
'<a rel="nofollow" href="mailto:%s">%s</a></p>'
%(CFG_BIBAUTHORID_AUTHOR_TICKET_ADMIN_EMAIL,
CFG_BIBAUTHORID_AUTHOR_TICKET_ADMIN_EMAIL))
return"\n".join(html)
deftmpl_claim_profile(self):
'''
claim profile
'''
html=[]
h=html.append
h('<p>Unfortunately it was not possible to automatically match your arXiv account to an INSPIRE person profile. Please choose the correct person profile from the list below.')
h('If your profile is not in the list or none of them represents you correctly, please select the one which fits you best or choose '
'to create a new one; keep in mind that no matter what your choice is, you will be able to correct your publication list until it contains all of your publications.'
' In case of any question please do not hesitate to contact us at <a rel="nofollow" href="mailto:%s">%s</a></p>'%(CFG_BIBAUTHORID_AUTHOR_TICKET_ADMIN_EMAIL,