   try e.preventDefault()
   if not this.data.email and _L.gebi '#_oab_email'
     this.validate()
-  else
-    if not this.f?.url? and fl = _L.gebi '_oab_file'
-      if fl.files? and fl.files.length
-        this.file = new FormData()
-        this.file.append 'file', fl.files[0]
-      else
-        _L.show '#_oab_error', '<p>Whoops, you need to give us a file! Check it\'s uploaded.</p>'
-        _L.css fl, 'border-color','#f04717'
-        return
+  else if fl = _L.gebi '_oab_file'
+    if fl.files? and fl.files.length
+      this.file = new FormData()
+      this.file.append 'file', fl.files[0]
+    else if not this.f?.url? and not this.f?.permissions?.permissions?.archiving_allowed and not this.config.dark_deposit_off
+      _L.show '#_oab_error', '<p>Whoops, you need to give us a file! Check it\'s uploaded.</p>'
+      _L.css fl, 'border-color','#f04717'
+      return
   
     this.loading()
     # this could be just an email for a dark deposit, or a file for actual deposit


<div class="_oab_panel" id="_oab_findings" style="display:none;">
  <div id="_oab_citation"><h2>A title</h2><p><b>And citation string, OR demo title OR Unknown <span class="_oab_paper">article</span> and refer to library</b></p></div>
  <p><a class="_oab_wrong" href="#"><b>This is not the <span class="_oab_paper">article</span> I searched</b></a></p>
  <div class="_oab_section" id="_oab_sub_available">
    <h3>We have an online copy instantly available</h3>
    <p>You should be able to access it on the publisher\'s website.</p>

        el.innerHTML = (if cs is 'a paper' then 'an article' else if cs is 'paper' then 'article' else 'Article')
    if this.config.pilot
      pilot = '<p><br>Notice a change? We\'re testing a simpler and faster way to ' + (if this.plugin is 'instantill' then 'get' else 'deposit') + ' your ' + (if this.config.saypaper then 'paper' else 'article') + (if this.plugin is 'instantill' then '' else 's') + '. You can '
      pilot += '<a href="mailto:' + this.cml() + '">give feedback</a> or '
      if this.plugin is 'instantill'
        pilot += '<a class="_oab_ping" message="instantill_use_the_old_form" target="_blank" href="' + (if this.config.advancedform then this.config.advancedform else if this.config.ill_redirect_base_url then this.config.ill_redirect_base_url else 'mailto:'+this.cml()) + '">use the old form</a>.</p>'
      else
        pilot += '<a class="_oab_ping" message="shareyourpaper_use_the_old_form" target="_blank" href="' + (if this.config.old_way then (if this.config.old_way.indexOf('@') isnt -1 then 'mailto:' else '') + this.config.old_way else 'mailto:' + this.cml()) + '">use the old way</a>.</p>'
      _L.html '#_oab_pilot', pilot
    else
      _L.html '#_oab_pilot', ''
