@@ -, +, @@
---
.../prog/en/includes/marc_editor.inc | 394 +++++++++++++++++
.../en/modules/authorities/authorities.tt | 291 +------------
.../prog/en/modules/cataloguing/addbiblio.tt | 398 +-----------------
3 files changed, 408 insertions(+), 675 deletions(-)
create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/marc_editor.inc
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/marc_editor.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/marc_editor.inc
@@ -0,0 +1,394 @@
+[% USE Koha %]
+
+
+
+
+
+[% FOREACH BIG_LOO IN BIG_LOOP %]
+
+
+ [% FOREACH innerloo IN BIG_LOO.innerloop %]
+ [% IF ( innerloo.tag ) %]
+
+
+
+ [% FOREACH subfield_loo IN innerloo.subfield_loop %]
+
+
+
+ [% END %]
+
+
+ [% END %]
+ [% END %]
+
+[% END %]
+
+
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt
@@ -54,89 +54,6 @@ function GetZ3950Terms(){
return strQuery;
}
-/**
- * check if mandatory subfields are written
- */
-function AreMandatoriesNotOk(){
- var mandatories = new Array();
- var mandatoriesfields = new Array();
- var tab = new Array();
- var label = new Array();
- [% FOREACH BIG_LOO IN BIG_LOOP %]
- [% FOREACH innerloo IN BIG_LOO.innerloop %]
- [% IF ( innerloo.mandatory ) %]
- mandatoriesfields.push(new Array("[% innerloo.tag | html %]","[% innerloo.index | html %][% innerloo.random | html %]","[% innerloo.index | html %]"));
- [% END %]
- [% FOREACH subfield_loo IN innerloo.subfield_loop %]
- [% IF ( subfield_loo.mandatory ) %]mandatories.push("[% subfield_loo.id | html %]");
- tab.push("[% BIG_LOO.number | html %]");
- label.push("[% subfield_loo.marc_lib | $raw |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]");
- [% END %]
- [% END %]
- [% END %]
- [% END %]
- var StrAlert = "";
- for(var i=0,len=mandatories.length; i