# File lib/openurl/context_object.rb, line 80
    def kev(no_date=false)
      require 'cgi'
      kevs = ["url_ver=Z39.88-2004", "url_ctx_fmt=#{CGI.escape("info:ofi/fmt:kev:mtx:ctx")}"]
      
      # Loop through the administrative metadata      
      @admin.each_key do |k|
        next if k == "ctx_tim" && no_date                    
        kevs.push(k+"="+CGI.escape(@admin[k]["value"].to_s)) if @admin[k]["value"]                  
      end

      [@referent, @referringEntity, @requestor, @referrer].each do | ent |
        kevs.push(ent.kev) unless ent.empty?                  
      end
      
      [@serviceType, @resolver, @custom].each do |entCont|
        entCont.each do |ent|
          kevs.push(ent.kev) unless ent.empty?                      
        end
      end        
      return kevs.join("&")
    end