View | Details | Raw Unified | Return to bug 9283
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-24 / +17 lines)
Lines 157-164 var allcheckboxes = $(".checkboxed"); Link Here
157
    $("input.radio").click(function(){
157
    $("input.radio").click(function(){
158
        radioCheckBox($(this));
158
        radioCheckBox($(this));
159
    });
159
    });
160
    $("#exportmenuc").empty();
161
    initExportButton();
162
160
163
    $("#newduedate").datetimepicker({
161
    $("#newduedate").datetimepicker({
164
        minDate: 1, // require that renewal date is after today
162
        minDate: 1, // require that renewal date is after today
Lines 170-194 var allcheckboxes = $(".checkboxed"); Link Here
170
        hour: 23,
168
        hour: 23,
171
        minute: 59
169
        minute: 59
172
    });
170
    });
173
171
    $("#export_submit").click(function(){
172
        var export_format = $("#export_formats").val();
173
        export_checkouts(export_format);
174
        return false;
175
    })
174
 });
176
 });
175
177
176
function initExportButton() {
178
function export_checkouts(format) {
177
    var exportmenu = [
178
        { text: _("ISO2709 with items"), onclick: {fn: function(){export_submit("iso2709_995")}} },
179
        { text: _("ISO2709 without items"), onclick: {fn: function(){export_submit("iso2709")}} },
180
        { text: _("CSV"), onclick: {fn: function(){export_submit("csv")}} },
181
    ];
182
    new YAHOO.widget.Button({
183
        type: "menu",
184
        label: _("Export checkouts"),
185
        name: "exportmenubutton",
186
        menu: exportmenu,
187
        container: "exportmenuc"
188
    });
189
}
190
191
function export_submit(format) {
192
    if ($("input:checkbox[name='biblionumbers'][checked]").length < 1){
179
    if ($("input:checkbox[name='biblionumbers'][checked]").length < 1){
193
        alert(_("You must select a checkout to export"));
180
        alert(_("You must select a checkout to export"));
194
        return;
181
        return;
Lines 954-969 No patron matched <span class="ex">[% message %]</span> Link Here
954
        [% END %]
941
        [% END %]
955
        <input type="submit" name="renew_checked" value="Renew or Return checked items" />
942
        <input type="submit" name="renew_checked" value="Renew or Return checked items" />
956
        <input type="submit" id="renew_all" name="renew_all" value="Renew all" />
943
        <input type="submit" id="renew_all" name="renew_all" value="Renew all" />
944
    </fieldset>
957
        [% IF export_remove_fields OR export_with_csv_profile %]
945
        [% IF export_remove_fields OR export_with_csv_profile %]
958
            <br/><br/>
946
            <fieldset>
959
            Don't export fields : <input type="text" id="export_remove_fields" name="export_remove_fields" value="[% export_remove_fields %]" title="Use for iso2709 exports" />
947
            <label for="export_formats"><b>Export checkouts using format:</b></label>
960
            <span id="exportmenuc">Export</span>
948
            <select name="export_formats" id="export_formats">
949
                <option value="iso2709_995">ISO2709 with items</option>
950
                <option value="iso2709">ISO2709 without items</option>
951
                <option value="csv">CSV</option>
952
            </select>
953
           <label for="export_remove_fields">Don't export fields:</label> <input type="text" id="export_remove_fields" name="export_remove_fields" value="[% export_remove_fields %]" title="Use for iso2709 exports" />
961
            <input type="hidden" name="op" value="export" />
954
            <input type="hidden" name="op" value="export" />
962
            <input type="hidden" id="export_format" name="format" value="iso2709" />
955
            <input type="hidden" id="export_format" name="format" value="iso2709" />
963
            <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" />
956
            <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" />
964
            <input type="hidden" id="record_type" name="record_type" value="bibs" />
957
            <input type="hidden" id="record_type" name="record_type" value="bibs" />
958
            <input type="button" id="export_submit" value="Export" />
959
            </fieldset>
965
        [% END %]
960
        [% END %]
966
    </fieldset>
967
    [% END %]
961
    [% END %]
968
    </form>
962
    </form>
969
[% ELSE %]
963
[% ELSE %]
970
- 

Return to bug 9283