<field reporter:label="Owning Org Unit" name="owning_lib" reporter:datatype="org_unit"/>
<field reporter:label="Copy Location Orders" name="orders" oils_persist:virtual="true" reporter:datatype="link"/>
<field reporter:label="Copies" name="copies" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Label Prefix" name="label_prefix" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Label Suffix" name="label_suffix" reporter:datatype="text" oils_persist:i18n="true"/>
</fields>
<links>
<link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
appendClear($n( row, 'cl_hold_verify'), (isTrue(cl.hold_verify())) ? _TRUE.cloneNode(true) : _FALSE.cloneNode(true) );
appendClear($n( row, 'cl_visible'), (isTrue(cl.opac_visible())) ? _TRUE.cloneNode(true) : _FALSE.cloneNode(true) );
appendClear($n( row, 'cl_circulate'), (isTrue(cl.circulate())) ? _TRUE.cloneNode(true) : _FALSE.cloneNode(true) );
+ $n( row, 'cl_label_prefix').appendChild(text(cl.label_prefix()));
+ $n( row, 'cl_label_suffix').appendChild(text(cl.label_suffix()));
var edit = $n( row, 'cl_edit');
edit.onclick = function() { clEdit( cl, tbody, row ); };
if(isTrue(cl.hold_verify())) arr[6].checked = true;
else arr[7].checked = true;
+ var label_prefix = $n(r, 'cl_edit_label_prefix');
+ if (cl.label_prefix()) {
+ label_prefix.setAttribute('size', cl.label_prefix().length + 3);
+ } else {
+ label_prefix.setAttribute('size', 3);
+ }
+ label_prefix.value = cl.label_prefix();
+
+ var label_suffix = $n(r, 'cl_edit_label_suffix');
+ if (cl.label_suffix()) {
+ label_suffix.setAttribute('size', cl.label_suffix().length + 3);
+ } else {
+ label_suffix.setAttribute('size', 3);
+ }
+ label_suffix.value = cl.label_suffix();
+
$n(r, 'cl_edit_cancel').onclick = function(){cleanTbody(tbody,'edit');}
$n(r, 'cl_edit_commit').onclick = function(){clEditCommit( tbody, r, cl ); }
if(arr[6].checked) cl.hold_verify(1);
else cl.hold_verify(0);
cl.name($n(r, 'cl_edit_name').value);
+ cl.label_prefix($n(r, 'cl_edit_label_prefix').value);
+ cl.label_suffix($n(r, 'cl_edit_label_suffix').value);
var req = new Request( UPDATE_CL, SESSION, cl );
req.send(true);
<td width=''>&staff.server.admin.copy_locations.editor.hold_verify;</td>
<td width=''>&staff.server.admin.copy_locations.editor.opac_visible;</td>
<td width=''>&staff.server.admin.copy_locations.editor.circulate;</td>
+ <td width=''>Label prefix</td>
+ <td width=''>Label suffix</td>
<td width=''>&staff.server.admin.copy_locations.editor.edit;</td>
<td width=''>&staff.server.admin.copy_locations.editor.delete;</td>
</tr>
<td name='cl_hold_verify'> </td>
<td name='cl_visible'> </td>
<td name='cl_circulate'> </td>
+ <td name='cl_label_prefix'> </td>
+ <td name='cl_label_suffix'> </td>
<td><input type='submit' value='Edit' name='cl_edit' disabled='disabled'> </input></td>
<td><input type='submit' value='Delete' name='cl_delete' disabled='disabled'> </input></td>
</tr>
<input type='radio' name='cl_edit_circulate'/>
</span>
</td>
+ <td><input name='cl_edit_label_prefix' type='text'> </input></td>
+ <td><input name='cl_edit_label_suffix' type='text'> </input></td>
<td><input type='submit' name='cl_edit_commit' value='&staff.server.admin.copy_locations.submit;'/></td>
<td><input type='submit' name='cl_edit_cancel' value='&staff.server.admin.copy_locations.cancel;'/></td>
</tr>