don't test for UPDATE_BATCH_COPY if single copy is being edited
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 5 Sep 2006 02:12:11 +0000 (02:12 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 5 Sep 2006 02:12:11 +0000 (02:12 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5937 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/admin/transit_list.js
Open-ILS/xul/staff_client/server/cat/copy_browser.js
Open-ILS/xul/staff_client/server/cat/copy_buckets.js
Open-ILS/xul/staff_client/server/circ/checkin.js
Open-ILS/xul/staff_client/server/circ/copy_status.js

index bf6c948..ee5e33f 100644 (file)
@@ -447,7 +447,7 @@ admin.transit_list.prototype = {
                                                        return obj.network.simple_request('FM_ACN_RETRIEVE',[o.call_number()]).owning_lib();
                                                }
                                        ),
-                                       [ 'UPDATE_COPY', 'UPDATE_BATCH_COPY' ]
+                                       copies.length == 1 ? [ 'UPDATE_COPY' ] : [ 'UPDATE_COPY', 'UPDATE_BATCH_COPY' ]
                                ]
                        ).length == 0 ? 1 : 0;
                } catch(E) {
index caf89c5..f5c071d 100644 (file)
@@ -308,7 +308,7 @@ cat.copy_browser.prototype = {
                                                                                                                return obj.map_acn[ 'acn_' + obj.map_acp[ 'acp_' + o ].call_number() ].owning_lib();
                                                                                                        }
                                                                                                ),
-                                                                                               [ 'UPDATE_COPY', 'UPDATE_BATCH_COPY' ]
+                                                                                               list.length == 1 ? [ 'UPDATE_COPY' ] : [ 'UPDATE_COPY', 'UPDATE_BATCH_COPY' ]
                                                                                        ]
                                                                                ).length == 0 ? 1 : 0;
                                                                        } catch(E) {
index 1d45fdf..6ea2c18 100644 (file)
@@ -347,7 +347,7 @@ cat.copy_buckets.prototype = {
                                                                                                        return obj.network.simple_request('FM_ACN_RETRIEVE',[o.call_number()]).owning_lib();
                                                                                                }
                                                                                        ),
-                                                                                       [ 'UPDATE_COPY', 'UPDATE_BATCH_COPY' ]
+                                                                                       copies.length == 1 ? [ 'UPDATE_COPY' ] : [ 'UPDATE_COPY', 'UPDATE_BATCH_COPY' ]
                                                                                ]
                                                                        ).length == 0 ? 1 : 0;
                                                                } catch(E) {
index fd9d014..716464c 100644 (file)
@@ -366,7 +366,7 @@ circ.checkin.prototype = {
                                                        return obj.network.simple_request('FM_ACN_RETRIEVE',[o.call_number()]).owning_lib();
                                                }
                                        ),
-                                       [ 'UPDATE_COPY', 'UPDATE_BATCH_COPY' ]
+                                       copies.length == 1 ? [ 'UPDATE_COPY' ] : [ 'UPDATE_COPY', 'UPDATE_BATCH_COPY' ]
                                ]
                        ).length == 0 ? 1 : 0;
                } catch(E) {
index bcc3c9f..a03419a 100644 (file)
@@ -384,7 +384,7 @@ circ.copy_status.prototype = {
                                                        return obj.network.simple_request('FM_ACN_RETRIEVE',[o.call_number()]).owning_lib();
                                                }
                                        ),
-                                       [ 'UPDATE_COPY', 'UPDATE_BATCH_COPY' ]
+                                       copies.length == 1 ? [ 'UPDATE_COPY' ] : [ 'UPDATE_COPY', 'UPDATE_BATCH_COPY' ]
                                ]
                        ).length == 0 ? 1 : 0;
                } catch(E) {