<eg-grid-field label="[% l('Circulate As MARC Type') %]" path="circ_as_type"></eg-grid-field>
<eg-grid-field label="[% l('Circulate') %]" datatype="bool" path="circulate"></eg-grid-field>
<eg-grid-field label="[% l('Holdable') %]" datatype="bool" path="holdable"></eg-grid-field>
+ <eg-grid-field label="[% l('Age-based Hold Protection') %]" path="age_protect.name"></eg-grid-field>
<eg-grid-field label="[% l('Reference') %]" datatype="bool" path="ref"></eg-grid-field>
</eg-grid>
<div class="flex-cell">[% l('Circ Modifier') %]</div>
<div class="flex-cell well">{{copy.circ_modifier().name()}}</div>
+ <div class="flex-cell">[% l('Age-based Hold Protection') %]</div>
+ <div class="flex-cell well">{{copy.age_protect().name()}}</div>
<!-- empty -->
<div class="flex-cell"></div>
<div class="flex-cell"></div>
service.flesh = {
flesh : 3,
flesh_fields : {
- acp : ['call_number','location','status','location','floating'],
+ acp : ['call_number','location','status','location','floating','circ_modifier','age_protect'],
acn : ['record','prefix','suffix'],
bre : ['simple_record','creator','editor']
},
service.prototype.flesh = {
flesh : 2,
flesh_fields : {
- acp : ['status','location','circ_lib','parts'],
+ acp : ['status','location','circ_lib','parts','age_protect'],
acn : ['prefix','suffix','copies']
}
}
<!ENTITY staff.circ.alternate_copy_summary.Edition.label "Edition">
<!ENTITY staff.circ.alternate_copy_summary.Floating.label "Floating">
<!ENTITY staff.circ.alternate_copy_summary.Holdable.label "Holdable">
+<!ENTITY staff.circ.alternate_copy_summary.Age_Protect.label "Age-based Hold Protection">
<!ENTITY staff.circ.alternate_copy_summary.Hold_Shelf_Location.label "Hold Shelf Location">
<!ENTITY staff.circ.alternate_copy_summary.Holds_Transit.label "Holds/Transit">
<!ENTITY staff.circ.alternate_copy_summary.Holds_Transit.accesskey "">
'fine_level',
'circulate',
'holdable',
+ 'age_protect',
'opac_visible',
'ref',
'deposit',
if (details.copy) {
set("stat_cat_entries", details.copy.stat_cat_entries());
- set("age_protect", details.copy.age_protect());
+ var ap = details.copy.age_protect();
+ if (typeof data.hash.crahp[ap] != 'undefined') {
+ set("age_protect", data.lookup('crahp',details.copy.age_protect()).name());
+ } else {
+ set("age_protect","");
+ }
set("alert_message", details.copy.alert_message());
set("barcode", details.copy.barcode());
if (typeof details.copy.call_number() == 'object') {
<textbox name="copy_id" readonly="true" context="clipboard"/>
<label value="&staff.circ.alternate_copy_summary.Holdable.label;" />
<textbox name="holdable" readonly="true" context="clipboard"/>
- <spacer /><spacer />
+ <label value="&staff.circ.alternate_copy_summary.Age_Protect.label;" />
+ <textbox name="age_protect" readonly="true" context="clipboard"/>
<label value="&staff.circ.alternate_copy_summary.Checkin_Time.label;" />
<textbox name="checkin_time" readonly="true" context="clipboard"/>
</row>
}
},
{
+ 'id' : 'age_protect',
+ 'fm_class' : 'acp',
+ 'label' : document.getElementById('circStrings').getString('staff.circ.utils.age_protect'),
+ 'flex' : 1,
+ 'primary' : false,
+ 'hidden' : true,
+ 'editable' : false, 'render' : function(my) {
+ if (Number(my.acp.age_protect())>=0) {
+ return data.lookup("crahp", my.acp.age_protect() ).name();
+ } else {
+ return my.acp.age_protect().name();
+ }
+ }
+ },
+ {
'id' : 'floating',
'fm_class' : 'acp',
'label' : document.getElementById('circStrings').getString('staff.circ.utils.floating'),
staff.circ.utils.circulate=Circulate?
staff.circ.utils.deleted=Deleted?
staff.circ.utils.holdable=Holdable?
+staff.circ.utils.age_protect=Age-based Hold Protection
staff.circ.utils.floating=Floating?
staff.circ.utils.hold_note=Hold Note(s) Count
staff.circ.utils.hold_note_text=Hold Note(s) Text
staff.acp_label_price=Price
staff.acp_label_cost=Acquisition Cost
staff.acp_label_status=Status
+staff.acp_label_age_protect=Age-based Hold Protection
staff.ahr_current_copy_label=Current Copy
staff.ahr_current_copy_location_label=Current Copy Location
staff.ahr_email_notify_label=Email Notify