<field reporter:label="Has Holds" name="holds_count" oils_persist:virtual="true" reporter:datatype="link"/>
<field reporter:label="Copy Tags" name="tags" oils_persist:virtual="true" reporter:datatype="link"/>
<field reporter:label="Copy Alerts" name="copy_alerts" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Inventory Date" name="inventory_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Inventory Workstation" name="inventory_workstation" reporter:datatype="link"/>
</fields>
<links>
<link field="age_protect" reltype="has_a" key="id" map="" class="crahp"/>
<link field="holds_count" reltype="might_have" key="id" map="" class="hasholdscount"/>
<link field="tags" reltype="has_many" key="copy" map="" class="acptcm"/>
<link field="copy_alerts" reltype="has_many" key="copy" map="" class="aca"/>
+ <link field="inventory_workstation" reltype="has_a" key="id" map="" class="aws"/>
</links>
<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
<actions>
remote_hold
backdate
reservation
+ inv_update
copy
copy_id
copy_barcode
$self->dont_change_lost_zero($dont_change_lost_zero);
}
+ if ($self->inv_update) {
+ $self->copy->inventory_date('now');
+ $self->copy->inventory_workstation($self->editor->requestor->wsid);
+ }
+
if( $self->checkin_check_holds_shelf() ) {
$self->bail_on_events(OpenILS::Event->new('NO_CHANGE'));
$self->hold($U->fetch_open_hold_by_copy($self->copy->id));
{{item['copy_alert_count']}}
<button ng-disabled="item['copy_alert_count'] <= 0" class="btn btn-sm btn-default" ng-click="col.handlers.copyAlertsEdit(item['id'])">[% l('Manage') %]</button>
</eg-grid-field>
+ <eg-grid-field label="[% l('Inventory Date') %]" path="inventory_date"></eg-grid-field>
+ <eg-grid-field label="[% l('Inventory Workstation') %]" path="inventory_workstation"></eg-grid-field>
</eg-grid>
</div>
{{item['copy_alert_count']}}
<button ng-disabled="item['copy_alert_count'] <= 0" class="btn btn-sm btn-default" ng-click="col.handlers.copyAlertsEdit(item['id'])">[% l('Manage') %]</button>
</eg-grid-field>
+ <eg-grid-field label="[% l('Inventory Date') %]" path="inventory_date"></eg-grid-field>
+ <eg-grid-field label="[% l('Inventory Workstation') %]" path="inventory_workstation.name()"></eg-grid-field>
</eg-grid>
</div>
<div class="flex-row">
+ <div class="flex-cell">[% l('Inventory Date') %]</div>
+ <div class="flex-cell well">{{copy.inventory_date() | date:egDateAndTimeFormat}}</div>
+
+ <div class="flex-cell">[% l('Inventory Workstation') %]</div>
+ <div class="flex-cell well">{{copy.inventory_workstation().name()}}</div>
+
+ <div class="flex-cell"></div>
+ <div class="flex-cell"></div>
+ <div class="flex-cell"></div>
+ <div class="flex-cell"></div>
+ </div>
+
+ <div class="flex-row">
<div class="flex-cell">[% l('Copy Alerts') %]</div>
<div class="flex-cell" id="item-status-alert-msg">
<button class="btn btn-default" ng-click="addCopyAlerts(copy.id())" >[% l('Add') %]</button>
<!-- checkin form -->
<div class="row pad-vert">
- <div class="col-md-5">
+ <div class="col-md-4">
<form ng-submit="checkin(checkinArgs)" role="form" class="form-inline">
<div class="input-group">
</div>
</div>
- <div class="col-md-4" ng-if="!is_capture">
+ <div class="col-md-2">
+ <input type="checkbox" ng-model="checkinArgs.do_inventory_update"/>
+ <label>
+ [% l('Update Inventory') %]
+ </label>
+ </div>
+
+ <div class="col-md-3" ng-if="!is_capture">
<div class="flex-row">
<div class="flex-cell"></div>
<div class="pad-horiz">[% l('Effective Date') %]</div>
flesh : 3,
flesh_fields : {
acp : ['call_number','location','status','location','floating','circ_modifier',
- 'age_protect','circ_lib','copy_alerts', 'editor'],
+ 'age_protect','circ_lib','copy_alerts', 'editor', 'inventory_workstation'],
acn : ['record','prefix','suffix','label_class'],
bre : ['simple_record','creator','editor']
},