+proc display-grs-raw {w r i} {
+ foreach e $r {
+ for {set j 0} {$j < $i} {incr j} {
+ insertWithTags $w " " {}
+ }
+ insertWithTags $w "([lindex $e 0],[lindex $e 2])" marc-tag
+ if {[lindex $e 3] == "string"} {
+ insertWithTags $w [lindex $e 4] {}
+ insertWithTags $w "\n" {}
+ } elseif {[lindex $e 3] == "subtree"} {
+ insertWithTags $w "\n" {}
+ display-grs-raw $w [lindex $e 4] [expr $i+1]
+ } else {
+ insertWithTags $w [lindex $e 4] {}
+ insertWithTags $w "\n" {}
+ }
+ }
+}
+
+# Procedure display-raw {sno no w flag}
+# sno result set number (integer)
+# no record position (integer)
+# w text widget in which the record should be displayed.
+# hflag header flag. If true a header showing the record position
+# should be displayed.
+# This procedure attempts to display records in a raw format.