[Koha] Internet Explorer and Admin Interface

Phill Hardstaff phillh at spc.int
Fri Aug 11 12:33:21 NZST 2006


Hi all, we hit a few snags with Firefox not displaying form fields
properly, see this post :

>On Wed, Aug 09, 2006 at 03:43:15PM +1100, Eleanor Kleiber said:
> Hello everyone,
> I am new to the list as I have inherited Koha from my predecessor, so
please bear with me.
>This will be the first of >> several posts! > 
>We are working with Koha 2.2.5.
>Our biggest problem here at the SPC is that the cursor does not show up
>on the right side of the screen.

This is on the Admin pages, default theme, English, Catalogue -
Catalogue Search - then the 4 fields under Other Options (ie Item
Barcode) on the right hand side, in Firefox click in any of them and you
will not be able to see the cursor, this won't happen if you are running
say 800x600 screen resolution and these boxes are bunched over to the
left hand side, you then have a cursor, however these work fine in
Internet Explorer, so ...

I did a little digging, and I am aware that for the admin Interface that
Mozilla is the only approved browser, why I am not sure but anyway,
that's how it is. The one big problem with IE and Koha is that is does
not work on these pages.

Catalogue - Add Biblio - Create Empty Biblio

Then anywhere where you have the three little dots that normally open a
popup (in Firefox this works) nothing happens in IE, you get a script
error saying "invalid argument". So, I am really interested in getting
Koha Admin to work with IE here so I took a look at the code. What IE is
choking on is the following.

This does not work

function Dopop(link,i) {
	defaultvalue=document.forms['f'].field_value[i].value;
	newin=window.open(link+"&result="+defaultvalue,"value
builder",'width=550,height=550,toolbar=false,scrollbars=yes');

This does work

function Dopop(link,i) {
	defaultvalue=document.forms['f'].field_value[i].value;
	
newin=window.open(link+"&result="+defaultvalue,"value_builder",'width=55
0,height=550,toolbar=false,scrollbars=yes');

When "value builder" is "value_builder" IE works fine ? I changed this
in the default template files addbiblio.tmpl line 599, additem.tmpl line
121, authorities.tmpl line 162 and things started working in Internet
Explorer, I start to get pop-ups on addbiblio etc where it calls
javascript:Dopop()

Then found I also needed to change the files under
/koha/intranet/cgi-bin/value_builder, This is for all the Clic()
functions. Take marc21_field_008.pl as an example (as this was one I had
to change)

before

function Clic$function_name(i) {
        defaultvalue=document.forms['f'].field_value[i].value;
 
newin=window.open(\"../plugin_launcher.pl?plugin_name=marc21_field_008.p
l&index=\"+i+\"&result=\"+defaultvalue,\"unimarc field
100\",'width=1000,height=600,toolbar=false,scrollbars=yes');

after

function Clic$function_name(i) {
        defaultvalue=document.forms['f'].field_value[i].value;
 
newin=window.open(\"../plugin_launcher.pl?plugin_name=marc21_field_008.p
l&index=\"+i+\"&result=\"+defaultvalue,\"unimarc_field_100\",'width=1000
,height=600,toolbar=false,scrollbars=yes');

ie if I change \"unimarc field 100\" to \"unimarc_field_100\" 

it then works fine in IE, why is this ? Is this something that can
easily be changed to accommodate IE as most everything else except this
works ? It seems most of the admin interface now works for us in IE, and
we can see the cursor that we cannot see in Firefox :)

Cheers

Phill

--

Phill Hardstaff
MCSA 2003_A+_Network+_Inet+_Server+
Senior Support Engineer
Secretariat of the Pacific Community
B.P. D5
Noumea Cedex
98848
New Caledonia


More information about the Koha mailing list