diff --git a/catalogue/MARCdetail.pl b/catalogue/MARCdetail.pl index 7a5d951dfe..aa8ca809bd 100755 --- a/catalogue/MARCdetail.pl +++ b/catalogue/MARCdetail.pl @@ -69,8 +69,7 @@ my $query = new CGI; my $dbh = C4::Context->dbh; my $biblionumber = $query->param('biblionumber'); $biblionumber = HTML::Entities::encode($biblionumber); -my $frameworkcode = $query->param('frameworkcode'); -$frameworkcode = GetFrameworkCode( $biblionumber ) unless ($frameworkcode); +my $frameworkcode = $query->param('frameworkcode') // GetFrameworkCode( $biblionumber ); my $popup = $query->param('popup') ; # if set to 1, then don't insert links, it's just to show the biblio diff --git a/catalogue/labeledMARCdetail.pl b/catalogue/labeledMARCdetail.pl index d84c75f251..8826b58a9b 100755 --- a/catalogue/labeledMARCdetail.pl +++ b/catalogue/labeledMARCdetail.pl @@ -38,8 +38,7 @@ my $query = new CGI; my $dbh = C4::Context->dbh; my $biblionumber = $query->param('biblionumber'); $biblionumber = HTML::Entities::encode($biblionumber); -my $frameworkcode = $query->param('frameworkcode'); -$frameworkcode = GetFrameworkCode( $biblionumber ) unless ($frameworkcode); +my $frameworkcode = $query->param('frameworkcode') // GetFrameworkCode( $biblionumber ); my $popup = $query->param('popup') ; # if set to 1, then don't insert links, it's just to show the biblio