https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37675

--- Comment #32 from David Cook <[email protected]> ---
Technically, I think there's still some more work to do here.

The main thing I'm thinking is that we add a "data-subfield" attribute to the
inputs in the template, we can have the Javascript look up the fields it needs,
and then calculate the next key instead of generating a random number.
(Alternatively, we could do a class like tag700a or something but a data
attribute might look nicer.)

An alternative to that would be to have a variable for tracking the unique
random numbers generated by the Javascript (variable scope is a bit of a
problem in koha-tmpl/intranet-tmpl/prog/js/cataloging.js for that... we'd need
to use something like window.Koha.marc_basic_editor_unique_subfield_keys or
something), and we could make sure that the lowest number is a very high number
which is unlikely to clash with the server-side generated numbers. But this
would still have some risks.

Anyway... I've spent way more time on this than I should've, so I'm going to go
have my late lunch and work on other things...

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to