<div class="row p-1 font-weight-bold border-top">
<div class="col-lg-2" i18n>Library</div>
<div class="col-lg-3" i18n>Shelving location</div>
- <div class="col-lg-4" i18n>Call number</div>
- <div class="col-lg-3" i18n>Status</div>
+ <div class="col-lg-3" i18n>Call number</div>
+ <div class="col-lg-2" i18n>Status</div>
+ <div class="col-lg-2" i18n>Due date</div>
</div>
<div class="row p-1 mt-1 mb-1 border-top" *ngFor="let copy of summary.copies">
<div class="col-lg-2" i18n>{{copy.circ_lib_sn}}</div>
<div class="col-lg-3" i18n>{{copy.copy_location}}</div>
- <div class="col-lg-4" i18n>
+ <div class="col-lg-3" i18n>
{{copy.call_number_prefix_label}}
{{copy.call_number_label}}
{{copy.call_number_suffix_label}}
</div>
- <div class="col-lg-3" i18n>{{copy.copy_status}}</div>
+ <div class="col-lg-2" i18n>{{copy.copy_status}}</div>
+ <div class="col-lg-2" *ngIf="copy.due_date">
+ {{copy.due_date | date:'shortDate'}}
+ </div>
</div>
</ng-container>
<ng-container *ngIf="!summary.copies.length && !summary.eResourceUrls.length">
return [] unless $org;
my $func = 'unapi.biblio_record_entry_feed';
- my $includes = '{holdings_xml,acp,acnp,acns}';
+ my $includes = '{holdings_xml,acp,acnp,acns,circ}';
my $limits = "acn=>$limit,acp=>$limit";
if ($is_meta) {
$func = 'unapi.metabib_virtual_record_feed';
- $includes = '{holdings_xml,acp,acnp,acns,mmr.unapi}';
+ $includes = '{holdings_xml,acp,acnp,acns,circ,mmr.unapi}';
$limits .= ",bre=>$limit";
}
my $status = $copy->getElementsByTagName('status')->[0]->textContent;
my $location = $copy->getElementsByTagName('location')->[0]->textContent;
my $circ_lib_sn = $copy->getElementsByTagName('circ_lib')->[0]->getAttribute('shortname');
+ my $due_date = '';
+
+ my $current_circ = $copy->findnodes('./*[local-name()="current_circulation"]')->[0];
+ if (my $circ = $current_circ->findnodes('./*[local-name()="circ"]')) {
+ $due_date = $circ->[0]->getAttribute('due_date');
+ }
push(@$copies, {
call_number_label => $label,
call_number_suffix_label => $suffix,
circ_lib_sn => $circ_lib_sn,
copy_status => $status,
- copy_location => $location
+ copy_location => $location,
+ due_date => $due_date
});
}
}