https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20995

Katrin Fischer <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #80069|1                           |0
        is obsolete|                            |

--- Comment #10 from Katrin Fischer <[email protected]> ---
Comment on attachment 80069
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=80069
Bug 20995: Add Request ID to table and request view

>From 9a31b446c429ee7d2b712631278870173ff58511 Mon Sep 17 00:00:00 2001
>From: Andrew Isherwood <[email protected]>
>Date: Tue, 26 Jun 2018 11:36:33 +0100
>Subject: [PATCH] Bug 20995: Add Request ID to table and request view
>
>This patch adds the display of Request ID to the OPAC views of all a
>user's requests and the individual request.
>
>To test:
>
>1) Ensure you have ILL enabled
>2) Log into the OPAC as a user with at least one request
>3) Go to the "your interlibrary loan requests" page
>4) TEST: Ensure that Request ID is displayed as the first column in the
>table
>5) Click the "View" button on a request
>6) TEST: Ensure that Request ID is displayed along with all the other
>request information
>
>Signed-off-by: [email protected]
>
>Signed-off-by: Katrin Fischer <[email protected]>
>---
> .../bootstrap/en/modules/opac-illrequests.tt       | 24 +++++++++++++++-------
> 1 file changed, 17 insertions(+), 7 deletions(-)
>
>diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt 
>b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt
>index 838f827951..77fd1d0715 100644
>--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt
>+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt
>@@ -111,6 +111,7 @@
>                     <table id="illrequestlist" class="table table-bordered 
> table-striped">
>                         <thead>
>                             <tr>
>+                                <th>Request ID</th>
>                                 <th>Author</th>
>                                 <th>Title</th>
>                                 <th>Requested from</th>
>@@ -125,13 +126,18 @@
>                             [% FOREACH request IN requests %]
>                                 [% status = request.status | html %]
>                                 <tr>
>-                                    <td>[% request.metadata.Author || 'N/A' | 
>html %]</td>
>-                                    <td>[% request.metadata.Title || 'N/A' | 
>html %]</td>
>-                                    <td>[% request.backend | html %]</td>
>-                                    <td>[% request.medium | html %]</td>
>-                                    <td>[% request.capabilities.$status.name 
>| html %]</td>
>-                                    <td>[% request.placed | html %]</td>
>-                                    <td>[% request.updated | html %]</td>
>+                                    <td>[% request.id %]</td>
>+                                    <td>
>+                                        [% IF request.metadata.Author %][% 
>request.metadata.Author | html %][% ELSE %]<span>N/A</span>[% END %]
>+                                    </td>
>+                                    <td>
>+                                        [% IF request.metadata.Title %][% 
>request.metadata.Title | html %][% ELSE %]<span>N/A</span>[% END %]
>+                                    </td>
>+                                    <td>[% request.backend %]</td>
>+                                    <td>[% request.medium %]</td>
>+                                    <td>[% request.capabilities.$status.name 
>%]</td>
>+                                    <td>[% request.placed %]</td>
>+                                    <td>[% request.updated %]</td>
>                                     <td>
>                                         <a 
> href="/cgi-bin/koha/opac-illrequests.pl?method=view&amp;illrequest_id=[% 
> request.id | html %]" class="btn btn-default btn-small pull-right">View</a>
>                                     </td>
>@@ -148,6 +154,10 @@
>                                 <legend id="library_legend">Details from 
> library</legend>
>                                 <ol>
>                                     <li>
>+                                        <label for="request_id">Request 
>ID:</label>
>+                                        [% request.id %]
>+                                    </li>
>+                                    <li>
>                                         <label for="backend">Requested 
> from:</label>
>                                         [% request.backend | html %]
>                                     </li>
>-- 
>2.11.0

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to