show acq user requests action from lineitems in lists
authorJason Etheridge <jason@esilibrary.com>
Thu, 28 Jul 2011 11:53:56 +0000 (07:53 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 20 Sep 2011 15:32:34 +0000 (11:32 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/acq/common/li_table.tt2
Open-ILS/src/templates/acq/picklist/user_request.tt2
Open-ILS/web/js/ui/default/acq/common/li_table.js
Open-ILS/web/js/ui/default/acq/picklist/user_request.js

index 268e987..8f078ab 100644 (file)
                                         <span name="worksheet"> | <a title='Generate Worksheet' name="worksheet_link" href="javascript:void(0);">&#x270D; worksheet</a></span>
                                         <span name='pl' class='hidden'> | <a title='Select List' name='pl_link' href='javascript:void(0);'>&#x2756; </a></span>
                                         <span name='po' class='hidden'> | <a title='Purchase Order' name='po_link' href='javascript:void(0);'>&#x2318; </a></span>
+                                        <span name="show_requests"> | <a title='Patron Requests' name="show_requests_link" href="javascript:void(0);">requests</a></span> 
                                     </td>
                                 </tr>
                             </tbody>
index fe9486f..a478fdc 100644 (file)
@@ -44,7 +44,7 @@
                     suppressFields='["id", "usr", "pickup_lib", "holdable_formats", "phone_notify", "email_notify", "lineitem", "eg_bib", "max_fee", "cancel_reason"]'
                     fieldOrder='["title", "author", "isxn", "article_title", "article_pages", "request_type", "volume", "pubdate", "publisher", "location", "other_info", "mentioned"]'
                     editOnEnter='true'
-                    suppressEditFields='["id", "holdable_formats", "phone_notify", "email_notify", "lineitem", "eg_bib", "max_fee", "cancel_reason"]'
+                    suppressEditFields='["id", "holdable_formats", "phone_notify", "email_notify", "eg_bib", "max_fee", "cancel_reason"]'
                     fmClass='aur'
                     editStyle='pane'
                     autoHeight='true'
index 3bfc4b4..23ed428 100644 (file)
@@ -297,6 +297,9 @@ function AcqLiTable() {
         nodeByName("worksheet_link", row).href =
             oilsBasePath + "/acq/lineitem/worksheet/" + li.id();
 
+        nodeByName("show_requests_link", row).href =
+            oilsBasePath + "/acq/picklist/user_request?lineitem=" + li.id();
+
         dojo.query('[attr=title]', row)[0].onclick = function() {self.drawInfo(li.id())};
         dojo.query('[name=copieslink]', row)[0].onclick = function() {self.drawCopies(li.id())};
         dojo.query('[name=noteslink]', row)[0].onclick = function() {self.drawLiNotes(li)};
index 331e0d9..8e7f7c1 100644 (file)
@@ -21,13 +21,8 @@ var cgi = new openils.CGI();
 
 function setup() {
 
-    if (cgi.param('eg_bib')) {
-        changeBib(cgi.param('eg_bib'));
-    }
-
-    if (cgi.param('lineitem')) {
-        changeLI(cgi.param('lineitem'));
-    }
+    changeBib(cgi.param('eg_bib'));
+    changeLI(cgi.param('lineitem'));
 
     if (cgi.param('usr')) {
         var usr_obj = fieldmapper.standardRequest(