Bug 11746 - Add edit item links to record details page
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 12 Feb 2014 12:47:46 +0000 (07:47 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 26 Feb 2014 15:55:51 +0000 (15:55 +0000)
In order to edit a specific item right now, one must select the edit
pulldown, then choose edit items, the click the edit link for the
particular item the librarian wishes to edit. It would be much more
convenient to have an edit link for each specific item in the items
table on the record details page.

Test Plan:
1) Apply this patch
2) View the record details for a record with items
3) Click the edit link for a particular item
4) Note that you are taken immediately to the item editor
   for this particular item

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Havilah Lyon <havilah@aflibrary.org>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

index 831e0b2..1a3ce6a 100644 (file)
@@ -540,6 +540,7 @@ function verify_images() {
                 [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
                 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
                 [% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
+                <th>Edit</th>
             </tr>
         </thead>
         <tbody>
@@ -713,6 +714,7 @@ function verify_images() {
                        [% END %]
                     </td>
                 [% END %]
+                <td><a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber %]&itemnumber=[% item.itemnumber %]#edititem">Edit</a></td>
                 </tr>
             [% END %]
         </tbody>