From d46788c1b4db35598d58b260e02ff6bac2a272a5 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 9 Mar 2009 08:38:06 -0500 Subject: [PATCH] Changes to tabindex values to improve keyboard access. Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- cataloguing/addbiblio.pl | 26 ++++--------------- .../en/modules/cataloguing/addbiblio.tmpl | 8 +++--- 2 files changed, 9 insertions(+), 25 deletions(-) diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl index a6b66768e4..89b8e0e644 100755 --- a/cataloguing/addbiblio.pl +++ b/cataloguing/addbiblio.pl @@ -373,7 +373,7 @@ sub create_input { # it's a thesaurus / authority field } elsif ( $tagslib->{$tag}->{$subfield}->{authtypecode} ) { - if (C4::Context->preference("BiblioAddsAuthorities")) { + $readonly=(C4::Context->preference("BiblioAddsAuthorities")?qq(readonly="readonly"):""); $subfield_data{marc_value} = " - {$tag}->{$subfield}->{authtypecode}."&index=$subfield_data{id}&mainmainstring=$value','$subfield_data{id}'); return false;\" title=\"Tag Editor\">... + $readonly\/>{$tag}->{$subfield}->{authtypecode}."'); return false;\" tabindex=\"1\" title=\"Tag Editor\">... "; - } else { - $subfield_data{marc_value} = - "{$tag}->{$subfield}->{authtypecode}."'); return false;\" title=\"Tag Editor\">... - "; - } - # it's a plugin field } elsif ( $tagslib->{$tag}->{$subfield}->{'value_builder'} ) { + # it's a plugin field # opening plugin. Just check wether we are on a developper computer on a production one # (the cgidir differs) @@ -429,7 +413,7 @@ sub create_input { size=\"67\" maxlength=\"$max_length\" onblur=\"Blur$function_name($index_tag); \" \/> - ... + ... $javascript"; } else { warn "Plugin Failed: $plugin"; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl index 87ebd2028e..bb2019a165 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl @@ -661,13 +661,13 @@ function unHideSubfield(index,labelindex) { // FIXME :: is it used ? - _'); return false;" title="Click to Expand this Tag"> + _'); return false;" title="Click to Expand this Tag"> - _'); return false;" title="Repeat this Tag">+ + _'); return false;" title="Repeat this Tag">+ - _'); return false;" title="Delete this Tag">− + _'); return false;" title="Delete this Tag">− @@ -686,7 +686,7 @@ function unHideSubfield(index,labelindex) { // FIXME :: is it used ? /../img/up.png" onclick="upSubfield('subfield')" alt="Move Up" title="Move Up" /> - display:none; border:0;" type="text" name="tag__code___" value="" size="1" maxlength="1" class="flat" tabindex="0" /> + display:none; border:0;" type="text" tabindex="0" name="tag__code___" value="" size="1" maxlength="1" class="flat" tabindex="0" /> " /> -- 2.39.5