Because of variable leakage that breaks org selectors.
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
PROCESS "opac/parts/misc_util.tt2"; # MARC
WRAPPER "kpac/parts/subpage.tt2";
attrs = {marc_xml => ctx.marc_xml};
- PROCESS get_marc_attrs args=attrs;
+ INCLUDE get_marc_attrs args=attrs;
ctx.page_title = attrs.title | html
%]
WRAPPER "kpac/parts/subpage.tt2";
PROCESS "opac/parts/misc_util.tt2"; # MARC
attrs = {marc_xml => ctx.marc_xml};
- PROCESS get_marc_attrs args=attrs;
+ INCLUDE get_marc_attrs args=attrs;
ctx.page_title = l('Get it');
kill_params = ['list', 'hold', 'hold_failed', 'pickup_lib', 'action'];
title_html = attrs.title | html;
PROCESS "opac/parts/misc_util.tt2"; # MARC
WRAPPER "kpac/parts/subpage.tt2";
attrs = {marc_xml => ctx.marc_xml};
- PROCESS get_marc_attrs args=attrs;
+ INCLUDE get_marc_attrs args=attrs;
ctx.page_title = attrs.title | html
%]
<div id="search_results_parent"> [%
FOR rec IN ctx.records;
attrs = {marc_xml => rec.marc_xml};
- PROCESS get_marc_attrs args=attrs;
+ INCLUDE get_marc_attrs args=attrs;
INCLUDE 'kpac/parts/record_row.tt2' show_actions=1 rec_id=rec.id;
END;
%] </div>
<tbody>
[% FOR circ IN ctx.circs;
attrs = {marc_xml => circ.marc_xml};
- PROCESS get_marc_attrs args=attrs; %]
+ INCLUDE get_marc_attrs args=attrs; %]
<tr>
<td>
<a href="[% mkurl(ctx.opac_root _ '/record/' _ circ.circ.target_copy.call_number.record.id) %]"
<tbody>
[% FOR circ IN ctx.circs;
attrs = {marc_xml => circ.marc_xml};
- PROCESS get_marc_attrs args=attrs; %]
+ INCLUDE get_marc_attrs args=attrs; %]
<tr>
<td class="checkbox_column" valign="top">
<input type="checkbox" name="circ"
<tbody>
[% FOR hold IN ctx.holds;
attrs = {marc_xml => hold.marc_xml};
- PROCESS get_marc_attrs args=attrs;
+ INCLUDE get_marc_attrs args=attrs;
ahr = hold.hold.hold %]
<tr id="acct_holds_temp" name="acct_holds_temp" class="acct_holds_temp">
<tbody id="holds_temp_parent">
[% FOR hold IN ctx.holds;
attrs = {marc_xml => hold.marc_xml};
- PROCESS get_marc_attrs args=attrs;
+ INCLUDE get_marc_attrs args=attrs;
ahr = hold.hold.hold %]
<tr id="acct_holds_temp" name="acct_holds_temp"
class="acct_holds_temp[% ahr.frozen == 't' ? ' inactive-hold' : '' %]">
hold = ctx.holds.0;
ahr = hold.hold.hold;
attrs = {marc_xml => hold.marc_xml};
- PROCESS get_marc_attrs args=attrs;
+ INCLUDE get_marc_attrs args=attrs;
hold.human_status = PROCESS get_hold_status hold=hold;
# Do this up front to avoid verbosity later
[% FOR item IN bbag.items;
rec_id = item.target_biblio_record_entry.id;
attrs = {marc_xml => ctx.bookbags_marc_xml.$rec_id};
- PROCESS get_marc_attrs args=attrs %]
+ INCLUDE get_marc_attrs args=attrs %]
<tr class="bookbag-item-row">
<td class="list_checkbox">
<input type="checkbox" name="selected_item" value="[% item.id %]" bbag='[% bbag.id %]'/>
[% FOR f IN ctx.fines.circulation;
attrs = {marc_xml => f.marc_xml};
IF f.marc_xml;
- PROCESS get_marc_attrs args=attrs;
+ INCLUDE get_marc_attrs args=attrs;
ELSIF f.xact.reservation;
attrs.title = f.xact.reservation.target_resource_type.name;
END %]
!CGI.param('xact').grep(f.xact.id).size;
attrs = {marc_xml => f.marc_xml};
IF f.marc_xml;
- PROCESS get_marc_attrs args=attrs;
+ INCLUDE get_marc_attrs args=attrs;
ELSIF f.xact.reservation;
attrs.title = f.xact.reservation.target_resource_type.name;
END %]
<tbody>
[% FOR item IN ctx.mylist;
attrs = {marc_xml => ctx.mylist_marc_xml.$item};
- PROCESS get_marc_attrs args=attrs %]
+ INCLUDE get_marc_attrs args=attrs %]
<tr>
<td class="item_list_padding" style="padding-left: 10px;">
<input type="checkbox" name="record" value="[% item %]" />
<table id='hold-items-list'>
[% FOR hdata IN ctx.hold_data;
attrs = {marc_xml => hdata.marc_xml};
- PROCESS get_marc_attrs args=attrs %]
+ INCLUDE get_marc_attrs args=attrs %]
<tr>
<td>
<input type="hidden" name="hold_target" value="[% hdata.target.id | html %]" />
[% FOR hdata IN ctx.hold_data;
attrs = {marc_xml => hdata.marc_xml};
- PROCESS get_marc_attrs args=attrs %]
+ INCLUDE get_marc_attrs args=attrs %]
<tr>
<td>
[%
[%- attrs = {marc_xml => ctx.marc_xml};
PROCESS "opac/parts/misc_util.tt2";
- PROCESS get_marc_attrs args=attrs;
+ INCLUDE get_marc_attrs args=attrs;
stop_parms = ['expand','cnoffset'];
ctx.record_attrs = attrs; # capture for JS
%]
[% END -%]
<td class='cn_browse_item' width='25%' valign='top'>
[% rec_attrs = {marc_xml => cn.record.marc};
- PROCESS get_marc_attrs args=rec_attrs;
+ INCLUDE get_marc_attrs args=rec_attrs;
ident = rec_attrs.isbn_clean || rec_attrs.upc;
IF ident %]
<a href="[% mkurl(ctx.opac_root _ '/record/' _ cn.record.id, {$loc_name => loc_value}, 1) %]"><img height='60' width='50'
<tbody id="result_table">
[% FOR rec IN ctx.records;
attrs = {marc_xml => rec.marc_xml};
- PROCESS get_marc_attrs args=attrs;
+ INCLUDE get_marc_attrs args=attrs;
IF CGI.param('detail_record_view');
attrs.title = attrs.title_extended;
END;