Bug 23455: Patron card printing from Patron lists is broken
This patch makes a few corrections to the process of printing patron
cards from the patron lists page. These changes are necessitated by Bug
20650: Changes to the markup in patroncards/print.tt were not reflected
in the JavaScript in patron_lists/lists.tt.
Also fixed: A missing quotation mark, a missing semicolon, and
incorrect template variable filter.
To test, apply the patch and go to Tools -> Patron lists.
- Click the "Actions" menu corresponding to a patron list.
- Select "Print patron cards."
- In the "Print patron cards" modal, click the "Export" button.
- The modal should reload with a link to download a patron card PDF.
The link should work correctly.
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit a57aea15a7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
a94bacb02a
commit
ca04ab8d7f
|
|
@ -46,7 +46,7 @@
|
|||
<td>
|
||||
[% IF l.shared %]
|
||||
[% IF shared_by_other %]
|
||||
by <a href=/cgi-bin/koha/members/moremember.pl?borrowernumber=[% l.owner.id | html %]">[% INCLUDE 'patron-title.inc' patron=l.owner %]</a>
|
||||
by <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% l.owner.id | uri %]">[% INCLUDE 'patron-title.inc' patron=l.owner %]</a>
|
||||
[% ELSE %]
|
||||
by you
|
||||
[% END %]
|
||||
|
|
@ -127,7 +127,7 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
var patronExportModal = $("#patronExportModal");
|
||||
var patronExportModalBody = $("#patronExportModal .modal-body")
|
||||
var patronExportModalBody = $("#patronExportModal .modal-body");
|
||||
|
||||
$('#patron-lists-table').dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"autoWidth": false,
|
||||
|
|
@ -159,7 +159,7 @@
|
|||
modal_body.html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
|
||||
target_url = $(this).attr("action");
|
||||
params = $( this ).serialize();
|
||||
modal_body.load( target_url + "?" + params + " #custom-doc");
|
||||
$("#patronExportModal .modal-body").load( target_url + "?" + params + " #export_patron_list");
|
||||
});
|
||||
|
||||
patronExportModal.on("click",".closebtn,.gb-close",function(e){
|
||||
|
|
|
|||
|
|
@ -36,10 +36,12 @@
|
|||
</fieldset>
|
||||
</form>
|
||||
[% ELSIF ( patronlist_id && template_id && layout_id ) %]
|
||||
<h3>Click on the link to download the patron cards from the patron list.</h3>
|
||||
<div id="export_patron_list">
|
||||
<h3>Click on the link to download the patron cards from the patron list.</h3>
|
||||
<p>
|
||||
<a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?patronlist_id=[% patronlist_id | html %]&template_id=[% template_id | html %]&layout_id=[% layout_id | html %]&layout_back_id=[% layout_back_id | html %]&start_card=[% start_card | html %]">label_patronlist_[% patronlist_id | html %].pdf</a>
|
||||
</p>
|
||||
</div>
|
||||
[% ELSE %]
|
||||
<h3>
|
||||
[% IF ( label_ids ) %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue