- Make e-item checkout/hold buttons look like regular buttons.
- Make ebook "holdings" table look like the regular holdings table.
Signed-off-by: Jeff Davis <jeff.davis@bc.libraries.coop>
-%]
<div id="[% ebook.rec_id %]" class="ebook_avail hidden">
<div id="[% ebook.ebook_id %]" class="[% ebook.vendor %]_avail">
- <table id="[% ebook.rec_id %]_ebook_holdings" class="result_holdings_table hidden">
+ <table id="[% ebook.rec_id %]_ebook_holdings" class="result_table_title_cell container-fluid table table-hover mt-4 miniTable holdingsTable hidden">
<thead>
<tr>
<th>[% l('Available Formats') %]</th>
[%- END -%]
[%- IF ebook_api.enabled == 'true' && args.ebook %]
-
- <div id="[%- ctx.bre_id -%]_ebook_checkout" class="rdetail_aux_utils ebook_action hidden">
- <a class="btn btn-action no-dec" role="button" href="[% mkurl(ctx.opac_root _ '/myopac/ebook_checkout',
- {title => args.ebook.ebook_id, vendor => args.ebook.vendor, action => 'checkout'}, stop_parms) %]"
- rel="nofollow" vocab="">
- <span class="place_hold"><i class="fas fa-check" aria-hidden="true"></i> [% l('Check Out E-Item') %]</span></a>
- </div>
-
-
- <div id="[%- ctx.bre_id -%]_ebook_place_hold" class="rdetail_aux_utils ebook_action hidden">
- <a class="btn btn-action no-dec" role="button" href="[% mkurl(ctx.opac_root _ '/myopac/ebook_place_hold',
- {title => args.ebook.ebook_id, vendor => args.ebook.vendor, action => 'place_hold'}, stop_parms) %]"
- rel="nofollow" vocab="">
- <span class="place_hold"><i class="fas fa-check" aria-hidden="true"></i> [% l('Place Hold on E-Item') %]</span></a>
- </div>
-
+ <a id="[%- ctx.bre_id -%]_ebook_checkout"
+ class="btn btn-action no-dec hidden" role="button" href="[% mkurl(ctx.opac_root _ '/myopac/ebook_checkout',
+ {title => args.ebook.ebook_id, vendor => args.ebook.vendor, action => 'checkout'}, stop_parms) %]"
+ rel="nofollow" vocab="">
+ <span class="place_hold"><i class="fas fa-check" aria-hidden="true"></i> [% l('Check Out E-Item') %]</span></a>
+ <a id="[%- ctx.bre_id -%]_ebook_place_hold"
+ class="btn btn-action no-dec hidden" role="button" href="[% mkurl(ctx.opac_root _ '/myopac/ebook_place_hold',
+ {title => args.ebook.ebook_id, vendor => args.ebook.vendor, action => 'place_hold'}, stop_parms) %]"
+ rel="nofollow" vocab="">
+ <span class="place_hold"><i class="fas fa-check" aria-hidden="true"></i> [% l('Place Hold on E-Item') %]</span></a>
[%- END -%]
<!-- eBook Buttons -->
[%- IF ebook_api.enabled == 'true' && args.ebook %]
- <a href="[% mkurl(ctx.opac_root _ '/myopac/ebook_checkout',
+ <a id="[%- rec.id -%]_ebook_checkout"
+ href="[% mkurl(ctx.opac_root _ '/myopac/ebook_checkout',
{title => args.ebook.ebook_id, vendor => args.ebook.vendor, action => 'checkout'},
['query','tag','subfield','term','_special','sort','page']) %]"
[% html_text_attr('title', l('Check Out [_1]', attrs.title)) %]
- class="btn btn-action" role="button" rel="nofollow" vocab=""><i class="fas fa-atlas" aria-hidden="true"></i> <span class="result_place_hold">[% l('Check Out E-Item') %]</span></a>
+ class="btn btn-action hidden" role="button" rel="nofollow" vocab=""><i class="fas fa-atlas" aria-hidden="true"></i> <span class="result_place_hold">[% l('Check Out E-Item') %]</span></a>
- <a href="[% mkurl(ctx.opac_root _ '/myopac/ebook_place_hold',
+ <a id="[%- rec.id -%]_ebook_place_hold"
+ href="[% mkurl(ctx.opac_root _ '/myopac/ebook_place_hold',
{title => args.ebook.ebook_id, vendor => args.ebook.vendor, action => 'place_hold'},
['query','tag','subfield','term','_special','sort','page']) %]"
[% html_text_attr('title', l('Place Hold on [_1]', attrs.title)) %]
- class="btn btn-action" role="button" rel="nofollow" vocab=""><i class="fas fa-book-reader" aria-hidden="true"></i> <span class="result_place_hold">[% l('Place Hold on E-Item') %]</span></a>
+ class="btn btn-action hidden" role="button" rel="nofollow" vocab=""><i class="fas fa-book-reader" aria-hidden="true"></i> <span class="result_place_hold">[% l('Place Hold on E-Item') %]</span></a>
[%- END -%]