View | Details | Raw Unified | Return to bug 14313
Collapse All | Expand All

(-)a/C4/Auth.pm (-3 / +5 lines)
Lines 433-444 sub get_template_and_user { Link Here
433
        $LibraryNameTitle =~ s/<(?:\/?)(?:br|p)\s*(?:\/?)>/ /sgi;
433
        $LibraryNameTitle =~ s/<(?:\/?)(?:br|p)\s*(?:\/?)>/ /sgi;
434
        $LibraryNameTitle =~ s/<(?:[^<>'"]|'(?:[^']*)'|"(?:[^"]*)")*>//sg;
434
        $LibraryNameTitle =~ s/<(?:[^<>'"]|'(?:[^']*)'|"(?:[^"]*)")*>//sg;
435
435
436
        # clean up the busc param in the session if the page is not opac-detail and not the "add to list" page
436
        # clean up the busc param in the session
437
        # if the page is not opac-detail and not the "add to list" page
438
        # and not the "edit comments" page
437
        if ( C4::Context->preference("OpacBrowseResults")
439
        if ( C4::Context->preference("OpacBrowseResults")
438
            && $in->{'template_name'} =~ /opac-(.+)\.(?:tt|tmpl)$/ ) {
440
            && $in->{'template_name'} =~ /opac-(.+)\.(?:tt|tmpl)$/ ) {
439
            my $pagename = $1;
441
            my $pagename = $1;
440
            unless ( $pagename =~ /^(?:MARC|ISBD)?detail$/
442
            unless ( $pagename =~ /^(?:MARC|ISBD)?detail$/
441
                or $pagename =~ /^addbybiblionumber$/ ) {
443
                or $pagename =~ /^addbybiblionumber$/
444
                or $pagename =~ /^review$/ ) {
442
                my $sessionSearch = get_session( $sessionID || $in->{'query'}->cookie("CGISESSID") );
445
                my $sessionSearch = get_session( $sessionID || $in->{'query'}->cookie("CGISESSID") );
443
                $sessionSearch->clear( ["busc"] ) if ( $sessionSearch->param("busc") );
446
                $sessionSearch->clear( ["busc"] ) if ( $sessionSearch->param("busc") );
444
            }
447
            }
445
- 

Return to bug 14313