Bugzilla – Attachment 33184 Details for
Bug 13190
Export checkout list does not work anymore
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13190: Refactor the checkouts table template code
Bug-13190-Refactor-the-checkouts-table-template-co.patch (text/plain), 14.88 KB, created by
Jonathan Druart
on 2014-11-04 08:35:46 UTC
(
hide
)
Description:
Bug 13190: Refactor the checkouts table template code
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-11-04 08:35:46 UTC
Size:
14.88 KB
patch
obsolete
>From 9caf879d39c2cb6435b6109535ad6712a217942e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 4 Nov 2014 09:34:32 +0100 >Subject: [PATCH] Bug 13190: Refactor the checkouts table template code > >This code is duplicated and should be centralised. >--- > .../prog/en/includes/checkouts-table.inc | 70 ++++++++++++++++++++ > .../prog/en/modules/circ/circulation.tt | 72 +-------------------- > .../prog/en/modules/members/moremember.tt | 74 +--------------------- > 3 files changed, 72 insertions(+), 144 deletions(-) > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc >new file mode 100644 >index 0000000..c9372da >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc >@@ -0,0 +1,70 @@ >+<div id="checkouts"> >+ [% IF ( issuecount ) %] >+ <div id="issues-table-loading-message"> >+ <p> >+ <a id="issues-table-load-now-button" href="#" class="btn"><i class="icon-book"></i> Show checkouts</a> >+ </p> >+ </div> >+ <form name="issues" action="/cgi-bin/koha/tools/export.pl" method="post" class="checkboxed"> >+ <table id="issues-table" style="width: 100% !Important;"> >+ <thead> >+ <tr> >+ <th scope="col"> </th> >+ <th scope="col"> </th> >+ <th scope="col">Due date</th> >+ <th scope="col">Due date</th> >+ <th scope="col">Title</th> >+ <th scope="col">Item type</th> >+ <th scope="col">Checked out on</th> >+ <th scope="col">Checked out from</th> >+ <th scope="col">Call no</th> >+ <th scope="col">Charge</th> >+ <th scope="col">Price</th> >+ <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllRenewals">select all</a> | <a href="#" id="UncheckAllRenewals">none</a></p></th> >+ <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllCheckins">select all</a> | <a href="#" id="UncheckAllCheckins">none</a></p></th> >+ <th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllExports">select all</a> | <a href="#" id="UncheckAllExports">none</a></p></th> >+ </tr> >+ </thead> >+ [% INCLUDE 'checkouts-table-footer.inc' %] >+ </table> >+ >+ <label for="issues-table-load-immediately">Always show checkouts immediately</label> >+ <input id="issues-table-load-immediately" type="checkbox" /> >+ >+ <div id="issues-table-actions"> >+ <fieldset class="action"> >+ [% IF ( CAN_user_circulate_override_renewals ) %] >+ [% IF ( AllowRenewalLimitOverride ) %] >+ <label for="override_limit">Override renewal limit:</label> >+ <input type="checkbox" name="override_limit" id="override_limit" value="1" /> >+ [% END %] >+ [% END %] >+ <button class="btn" id="RenewCheckinChecked"><i class="icon-check"></i> Renew or return checked items</button> >+ <button class="btn" id="RenewAll"><i class="icon-book"></i> Renew all</button> >+ </fieldset> >+ >+ [% IF ( exports_enabled ) %] >+ <fieldset> >+ <label for="output_format"><b>Export checkouts using format:</b></label> >+ <select name="output_format" id="output_format"> >+ <option value="iso2709_995">ISO2709 with items</option> >+ <option value="iso2709">ISO2709 without items</option> >+ [% IF Koha.Preference('ExportWithCsvProfile') %] >+ <option value="csv">CSV</option> >+ [% END %] >+ </select> >+ >+ <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" /> >+ <input type="hidden" name="op" value="export" /> >+ <input type="hidden" id="output_format" name="output_format" value="iso2709" /> >+ <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" /> >+ <input type="hidden" id="record_type" name="record_type" value="bibs" /> >+ <button class="btn btn-small" id="export_submit"><i class="icon-download-alt"></i> Export</button> >+ </fieldset> >+ [% END %] >+ </div> >+ </form> >+ [% ELSE %] >+ <p>Patron has nothing checked out.</p> >+ [% END %] >+</div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index edb781f..e2e3a0a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -765,78 +765,8 @@ No patron matched <span class="ex">[% message %]</span> > </ul> > > <!-- SUMMARY : TODAY & PREVIOUS ISSUES --> >-<div id="checkouts"> >- [% IF ( issuecount ) %] >- <div id="issues-table-loading-message"> >- <p> >- <a id="issues-table-load-now-button" href="#" class="btn"><i class="icon-book"></i> Show checkouts</a> >- </p> >- </div> >- >- <form name="issues" action="/cgi-bin/koha/tools/export.pl" method="post" class="checkboxed"> >- <table id="issues-table"> >- <thead> >- <tr> >- <th scope="col"> </th> >- <th scope="col"> </th> >- <th scope="col">Due date</th> >- <th scope="col">Due date</th> >- <th scope="col">Title</th> >- <th scope="col">Item type</th> >- <th scope="col">Checked out on</th> >- <th scope="col">Checked out from</th> >- <th scope="col">Call no</th> >- <th scope="col">Charge</th> >- <th scope="col">Price</th> >- <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllRenewals">select all</a> | <a href="#" id="UncheckAllRenewals">none</a></p></th> >- <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllCheckins">select all</a> | <a href="#" id="UncheckAllCheckins">none</a></p></th> >- <th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllExports">select all</a> | <a href="#" id="UncheckAllExports">none</a></p></th> >- </tr> >- </thead> >- [% INCLUDE 'checkouts-table-footer.inc' %] >- </table> >- >- <label for="issues-table-load-immediately">Always show checkouts immediately</label> >- <input id="issues-table-load-immediately" type="checkbox" /> >- >- <fieldset id="issues-table-actions" class="action"> >- [% IF ( CAN_user_circulate_override_renewals ) %] >- [% IF ( AllowRenewalLimitOverride ) %] >- <label for="override_limit">Override renewal limit:</label> >- <input type="checkbox" name="override_limit" id="override_limit" value="1" /> >- [% END %] >- [% END %] >- <button class="btn" id="RenewCheckinChecked"><i class="icon-check"></i> Renew or return checked items</button> >- <button class="btn" id="RenewAll"><i class="icon-book"></i> Renew all</button> >- </fieldset> >- >- [% IF issuecount %] >- [% IF ( exports_enabled ) %] >- <fieldset> >- <label for="output_format"><b>Export checkouts using format:</b></label> >- <select name="output_format" id="output_format"> >- <option value="iso2709_995">ISO2709 with items</option> >- <option value="iso2709">ISO2709 without items</option> >- [% IF Koha.Preference('ExportWithCsvProfile') %] >- <option value="csv">CSV</option> >- [% END %] >- </select> >- >- <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" /> >- <input type="hidden" name="op" value="export" /> >- <input type="hidden" id="output_format" name="output_format" value="iso2709" /> >- <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" /> >- <input type="hidden" id="record_type" name="record_type" value="bibs" /> >- <button class="btn btn-small" id="export_submit"><i class="icon-download-alt"></i> Export</button> >- </fieldset> >- [% END %] >- [% END %] >- </form> > >- [% ELSE %] >- <p>Patron has nothing checked out.</p> >- [% END %] >-</div> >+[% INCLUDE "checkouts-table.inc" %] > > [% IF ( relatives_issues_count ) %] > <div id="relatives-issues"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >index 2a3b818..d893a91 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -417,79 +417,7 @@ function validate1(date) { > <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li> > </ul> > >- <div id="checkouts"> >- [% IF ( issuecount ) %] >- <div id="issues-table-loading-message"> >- <p> >- <a id="issues-table-load-now-button" href="#" class="btn"><i class="icon-book"></i> Show checkouts</a> >- </p> >- </div> >- >- <form name="issues" action="/cgi-bin/koha/tools/export.pl" method="post" class="checkboxed"> >- <table id="issues-table" style="width: 100% !Important;"> >- <thead> >- <tr> >- <th scope="col"> </th> >- <th scope="col"> </th> >- <th scope="col">Due date</th> >- <th scope="col">Due date</th> >- <th scope="col">Title</th> >- <th scope="col">Item type</th> >- <th scope="col">Checked out on</th> >- <th scope="col">Checked out from</th> >- <th scope="col">Call no</th> >- <th scope="col">Charge</th> >- <th scope="col">Price</th> >- <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllRenewals">select all</a> | <a href="#" id="UncheckAllRenewals">none</a></p></th> >- <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllCheckins">select all</a> | <a href="#" id="UncheckAllCheckins">none</a></p></th> >- <th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllExports">select all</a> | <a href="#" id="UncheckAllExports">none</a></p></th> >- </tr> >- </thead> >- [% INCLUDE 'checkouts-table-footer.inc' %] >- </table> >- >- <label for="issues-table-load-immediately">Always show checkouts immediately</label> >- <input id="issues-table-load-immediately" type="checkbox" /> >- >- [% IF ( issuecount ) %] >- <div id="issues-table-actions"> >- <fieldset class="action"> >- [% IF ( CAN_user_circulate_override_renewals ) %] >- [% IF ( AllowRenewalLimitOverride ) %] >- <label for="override_limit">Override renewal limit:</label> >- <input type="checkbox" name="override_limit" id="override_limit" value="1" /> >- [% END %] >- [% END %] >- <button class="btn" id="RenewCheckinChecked"><i class="icon-check"></i> Renew or return checked items</button> >- <button class="btn" id="RenewAll"><i class="icon-book"></i> Renew all</button> >- </fieldset> >- >- [% IF ( exports_enabled ) %] >- <fieldset> >- <label for="output_format"><b>Export checkouts using format:</b></label> >- <select name="output_format" id="output_format"> >- <option value="iso2709_995">ISO2709 with items</option> >- <option value="iso2709">ISO2709 without items</option> >- [% IF Koha.Preference('ExportWithCsvProfile') %] >- <option value="csv">CSV</option> >- [% END %] >- </select> >- >- <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" /> >- <input type="hidden" name="op" value="export" /> >- <input type="hidden" id="output_format" name="output_format" value="iso2709" /> >- <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" /> >- <input type="hidden" id="record_type" name="record_type" value="bibs" /> >- <button class="btn btn-small" id="export_submit"><i class="icon-download-alt"></i> Export</button> >- </fieldset> >- [% END %] >- </div> >- [% END %] >- </form> >- [% ELSE %] >- <p>Patron has nothing checked out.</p> >- [% END %] >- </div> >+[% INCLUDE "checkouts-table.inc" %] > > [% IF ( relatives_issues_count ) %] > <div id="relatives-issues"> >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13190
:
33166
|
33167
|
33169
|
33184
|
33205
|
33207
|
33208
|
33209
|
33210
|
33270
|
33271