[Koha-bugs] [Bug 24084] New: PlainMARC view broken on OPAC if other $.ajax calls produce errors

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 21 19:17:35 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24084

            Bug ID: 24084
           Summary: PlainMARC view broken on OPAC if other $.ajax calls
                    produce errors
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: lucas at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

There is a problem with the how the #plainmarc div is loaded on
opac-MARCdetail.pl. If there is an unrelated AJAX error you will always see the
"Sorry, plain view is temporarily unavailable".

To Test:

1. Make a unrelated AJAX request that would produce an error. I added this to
the OPACUSERJS: 

$(document).ready(function () {
  $.ajax({url: "thisURLwontWork.html", success: function(result){
    console.log('Just Making an error')
  }});
});

2. Go to opac-MARCdetail.pl and notice plainmarc will not load and you will see
the "Sorry, plain view is temporarily unavailable" message.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list