<commit_before><%@ include file="taglibs.jsp"%>
<html>
<head>
    <title>Search Research Staff</title>
    <tags:dwrJavascriptLink objects="SearchResearchStaffAjaxFacade"/>
    <tags:dwrJavascriptLink objects="OrganizationAjaxFacade"/>
   <style type="text/css">
        div.content {
            padding: 5px 15px;
        }
   </style>
    <script type="text/javascript">
    	var sponsorSiteAutocompleterProps = {
            basename: "healthcareSite",
            populator: function(autocompleter, text) {
            	$('healthcareSite-indicator').style.display='';
                OrganizationAjaxFacade.matchHealthcareSites(text,function(values) {
                    autocompleter.setChoices(values)
                })
            },
            valueSelector: function(obj) {
                return (obj.name+" ("+obj.nciInstituteCode+")")
            },
            afterUpdateElement: function(inputElement, selectedElement, selectedChoice) {
    								hiddenField=sponsorSiteAutocompleterProps.basename+"-hidden"
	    							$(hiddenField).value=selectedChoice.id;
	    							$('healthcareSite-indicator').style.display='none';
			 }
        }
        AutocompleterManager.addAutocompleter(sponsorSiteAutocompleterProps);
        function buildTable(form) {
        	params = new Array(3);
			var parameterMap = getParameterMap(form);

            params[0] = document.getElementById("firstName").value;
            params[1] = document.getElementById("lastName").value;
            params[2] = document.getElementById("nciIdentifier").value;
            params[3] = document.getElementById("healthcareSite-hidden").value;
            
            SearchResearchStaffAjaxFacade.getTable(parameterMap, params, showTable);
        }

        function showTable(table) {
            $('tableDiv').innerHTML=table;
            $('search-indicator').style.display="none";
        }
    </script>
</head>
<!-- MAIN BODY STARTS HERE -->
<body>

<div id="main">
<chrome:search title="Search">
<tags:instructions code="research_staff_search" />
    <form name="searchForm" id="searchForm" method="post">
    	
        <div>
            <input type="hidden" name="_selected" id="_selected" value="">
            <input type="hidden" name="_action" id="_action" value="">
        </div>
        <div class="content">
            <div class="row">
                <div class="label">
                    First Name:
                </div>
                <div class="value">
                    <input type="text" name="firstName" id="firstName"/>
                </div>
            </div>
            <div class="row">
                <div class="label">
                    Last Name:
                </div>
                <div class="value">
                    <input type="text" name="lastName" id="lastName"/>
                </div>
            </div>
            <div class="row">
                <div class="label">
                    NCI Identifier:
                </div>
                <div class="value">
                    <input type="text" name="nciIdentifier" id="nciIdentifier"/>
                    <tags:hoverHint keyProp="researchStaff.nciIdentifier"/>
                </div>
            </div>
            <div class="row">
                <div class="label">
                    Organization:
                </div>
                <div class="value">
                	 <input type="hidden" id="healthcareSite-hidden"
					name="healthcareSite" value="${command.healthcareSite.id}" /> <input
					id="healthcareSite-input" size="60" type="text" name="xyz"
					value="${command.healthcareSite.name}"
					class="autocomplete validate-notEmpty" /> 
                    <tags:hoverHint keyProp="researchStaff.organization"/>
                    <img id="healthcareSite-indicator" src="<c:url value="/images/indicator.white.gif"/>" alt="activity indicator" style="display:none"/>
					<img id="healthcareSite-indicator" src="<c:url value="/images/indicator.white.gif"/>" alt="activity indicator" style="display:none"/>
				<div id="healthcareSite-choices" class="autocomplete" style="display: none;"></div>
                </div>
            </div>
            <div class="row"><commit_msg>Externalize the labels<commit_after><%@ include file="taglibs.jsp"%>
