shortname is not available in 1.2 global org tree. continue using name
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 3 Nov 2008 19:26:49 +0000 (19:26 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 3 Nov 2008 19:26:49 +0000 (19:26 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@11045 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/admin/copy_locations.js

index df2a89c..f5872dc 100644 (file)
@@ -107,7 +107,7 @@ function clDraw(r) {
 
 function clBuildRow( tbody, row, cl ) {
        $n( row, 'cl_name').appendChild(text(cl.name()));
-       $n( row, 'cl_owner').appendChild(text(findOrgUnit(cl.owning_lib()).shortname()));
+       $n( row, 'cl_owner').appendChild(text(findOrgUnit(cl.owning_lib()).name()));
 
        appendClear($n( row, 'cl_holdable'), (isTrue(cl.holdable())) ? _TRUE.cloneNode(true) : _FALSE.cloneNode(true) );
        appendClear($n( row, 'cl_hold_verify'), (isTrue(cl.hold_verify())) ? _TRUE.cloneNode(true) : _FALSE.cloneNode(true) );
@@ -133,7 +133,7 @@ function clEdit( cl, tbody, row ) {
        name.setAttribute('size', cl.name().length + 3);
        name.value = cl.name();
 
-       $n(r, 'cl_edit_owner').appendChild(text(findOrgUnit(cl.owning_lib()).shortname()));
+       $n(r, 'cl_edit_owner').appendChild(text(findOrgUnit(cl.owning_lib()).name()));
 
        var arr = _clOptions(r);
        if(isTrue(cl.holdable())) arr[0].checked = true;