Bugzilla – Attachment 122095 Details for
Bug 28271
Add the ability to set a new lost status when a claim is resolved
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28271: Preselect the current item lost value
Bug-28271-Preselect-the-current-item-lost-value.patch (text/plain), 3.31 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-06-17 19:56:23 UTC
(
hide
)
Description:
Bug 28271: Preselect the current item lost value
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-06-17 19:56:23 UTC
Size:
3.31 KB
patch
obsolete
>From 4a0523b5b2169417c1323cf3977cb3e44865cc08 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 3 May 2021 16:04:16 +0200 >Subject: [PATCH] Bug 28271: Preselect the current item lost value > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 4 +++- > svc/return_claims | 3 ++- > 3 files changed, 6 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc >index 2f9bf6cb17..002a1b4440 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc >@@ -149,7 +149,7 @@ > <label for="new_lost_status">New item lost value:</label> > [% SET itemlost = AuthorisedValues.GetAuthValueDropbox('LOST') %] > <select class="form-control" id="new_lost_status"> >- <option value="0"></option> >+ <option value="0">(Not lost)</option> > [% FOREACH lost IN itemlost %] > <option value="[% lost.authorised_value | html %]">[% lost.lib | html %]</option> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >index 3c3da8ceef..43f62ecdcb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >@@ -1011,7 +1011,7 @@ $(document).ready(function() { > ? '<li><a href="#" class="return-claim-tools-delete" data-return-claim-id="' + oObj.id + '"><i class="fa fa-trash"></i> ' + __("Delete") + '</a></li>' > : ""; > let resolve_html = ! oObj.resolution >- ? '<li><a href="#" class="return-claim-tools-resolve" data-return-claim-id="' + oObj.id + '"><i class="fa fa-check-square"></i> ' + __("Resolve") + '</a></li>' >+ ? '<li><a href="#" class="return-claim-tools-resolve" data-return-claim-id="' + oObj.id + '" data-current-lost-status="' + escape_str(oObj.itemlost) + '"><i class="fa fa-check-square"></i> ' + __("Resolve") + '</a></li>' > : ""; > > return '<div class="btn-group">' >@@ -1135,8 +1135,10 @@ $(document).ready(function() { > // Handle return claim resolution > $('body').on('click', '.return-claim-tools-resolve', function() { > let id = $(this).data('return-claim-id'); >+ let current_lost_status = $(this).data('current-lost-status'); > > $('#claims-returned-resolved-modal-id').val(id); >+ $("#new_lost_status").val(current_lost_status); > $('#claims-returned-resolved-modal').modal() > }); > >diff --git a/svc/return_claims b/svc/return_claims >index e5ed56ea43..2a616f08e2 100755 >--- a/svc/return_claims >+++ b/svc/return_claims >@@ -77,7 +77,8 @@ my $sql = qq{ > biblio.author, > > items.enumchron, >- items.barcode >+ items.barcode, >+ items.itemlost > FROM return_claims > LEFT JOIN items USING ( itemnumber ) > LEFT JOIN biblio USING ( biblionumber ) >-- >2.32.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 28271
:
120335
|
120336
|
120406
|
122047
|
122054
|
122093
|
122094
|
122095
|
122096
|
122120
|
122121
|
122122
|
122123