posts=[["h","harvest only (h)"],["h-c","harvest and convert (h-c)"],["h-u","harvest and upload (h-u)"],["h-c-u","harvest, convert and upload (h-c-u)"],["h-c-f-u","harvest, convert, filter, upload (h-c-f-u)"]]
"""start area for administering harvesting from OAI repositories"""
titlebar=bibharvest_templates.tmpl_draw_titlebar(ln=CFG_SITE_LANG,title="Overview of sources",guideurl=guideurl,extraname="add new OAI source",extraurl="admin/bibharvest/bibharvestadmin.py/addsource")
text+=bibharvest_templates.tmpl_admin_w200_select(ln=CFG_SITE_LANG,title="Frequency",name="oai_src_frequency",valuenil="- select frequency -",values=freqs,lastval=oai_src_frequency)
text+=bibharvest_templates.tmpl_admin_w200_text(ln=CFG_SITE_LANG,title="BibConvert configuration file (if needed by postprocess)",name="oai_src_config",value=oai_src_config)
text+=bibharvest_templates.tmpl_admin_w200_text(ln=CFG_SITE_LANG,title="BibFilter program (if needed by postprocess)",name="oai_src_bibfilter",value=oai_src_bibfilter)
output+=bibharvest_templates.tmpl_print_info(CFG_SITE_LANG,"You selected a postprocess mode which involves conversion.")
output+=bibharvest_templates.tmpl_print_info(CFG_SITE_LANG,"Please enter a valid name of or a full path to a BibConvert config file or change postprocess mode.")
output+=bibharvest_templates.tmpl_link_with_args(ln=CFG_SITE_LANG,funcurl="admin/bibharvest/bibharvestadmin.py/index",title="Go back to the OAI sources overview",args=lnargs)
text+=bibharvest_templates.tmpl_admin_w200_select(ln=CFG_SITE_LANG,title="Frequency",name="oai_src_frequency",valuenil="- select frequency -",values=freqs,lastval=oai_src_frequency)
text+=bibharvest_templates.tmpl_admin_w200_select(ln=CFG_SITE_LANG,title="Starting date",name="oai_src_lastrun",valuenil="- select a date -",values=dates,lastval=oai_src_lastrun)
text+=bibharvest_templates.tmpl_admin_w200_text(ln=CFG_SITE_LANG,title="BibConvert configuration file (if needed by postprocess)",name="oai_src_config",value=oai_src_config)
text+=bibharvest_templates.tmpl_admin_w200_text(ln=CFG_SITE_LANG,title="BibFilter program (if needed by postprocess)",name="oai_src_bibfilter",value=oai_src_bibfilter)
output+=bibharvest_templates.tmpl_link_with_args(ln=CFG_SITE_LANG,funcurl="admin/bibharvest/bibharvestadmin.py/addsource",title="Try again with another url",args=[])
output+=bibharvest_templates.tmpl_link_with_args(ln=CFG_SITE_LANG,funcurl="admin/bibharvest/bibharvestadmin.py/index",title="Go back to the OAI sources overview",args=lnargs)
output+=bibharvest_templates.tmpl_link_with_args(ln=CFG_SITE_LANG,funcurl="admin/bibharvest/bibharvestadmin.py/index",title="Go back to the OAI sources overview",args=lnargs)
output+=bibharvest_templates.tmpl_link_with_args(ln=CFG_SITE_LANG,funcurl="admin/bibharvest/bibharvestadmin.py/index",title="Go back to the OAI sources overview",args=lnargs)
ifconfirmin[1,"1"]andnotoai_src_name:
output+=bibharvest_templates.tmpl_print_info(CFG_SITE_LANG,"Please enter a name for the source.")
ifconfirmin[1,"1"]andnotoai_src_prefix:
output+=bibharvest_templates.tmpl_print_info(CFG_SITE_LANG,"Please enter a metadata prefix.")
ifconfirmin[1,"1"]andnotoai_src_frequency:
output+=bibharvest_templates.tmpl_print_info(CFG_SITE_LANG,"Please choose a frequency of harvesting")
ifconfirmin[1,"1"]andnotoai_src_lastrun:
output+=bibharvest_templates.tmpl_print_info(CFG_SITE_LANG,"Please choose the harvesting starting date")
ifconfirmin[1,"1"]andnotoai_src_post:
output+=bibharvest_templates.tmpl_print_info(CFG_SITE_LANG,"Please choose a postprocess mode")
output+=bibharvest_templates.tmpl_print_info(CFG_SITE_LANG,"You selected a postprocess mode which involves conversion.")
output+=bibharvest_templates.tmpl_print_info(CFG_SITE_LANG,"Please enter a valid name of or a full path to a BibConvert config file or change postprocess mode.")
output+=bibharvest_templates.tmpl_link_with_args(ln=CFG_SITE_LANG,funcurl="admin/bibharvest/bibharvestadmin.py/index",title="Go back to the OAI sources overview",args=lnargs)
output+=bibharvest_templates.tmpl_link_with_args(ln=CFG_SITE_LANG,funcurl="admin/bibharvest/bibharvestadmin.py/index",title="Go back to the OAI sources overview",args=lnargs)