<% searchEngineTarget = asform(input) target(filepath(searchEngineTarget.id + '.target')) %> <%escape_xml(searchEngineTarget.id)%> <%escape_xml(searchEngineTarget.name)%> <%escape_xml(searchEngineTarget.username)%> <%escape_xml(searchEngineTarget.port)%> <%=searchEngineTarget.targetType%> <% for delegate in searchEngineTarget.delegate: %> <%=delegate%> <% # %> <% if searchEngineTarget.targetType == 'sruUpdate': %> <%escape_xml(searchEngineTarget.path)%> <%escape_xml(searchEngineTarget.baseurl)%> <% elif searchEngineTarget.targetType == 'filesystem': %> <%escape_xml(searchEngineTarget.path)%> <%escape_xml(searchEngineTarget.oaiEnvelope)%> <% # %> <% redirect('/page/target.edit/' + searchEngineTarget.id + '.target?referrerDomain=' + searchEngineTarget.referrerDomain ) %>