<commit_before>{% extends "tech_services_reports_templates/base.html" %}

{% block extra_css %}
 <link rel="stylesheet" type="text/css" media="screen, projection" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.0/themes/base/jquery-ui.css"/>
{% endblock %}

{% block javascripts %}
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.js"></script>
<script>
    $(function() {
    	$( ".datepicker" ).datepicker({
    		changeMonth: true,
    		changeYear: true,
    		minDate: new Date(2011, 6 - 1, 1)
    	});
    });
    function custom_report(report) {
    	//console.debug(report);
    	div_name = '#report-date-picker'
    	this_div = $(div_name);
    	//set the check box
    	$(div_name + ' form input').filter('[value="' + report + '"]').attr('checked', true);
    	this_div.toggle();
    };
</script>
{% endblock %}

{% block content %}
<div id="accessions">
<h4 class="report-type">Accessions</h4>
<h5 class="index">Accessions by month </h5>
<ul class="summary">
    {% for entry in acc_months %}
    <li>
        <a href="{{ entry.link }}">{{ entry.month_name }} {{ entry.year }}</a>
    </li>
    {% endfor %}
</ul>

<h5 class="index">Accessions by calendar year </h5>
<ul class="summary">
    {% for entry in acc_years %}
    <li>
        <a href="{{ entry.link }}">{{ entry.year }}</a>
    </li>
    {% endfor %}
</ul>

<h5 class="index">Tools</h5>
<span id="report-updates"></span>
<ul class="summary">
	<li><a href="#" onclick="javascript:custom_report('accessions')">Custom date range report</a></li>
	<li><a href="{{ admin_edit_summary_accession_data_url }}">Add/edit summary accessions</a></li>
	<li><a href="{{ admin_edit_harvested_accession_data_url }}">Edit harvested accession data</a></li>
</ul>
</div>


<div id="cataloging">

    <h4 class="report-type">Cataloging</h4>

    <h5 class="index">Cataloging by month </h5>
    <ul class="summary">
        {% for entry in cat_months %}
        <li>
            <a href="{{ entry.link }}">{{ entry.month_name }} {{ entry.year }}</a>
        </li>
        {% endfor %}
    </ul>

    <h5 class="index">Cataloging by calendar year </h5>
    <ul class="summary">
        {% for entry in cat_years %}
        <li>
            <a href="{{ entry.link }}">{{ entry.year }}</a>
        </li>
        {% endfor %}
    </ul>

    <!--
    <h5 class="index">Tools</h5>
    <ul class="summary">
        <li><a href="#" onclick="javascript:custom_report('cataloging')">Custom date range report</a></li>
        <li><a href="{{ admin_edit_summary_cat_data_url }}">Add/edit summary cataloging edits</a></li>
        <li><a href="{{ admin_edit_harvested_cat_data_url }}">Edit harvested cataloging data</a></li>
    </ul>
    -->

    <h5 class="index">Tools</h5>
    <ul class="summary">
        <li><a href="{{ admin_edit_summary_cat_data_url }}">Add/edit summary cataloging edits</a></li>
        <li><a href="{{ admin_edit_harvested_cat_data_url }}">Edit harvested cataloging data</a></li>
    </ul>


    <form action="{{ custom_report_url }}" method="get" class="foo-report-dates">
    <fieldset>
        <legend>Custom Cataloging Date Range Report</legend>
        <p>Start date: <input type="text" class="datepicker" name="start"></p>
        <p>End date: <input type="text" class="datepicker" name="end"></p>
        <input type="hidden" name="report-type" value="cataloging" />
        <input type="submit" value="Submit" />
    </fieldset>
    </form>


</div>


<div id="report-date-picker">
<form action="/custom_reportfoo" method="get" class="report-dates">
<fieldset>
    <legend>Custom Date Range Report</legend>
	<p>Start date: <input type="text" class="datepicker" name="start"></p>
	<p>End date: <input type="text" class="datepicker" name="end"></p>
	<p>Report type: <input type="radio" name="report-type" value="accessions">Accessions
	   <input type="radio" name="report-type" value="cataloging">Cataloging</p>
	<input type="submit" value="Submit" />
</fieldset>
</form>
</div>


{% endblock %}
<commit_msg>implements unformatted accession-custom-dates.<commit_after>{% extends "tech_services_reports_templates/base.html" %}

{% block extra_css %}
 <link rel="stylesheet" type="text/css" media="screen, projection" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.0/themes/base/jquery-ui.css"/>
{% endblock %}

{% block javascripts %}
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.js"></script>

<script>
    $(function() {
    	$( ".datepicker" ).datepicker({
    		changeMonth: true,
    		changeYear: true,
    		minDate: new Date(2011, 6 - 1, 1)
    	});
    });
    // function custom_report(report) {
    // 	//console.debug(report);
    // 	div_name = '#report-date-picker'
    // 	this_div = $(div_name);
    // 	//set the check box
    // 	$(div_name + ' form input').filter('[value="' + report + '"]').attr('checked', true);
    // 	this_div.toggle();
    // };
