@@ -, +, @@ --- opac/opac-ISBDdetail.pl | 4 ++-- opac/opac-MARCdetail.pl | 4 ++-- opac/opac-detail.pl | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) --- a/opac/opac-ISBDdetail.pl +++ a/opac/opac-ISBDdetail.pl @@ -65,6 +65,7 @@ use Koha::ItemTypes; use Koha::Patrons; use Koha::RecordProcessor; use Koha::Biblios; +use Koha::Util::MARC; my $query = CGI->new(); my $biblionumber = $query->param('biblionumber'); @@ -201,8 +202,7 @@ my $issn = $marcissns->[0] || ''; if (my $search_for_title = C4::Context->preference('OPACSearchForTitleIn')){ $dat->{title} =~ s/\/+$//; # remove trailing slash $dat->{title} =~ s/\s+$//; # remove trailing space - my $oclc_no = $record->subfield('035','a') // q{}; - $oclc_no =~ s/\([^)]*\)//; + my $oclc_no = Koha::Util::MARC::oclc_number( $record ); $search_for_title = parametrized_url( $search_for_title, { --- a/opac/opac-MARCdetail.pl +++ a/opac/opac-MARCdetail.pl @@ -70,6 +70,7 @@ use Koha::ItemTypes; use Koha::Patrons; use Koha::RecordProcessor; use Koha::DateUtils qw( output_pref ); +use Koha::Util::MARC; my $query = CGI->new(); @@ -352,8 +353,7 @@ my $issn = $marcissns->[0] || ''; if (my $search_for_title = C4::Context->preference('OPACSearchForTitleIn')){ $dat->{title} =~ s/\/+$//; # remove trailing slash $dat->{title} =~ s/\s+$//; # remove trailing space - my $oclc_no = $record->subfield('035','a') // q{}; - $oclc_no =~ s/\([^)]*\)//; + my $oclc_no = Koha::Util::MARC::oclc_number( $record ); $search_for_title = parametrized_url( $search_for_title, { --- a/opac/opac-detail.pl +++ a/opac/opac-detail.pl @@ -85,6 +85,7 @@ use Koha::Recalls; use Koha::Reviews; use Koha::SearchEngine::Search; use Koha::SearchEngine::QueryBuilder; +use Koha::Util::MARC; my $query = CGI->new(); @@ -1175,8 +1176,7 @@ my $issn = $marcissns->[0] || ''; if (my $search_for_title = C4::Context->preference('OPACSearchForTitleIn')){ $dat->{title} =~ s/\/+$//; # remove trailing slash $dat->{title} =~ s/\s+$//; # remove trailing space - my $oclc_no = $record->subfield('035','a') // q{}; - $oclc_no =~ s/\([^)]*\)//; + my $oclc_no = Koha::Util::MARC::oclc_number( $record ); $search_for_title = parametrized_url( $search_for_title, { --