fixing some bugs in subscription add.
[koha.git] / serials / reorder_members.pl
1 #!/usr/bin/perl
2
3 # Routing.pl script used to create a routing list for a serial subscription
4 # In this instance it is in fact a setting up of a list of reserves for the item
5 # where the hierarchical order can be changed on the fly and a routing list can be
6 # printed out
7 use strict;
8 use CGI;
9 use C4::Koha;
10 use C4::Auth;
11 use C4::Date;
12 use C4::Output;
13 use C4::Acquisition;
14 use C4::Interface::CGI::Output;
15 use C4::Context;
16 use HTML::Template;
17 use C4::Search;
18 use C4::Serials;
19 use Data::Dumper;
20
21 my $query = new CGI;
22 my $subscriptionid = $query->param('subscriptionid');
23 my $routingid = $query->param('routingid');
24 my $rank = $query->param('rank');
25
26 reorder_members($subscriptionid,$routingid,$rank);
27
28 print $query->redirect("/cgi-bin/koha/serials/routing.pl?subscriptionid=$subscriptionid");
29