diff --git a/C4/Serials.pm b/C4/Serials.pm
index 6d188e7685..7e17a048d7 100644
--- a/C4/Serials.pm
+++ b/C4/Serials.pm
@@ -682,6 +682,10 @@ sub SearchSubscriptions {
push @where_strs, "biblioitems.ean LIKE ?";
push @where_args, "%$args->{ean}%";
}
+ if ( $args->{callnumber} ) {
+ push @where_strs, "subscription.callnumber LIKE ?";
+ push @where_args, "%$args->{callnumber}%";
+ }
if( $args->{publisher} ){
push @where_strs, "biblioitems.publishercode LIKE ?";
push @where_args, "%$args->{publisher}%";
@@ -694,6 +698,14 @@ sub SearchSubscriptions {
push @where_strs, "subscription.branchcode = ?";
push @where_args, "$args->{branch}";
}
+ if ( $args->{location} ) {
+ push @where_strs, "subscription.location = ?";
+ push @where_args, "$args->{location}";
+ }
+ if ( $args->{expiration_date} ) {
+ push @where_strs, "subscription.enddate <= ?";
+ push @where_args, "$args->{expiration_date}";
+ }
if( defined $args->{closed} ){
push @where_strs, "subscription.closed = ?";
push @where_args, "$args->{closed}";
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt
index a5f9795839..c6cb4d4dcc 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt
@@ -1,9 +1,11 @@
[% USE Branches %]
[% INCLUDE 'doc-head-open.inc' %]
[% USE KohaDates %]
+[% USE KohaAuthorisedValues %]
Koha › Serials [% biblionumber %]
[% INCLUDE 'doc-head-close.inc' %]
+[% INCLUDE 'calendar.inc' %]
[% INCLUDE 'datatables-strings.inc' %]
@@ -72,6 +74,10 @@
[% END %]
+
+
+
+
@@ -93,6 +99,25 @@
[% END %]
+ [% IF locations %]
+
+
+
+
+ [% END %]
+
+
+
+