 
 _oab.prototype.openurl = () -> # only used by instantill
   _L.post(
-    api+'/ill/openurl?uid='+this.uid + (if this.data.usermetadata then '&usermetadata=true' else '')
+    this.api+'/ill/openurl?uid='+this.uid + (if this.data.usermetadata then '&usermetadata=true' else '')
     (if this.uid then this.f.metadata else {metadata: this.f.metadata, config: this.config})
     (res) => window.location = res
     (data) =>

      data = this.file

    _L.post(
      api+'/deposit', # + (this.f.catalogue ? '')
      data
      (res) =>
        this.loading false

    else
      this.loading()
      _L.post(
        this.api + '/validate?uid=' + this.uid + '&email=' + email
        this.config
        (res) =>
          this.loading false
