don't escape '-' in regexp.
[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::Auth;
10 use C4::Context;
11 use C4::Output;
12 use C4::Koha;
13 use C4::Date;
14 use C4::Acquisition;
15 use C4::Serials;
16
17 my $query = new CGI;
18 my $subscriptionid = $query->param('subscriptionid');
19 my $routingid = $query->param('routingid');
20 my $rank = $query->param('rank');
21
22 reorder_members($subscriptionid,$routingid,$rank);
23
24 print $query->redirect("/cgi-bin/koha/serials/routing.pl?subscriptionid=$subscriptionid");
25