Ver código fonte

Bug 27332: Use the branchcode from the subscription when renewing

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Jonathan Druart 3 anos atrás
pai
commit
6aa9f78258
  1. 5
      koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-renew.tt
  2. 3
      serials/subscription-renew.pl

5
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-renew.tt

@ -1,3 +1,4 @@
[% USE Branches %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
[% IF subscription %]
@ -64,9 +65,7 @@
<option value="">None</option>
[% END %]
[% IF CAN_user_serials_superserials %]
[% FOREACH library IN libraries %]
<option value="[% library.branchcode | html %]"> [% library.branchname | html %] </option>
[% END %]
[% PROCESS options_for_libraries libraries => Branches.all(selected => subscription.branchcode) %]
[% END %]
</select> (select a library)
</li>

3
serials/subscription-renew.pl

@ -129,11 +129,8 @@ if ( $op eq "renew" ) {
);
}
my $libraries = Koha::Libraries->search( {}, { order_by => ['branchcode'] }, );
$template->param(
op => $op,
libraries => $libraries,
);
output_html_with_http_headers $query, $cookie, $template->output;

Carregando…
Cancelar
Salvar