</script>

{% endblock %}

{% block content %}


<div id="accessions">

    <h4 class="report-type">Accessions</h4>
    <h5 class="index">Accessions by month </h5>
    <ul class="summary">
        {% for entry in acc_months %}
        <li>
            <a href="{{ entry.link }}">{{ entry.month_name }} {{ entry.year }}</a>
        </li>
        {% endfor %}
    </ul>

    <h5 class="index">Accessions by calendar year </h5>
    <ul class="summary">
        {% for entry in acc_years %}
        <li>
            <a href="{{ entry.link }}">{{ entry.year }}</a>
        </li>
        {% endfor %}
    </ul>

    <!--
    <h5 class="index">Tools</h5>
    <span id="report-updates"></span>
    <ul class="summary">
    	<li><a href="#" onclick="javascript:custom_report('accessions')">Custom date range report</a></li>
    	<li><a href="{{ admin_edit_summary_accession_data_url }}">Add/edit summary accessions</a></li>
    	<li><a href="{{ admin_edit_harvested_accession_data_url }}">Edit harvested accession data</a></li>
    </ul>
    -->

    <h5 class="index">Tools</h5>
    <span id="report-updates"></span>
    <ul class="summary">
        <li><a href="{{ admin_edit_summary_accession_data_url }}">Add/edit summary accessions</a></li>
        <li><a href="{{ admin_edit_harvested_accession_data_url }}">Edit harvested accession data</a></li>
    </ul>
    <form action="{{ custom_report_url }}" method="get" class="foo-report-dates">
    <fieldset>
        <legend>Custom Accession Date Range Report</legend>
        <p>Start date: <input type="text" class="datepicker" name="start"></p>
        <p>End date: <input type="text" class="datepicker" name="end"></p>
        <input type="hidden" name="report-type" value="accessions" />
        <input type="submit" value="Submit" />
    </fieldset>
    </form>

</div>


<div id="cataloging">

    <h4 class="report-type">Cataloging</h4>

    <h5 class="index">Cataloging by month </h5>
    <ul class="summary">
        {% for entry in cat_months %}
        <li>
            <a href="{{ entry.link }}">{{ entry.month_name }} {{ entry.year }}</a>
        </li>
        {% endfor %}
    </ul>

    <h5 class="index">Cataloging by calendar year </h5>
    <ul class="summary">
        {% for entry in cat_years %}
        <li>
            <a href="{{ entry.link }}">{{ entry.year }}</a>
        </li>
        {% endfor %}
    </ul>

    <!--
    <h5 class="index">Tools</h5>
    <ul class="summary">
        <li><a href="#" onclick="javascript:custom_report('cataloging')">Custom date range report</a></li>
        <li><a href="{{ admin_edit_summary_cat_data_url }}">Add/edit summary cataloging edits</a></li>
        <li><a href="{{ admin_edit_harvested_cat_data_url }}">Edit harvested cataloging data</a></li>
    </ul>
    -->

    <h5 class="index">Tools</h5>
    <ul class="summary">
        <li><a href="{{ admin_edit_summary_cat_data_url }}">Add/edit summary cataloging edits</a></li>
        <li><a href="{{ admin_edit_harvested_cat_data_url }}">Edit harvested cataloging data</a></li>
    </ul>


    <form action="{{ custom_report_url }}" method="get" class="foo-report-dates">
    <fieldset>
        <legend>Custom Cataloging Date Range Report</legend>
        <p>Start date: <input type="text" class="datepicker" name="start"></p>
        <p>End date: <input type="text" class="datepicker" name="end"></p>
        <input type="hidden" name="report-type" value="cataloging" />
        <input type="submit" value="Submit" />
    </fieldset>
    </form>


</div>

<!--
<div id="report-date-picker">
<form action="/custom_reportfoo" method="get" class="report-dates">
<fieldset>
    <legend>Custom Date Range Report</legend>
	<p>Start date: <input type="text" class="datepicker" name="start"></p>
	<p>End date: <input type="text" class="datepicker" name="end"></p>
	<p>Report type: <input type="radio" name="report-type" value="accessions">Accessions
	   <input type="radio" name="report-type" value="cataloging">Cataloging</p>
	<input type="submit" value="Submit" />
</fieldset>
</form>
</div>
-->

{% endblock %}

{'fraction_non_alphanumeric': 0.20313513513513515, 'fraction_numerical': 0.0075675675675675675, 'mean_word_length': 3.378135352579271, 'pattern_counts': {'":': 0, '<': 287, '<?xml version=': 0, '>': 287, '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': '1372379', 'n_tokens_mistral': 3243, 'n_tokens_neox': 3086, 'n_words': 638}