Bugzilla – Attachment 144976 Details for
Bug 32523
Shortcuts / Links to missing fields in MARC-Editor don't work as expected
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32523: Links to missing fields in MARC-editor error
Bug32523-Links-to-missing-fields-in-MARC-editor-er.patch (text/plain), 2.00 KB, created by
Jan Kissig
on 2023-01-04 09:50:18 UTC
(
hide
)
Description:
Bug 32523: Links to missing fields in MARC-editor error
Filename:
MIME Type:
Creator:
Jan Kissig
Created:
2023-01-04 09:50:18 UTC
Size:
2.00 KB
patch
obsolete
>From 272ae22712adcfe77c866b4dd5e9623699b43cdb Mon Sep 17 00:00:00 2001 >From: Jan Kissig <jkissig@th-wildau.de> >Date: Wed, 4 Jan 2023 10:26:20 +0100 >Subject: [PATCH] =?UTF-8?q?Bug=C2=A032523:=20Links=20to=20missing=20fields?= > =?UTF-8?q?=20in=20MARC-editor=20error?= >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >This bug appears after switching to the new staff interface design (from 22.05 to 22.11). >When adding/editing a biblio in staff interface leaving out mandatory fields and click on save, you get an error dialog with shortcuts/links to these missing fields. Clicking on these links should change section tabs and focus the field. >This patch fixes that error. > >Test plan: >1) in staff interface go to /cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode= >2) click Save >3) Error dialog appears, informing about missing input in mandatory fields. >4) Click on tab 0 (section 0) to make sure only marc 0XX fields are visible. >5) In the error dialog click on a "Go to field" which points f.e. to section 9 >6) The selected / active tab will switch to section 9 and will not focus on the selected field >7) apply patch >8) repeat step 1) to 6) >--- > .../intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >index 5d664a3a99..9042ce2fb6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >@@ -177,7 +177,7 @@ > e.preventDefault(); > var tab = $(this).data("tab"); > var field = $(this).data("field"); >- var tablink = $("a[data-tabid='" + tab + "']" ); >+ var tablink = $("a[data-tabid='" + tab + "']" ).get(0).hash;; > selectTab( tablink ); > window.scrollTo( 0, getScrollto( field, "toolbar" ) ); > }); >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32523
:
144829
|
144976
|
145002
|
145012
|
145013
|
145039
|
146151