[% PROCESS "opac/parts/misc_util.tt2";
USE ResolverResolver;
ctx.page_title = attrs.title | html
%]
[%- IF ctx.refworks.enabled == 'true' %]
[% INCLUDE 'opac/parts/record/refworks.tt2' %]
[%- END %]
[%- # This holds the record summary information %]
[% ident = attrs.isbn_clean || attrs.upc; IF ident; %]
[% END %]
[%-
operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add";
label = (operation == "add") ? l("Add to my list") : l("Remove from my list");
%]
[% label %]
[%- IF attrs.format_icon %]
[%- END %]
[% attrs.title_extended | html %]
[%- INCLUDE "opac/parts/record/authors.tt2" %]
[%- IF openurl.enabled == 'true';
sfx = []
FOR issn IN args.issns;
sfx = sfx.import(ResolverResolver.resolve_issn(issn, openurl.baseurl));
END;
IF sfx.size && sfx.0 != '';
%]
[% l("Electronic resources") %]
[%- END %]
[%- IF sfx.size && sfx.0 != '' %]
[%- END %]
[%- FOR uri IN args.uris; %]
[%- END %]
[%- # hold/copy summary %]
[%- IF ctx.copy_summary.0.count %]
[%- l("[quant,_1,current hold,current holds] with [quant,_2,total copy,total copies].",
ctx.record_hold_count, ctx.copy_summary.0.count) %]
[% l('[quant,_1,copy,copies] currently available.', ctx.copy_summary.0.available) %]
[% END %]
[%- IF ctx.copy_summary.0.count %]
[% l('Copies') %]
[%- IF ctx.is_staff %]
[%- END %]
[%- last_cn = 0;
FOR copy_info IN ctx.copies;
NEXT IF copy_info.call_number_label == '##URI##' %]
[%-
org_name = ctx.get_aou(copy_info.circ_lib).name;
org_name | html
-%]
|
[% copy_info.call_number_label | html %] |
[% copy_info.barcode | html %] |
[% copy_info.copy_location | html %] |
[%- IF ctx.is_staff %]
[% copy_info.age_protect ?
ctx.get_crahp(copy_info.age_protect).name : l('None') | html %]
|
[% date.format(
ctx.parse_datetime(copy_info.create_date),
DATE_FORMAT
) %] |
[% # Show copy/volume hold links to staff (without
# checking whether they have permissions to do those).
overall_holdable = (copy_info.holdable == 't' AND
copy_info.location_holdable == 't' AND
copy_info.status_holdable == 't');
IF overall_holdable;
l("Place on"); %]
[% l("copy") %]
[%- IF copy_info.call_number != last_cn;
last_cn = copy_info.call_number;
l(" / "); %]
[% l("volume") %]
[%- END;
ELSE;
l("No");
END %] |
[%- END %]
[% copy_info.copy_status | html %] |
[%
IF copy_info.due_date;
date.format(
ctx.parse_datetime(copy_info.due_date),
DATE_FORMAT
);
ELSE;
'-';
END %] |
[%- END %]
[%- IF ctx.copy_offset > 0;
new_offset = ctx.copy_offset - ctx.copy_limit;
IF new_offset < 0; new_offset = 0; END %]
« [%
l('Previous [_1]', ctx.copy_offset - new_offset) %]
|
[%- END %]
[%- IF ctx.copies.size >= ctx.copy_limit %]
[%
l('Next [_1]', ctx.copy_limit) %] »
|
[%- END %]
[%- more_copies_limit = 50 %] [%# TODO: config %]
[%- IF ctx.copy_limit != more_copies_limit AND ctx.copies.size >= ctx.copy_limit %]
[%- ELSIF ctx.copy_limit == more_copies_limit %]
[%- END %]
|
[%- END %]
[% l("Record details") %]
[%- IF attrs.isbns.0; FOR isbn IN attrs.isbns %]
-
[% l('ISBN:'); %]
[% isbn | html %]
[%- END %]
[%- END %]
[%- IF attrs.issns.0; FOR issn IN attrs.issns %]
-
[% l('ISSN:'); %]
[% issn | html %]
[%- END %]
[%- END %]
[%- IF attrs.phys_desc %]
-
[% l("Physical Description:") %]
[% attrs.phys_desc | html %]
[%- END %]
[%- IF attrs.edition %]
-
[% l("Edition:") %]
[% attrs.edition | html %]
[%- END %]
[%- IF attrs.publisher %]
-
[% l("Publisher:") %]
[% attrs.publisher | html %] [% IF attrs.pubdate; attrs.pubdate | html; END %]
[%- END %]
[%- INCLUDE "opac/parts/record/subjects.tt2" %]
[%- INCLUDE "opac/parts/record/series.tt2" %]