<html>
<head>
    <title>Search Research Staff</title>
    <tags:dwrJavascriptLink objects="SearchResearchStaffAjaxFacade"/>
    <tags:dwrJavascriptLink objects="OrganizationAjaxFacade"/>
   <style type="text/css">
        div.content {
            padding: 5px 15px;
        }
   </style>
    <script type="text/javascript">
    	var sponsorSiteAutocompleterProps = {
            basename: "healthcareSite",
            populator: function(autocompleter, text) {
            	$('healthcareSite-indicator').style.display='';
                OrganizationAjaxFacade.matchHealthcareSites(text,function(values) {
                    autocompleter.setChoices(values)
                })
            },
            valueSelector: function(obj) {
                return (obj.name+" ("+obj.nciInstituteCode+")")
            },
            afterUpdateElement: function(inputElement, selectedElement, selectedChoice) {
    								hiddenField=sponsorSiteAutocompleterProps.basename+"-hidden"
	    							$(hiddenField).value=selectedChoice.id;
	    							$('healthcareSite-indicator').style.display='none';
			 }
        }
        AutocompleterManager.addAutocompleter(sponsorSiteAutocompleterProps);
        function buildTable(form) {
        	params = new Array(3);
			var parameterMap = getParameterMap(form);

            params[0] = document.getElementById("firstName").value;
            params[1] = document.getElementById("lastName").value;
            params[2] = document.getElementById("nciIdentifier").value;
            params[3] = document.getElementById("healthcareSite-hidden").value;
            
            SearchResearchStaffAjaxFacade.getTable(parameterMap, params, showTable);
        }

        function showTable(table) {
            $('tableDiv').innerHTML=table;
            $('search-indicator').style.display="none";
        }
    </script>
</head>
<!-- MAIN BODY STARTS HERE -->
<body>

<div id="main">
<chrome:search title="Search">
<tags:instructions code="research_staff_search" />
    <form name="searchForm" id="searchForm" method="post">
    	
        <div>
            <input type="hidden" name="_selected" id="_selected" value="">
            <input type="hidden" name="_action" id="_action" value="">
        </div>
        <div class="content">
            <div class="row">
                <div class="label">
                    <fmt:message key="c3pr.common.firstName"/>
                </div>
                <div class="value">
                    <input type="text" name="firstName" id="firstName"/>
                </div>
            </div>
            <div class="row">
                <div class="label">
                    <fmt:message key="c3pr.common.lastName"/>
                </div>
                <div class="value">
                    <input type="text" name="lastName" id="lastName"/>
                </div>
            </div>
            <div class="row">
                <div class="label">
                    <fmt:message key="c3pr.common.NCIIdentifier"/>
                </div>
                <div class="value">
                    <input type="text" name="nciIdentifier" id="nciIdentifier"/>
                    <tags:hoverHint keyProp="researchStaff.nciIdentifier"/>
                </div>
            </div>
            <div class="row">
                <div class="label">
                    <fmt:message key="c3pr.common.organization"/>
                </div>
                <div class="value">
                	 <input type="hidden" id="healthcareSite-hidden"
					name="healthcareSite" value="${command.healthcareSite.id}" /> <input
					id="healthcareSite-input" size="60" type="text" name="xyz"
					value="${command.healthcareSite.name}"
					class="autocomplete validate-notEmpty" /> 
                    <tags:hoverHint keyProp="researchStaff.organization"/>
                    <img id="healthcareSite-indicator" src="<c:url value="/images/indicator.white.gif"/>" alt="activity indicator" style="display:none"/>
					<img id="healthcareSite-indicator" src="<c:url value="/images/indicator.white.gif"/>" alt="activity indicator" style="display:none"/>
				<div id="healthcareSite-choices" class="autocomplete" style="display: none;"></div>
                </div>
            </div>
            <div class="row">
{'fraction_non_alphanumeric': 0.14165694282380398, 'fraction_numerical': 0.0028004667444574095, 'mean_word_length': 2.067644953471725, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 129, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2770878', 'n_tokens_mistral': 2489, 'n_tokens_neox': 2279, 'n_words': 384}