Similar to the staff client bucket UI, this adds a button which allows
staff to access the batch Z39 search-and-queue operation directly from
the TPAC my-lists UI.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
my $local_xact = !$e->{xact_id};
$e->xact_begin if $local_xact;
+ # keep the original user object so we can restore
+ # login-specific data (e.g. workstation)
+ my $usr = $self->ctx->{user};
+
$self->ctx->{user} = $self->editor->retrieve_actor_user([
$self->ctx->{user}->id,
{
$e->rollback if $local_xact;
+ $self->ctx->{user}->wsid($usr->wsid);
+ $self->ctx->{user}->ws_ou($usr->ws_ou);
+
# discard replaced (negative-id) addresses.
$self->ctx->{user}->addresses([
grep {$_->id > 0} @{$self->ctx->{user}->addresses} ]);
[% END %]
</div>
</form>
+ [% IF ctx.is_staff %]
+ <div class="bookbag-controls">
+ <input
+ type="submit"
+ onclick='
+ var path =
+ "oils://remote/xul/server/cat/bucketz39_dialog.xul";
+ window.openDialog(
+ xulG.url_prefix(path),
+ "bucketz39_dialog",
+ "width=800,height=500",
+ "[% ctx.user.id %]",
+ "[% ctx.authtoken %]",
+ "[% ctx.user.ws_ou %]",
+ "[% bbag.id %]",
+ xulG
+ )'
+ value="[% l('Locate Z39.59 Matches') %]"
+ />
+ </div>
+ [% END %]
<div class="bookbag-controls">
[% IF bbag.pub == 't'; %]
<a target='_blank' href='/opac/extras/feed/bookbag/rss2-full/[% bbag.id %]'><img