Next 10 Generates XML Error
Bug #1861012 reported by
Shula Link
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Evergreen 3.4.1
Chrome Version 79.0.3945.130
This is a slightly convoluted one:
When accessing a records page from an UNAPI generated link, the "Next 10" link generates raw XML with the error "This XML file does not appear to have any style information associated with it."
To recreate (simple version):
1) Go to an UNAPI generated item link (http://
2) Click "Next 10"
3) Observe the error.
To post a comment you must log in.
Bug confirmed. Something like this appears to help by ensuring that the unAPI request fully redirects to the intended record URL rather than, as appears to be the case currently, having the request be passed from the SuperCat::unapi handler to the record handler.
diff --git a/Open- ILS/src/ perlmods/ lib/OpenILS/ WWW/SuperCat. pm b/Open- ILS/src/ perlmods/ lib/OpenILS/ WWW/SuperCat. pm .739d8f98ca 100644 ILS/src/ perlmods/ lib/OpenILS/ WWW/SuperCat. pm ILS/src/ perlmods/ lib/OpenILS/ WWW/SuperCat. pm
index 2ba1f381a4.
--- a/Open-
+++ b/Open-
@@ -737,9 +737,9 @@ sub unapi {
}
if ($format eq 'opac') { ./../$locale/ skin/$skin/ xml/rresult. xml?m=$ id&l=$lib_ id&d=$lib_ depth\n\ n" >headers_ out->add( 'Location' => "$root/ ../../$ locale/ skin/$skin/ xml/rresult. xml?m=$ id&l=$lib_ id&d=$lib_ depth") record/ $id?locg= $lib_id& depth=$ lib_depth\ n\n" >headers_ out->add( 'Location' => "/eg/opac/ record/ $id?locg= $lib_id& depth=$ lib_depth" ) :WWW::SuperCat: :Feed-> exists( $base_format) && ($type ne 'acn' && $type ne 'acp' && $type ne 'auri')) {
- print "Location: $root/.
+ $apache-
if ($type eq 'metarecord');
- print "Location: /eg/opac/
+ $apache-
if ($type eq 'record');
return 302;
} elsif (OpenILS: