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>
+[% USE Branches %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
[% IF subscription %]
<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>
);
}
-my $libraries = Koha::Libraries->search( {}, { order_by => ['branchcode'] }, );
-
$template->param(
op => $op,
- libraries => $libraries,
);
output_html_with_http_headers $query, $cookie, $template->output;