From f10326000659c595ebcf9d94b37775964ffb27c0 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 5 Apr 2018 14:22:42 +0200 Subject: [PATCH] Bug 20472: Edit URL field on staff form This patch makes the following changes: Add menu option Edit URLs. Edit modal form to edit URLs. Save URLs via ajax call to svc/article_request (Add action update_urls). Add URL column to pending and processing table. Allow Edit URLs for pending table too (just as Complete). Do not allow 'Complete request' if a scan request has no URL(s). Test plan: [1] Add a few scan and photocopy requests. [2] Fill url-A and url-B in two separate scan requests. [3] Verify that these two urls are really saved (refresh form). [4] Check that you cannot complete a scan request without URL and that you cannot add a URL to a photocopy request. Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart --- .../prog/en/modules/circ/article-requests.tt | 77 ++++++++++++++++++- svc/article_request | 7 +- 2 files changed, 81 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt index 8cf05a2d5f..e97eb8708b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt @@ -24,6 +24,13 @@ Process request + [% IF id_arg && format=='SCAN' %] + + + Edit URLs + + [% END %] + Complete request @@ -51,6 +58,23 @@ [% ELSIF myitem.notforloan < 0 %]On order [% END %] [% END %] +[% BLOCK urls_modal %] + +[% END %] [% INCLUDE 'header.inc' %] @@ -76,6 +100,7 @@

Article requests

+ [% PROCESS urls_modal %]