diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt index e9bcf3f8cb..3b322f0340 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt @@ -33,7 +33,7 @@ if(Check()){ $("#f").submit(); } - }); + }); $("#z3950submit").click(function(){ var strQuery = GetZ3950Terms(); var index = "&index=[% index | html %]"; @@ -44,467 +44,469 @@ }); }); -/** - * check if z3950 mandatories are set or not - */ -function GetZ3950Terms(){ - var strQuery="&authtypecode="+document.forms['f'].authtypecode.value; - var mandatories = new Array(); - var mandatories_label = new Array(); - [% FOREACH BIG_LOO IN BIG_LOOP %][% FOREACH innerloo IN BIG_LOO.innerloop %][% FOREACH subfield_loo IN innerloo.subfield_loop %][% IF ( subfield_loo.z3950_mandatory ) %]mandatories.push("[% subfield_loo.id | html %]"); - mandatories_label.push("[% subfield_loo.z3950_mandatory | html %]");[% END %][% END %][% END %][% END %] + /** + * check if z3950 mandatories are set or not + */ + function GetZ3950Terms(){ + var strQuery="&authtypecode="+document.forms['f'].authtypecode.value; + var mandatories = new Array(); + var mandatories_label = new Array(); + [% FOREACH BIG_LOO IN BIG_LOOP %][% FOREACH innerloo IN BIG_LOO.innerloop %][% FOREACH subfield_loo IN innerloo.subfield_loop %][% IF ( subfield_loo.z3950_mandatory ) %]mandatories.push("[% subfield_loo.id | html %]"); + mandatories_label.push("[% subfield_loo.z3950_mandatory | html %]");[% END %][% END %][% END %][% END %] - for(var i=0,len=mandatories.length; i= 10){ + elem = document.getElementById(divid); + eleminputs = elem.getElementsByTagName('input'); + + for(var j=0,len2=eleminputs.length; j= 10){ - elem = document.getElementById(divid); - eleminputs = elem.getElementsByTagName('input'); - - for(var j=0,len2=eleminputs.length; j [% Asset.css("css/addbiblio.css") | $raw %] -
-
Loading, please wait...
-
+
+
Loading, please wait...
+
-[% INCLUDE 'header.inc' %] + [% INCLUDE 'header.inc' %] - + +
+
+
+ + [% IF ( authid ) %] +

Modify authority #[% authid | html %] [% authtypetext | html %]

+ [% ELSE %] +

Adding authority [% authtypetext | html %]

+ [% END %] + + [% IF ( duplicateauthid ) %] +
+

Duplicate record suspected

+

Is this a duplicate of [% duplicateauthvalue | html %] ?

+ + + + + +
+ +
+
+ [% END %] + +
+ + + + + + + + +
+ +
+ [% IF ( authid ) %] + Replace record via Z39.50/SRU search + [% ELSE %] + Z39.50/SRU search + [% END %] +
+
+ [% IF ( authid ) %] + Cancel + [% ELSE %] + Cancel + [% END %] +
+
+ +
+ + + [% FOREACH BIG_LOO IN BIG_LOOP %] +
+ + [% previous = "" %] + [% FOREACH innerloo IN BIG_LOO.innerloop %] + [% IF ( innerloo.tag ) %] + [% IF innerloo.tag != previous %] + [% IF previous != "" %] + + [% END %] + [% previous = innerloo.tag %] + [% IF ( innerloo.repeatable ) %] +
    + [% ELSE %] +
      + [% END %] + [% END %] + + [% IF ( innerloo.repeatable ) %] +
    • + [% ELSE %] +
    • + [% END %] + +
      + [% UNLESS hide_marc %] + [% IF advancedMARCEditor %] + [% innerloo.tag | html %] + [% ELSE %] + [% innerloo.tag | html %] + [% END %] + [% IF ( innerloo.fixedfield ) %] + + + [% ELSE %] + + + [% END %] - + [% ELSE %] + [% IF ( innerloo.fixedfield ) %] + + + [% ELSE %] + + + [% END %] + [% END %] + + [% UNLESS advancedMARCEditor %] + [% innerloo.tag_lib | html %] + [% END %] + + [% IF ( innerloo.repeatable ) %] + + Repeat this Tag + + [% END %] + + Delete this Tag + + +
      + +
        + [% FOREACH subfield_loo IN innerloo.subfield_loop %] + +
      • + + [% UNLESS hide_marc %] +
        + +
        + [% ELSE %] + + [% END %] + + [% UNLESS advancedMARCEditor %] + [% IF ( subfield_loo.mandatory ) %] +
        + [% ELSE %] +
        + [% END %] + [% IF ( subfield_loo.fixedfield ) %] +
        + [% END %] + + [% SET mv = subfield_loo.marc_value %] +
        + [% IF ( mv.type == 'select' ) %] + [% IF mv.category AND CAN_user_parameters_manage_auth_values %] + + [% END %] + [% FOREACH aval IN mv.values %] + [% IF aval == mv.default %] + + [% ELSE %] + + [% END %] + [% END %] + + [% ELSIF ( mv.type == 'text1' ) %] + + [% ELSIF ( mv.type == 'text2' ) %] + + [% ELSIF ( mv.type == 'text' ) %] + + [% ELSIF ( mv.type == 'textarea' ) %] + + [% ELSIF ( mv.type == 'hidden' ) %] + + [% ELSIF ( mv.type == 'hidden_simple' ) %] + + [% END %] +
        + + [% IF ( subfield_loo.mandatory ) %] +
        + Required +
        + [% END %] + +
        + [% IF ( mv.type == 'text1' ) %] + Tag editor + [% ELSIF ( mv.type == 'text2' ) %] + [% IF mv.noclick %] + ... + [% ELSE %] + ... + [% END %] + [% mv.javascript | $raw %] + [% END %] + [% IF ( subfield_loo.repeatable ) %] + + Clone + + + Delete + + [% END %] +
        +
      • + + [% END %] +
      +
    • + [% END %] + [% END %] +
    +
+ [% END %] +
+ +
+ [% FOREACH hidden_loo IN hidden_loop %] + + + + + + [% END %] +
+ [% IF ( oldauthnumtagfield ) %] + + + + + + + + + + [% END %] + +
+ + [% INCLUDE 'modals/cataloguing_create_av.inc' %] + +
-
- - -[% FOREACH BIG_LOO IN BIG_LOOP %] -
- - [% previous = "" %] - [% FOREACH innerloo IN BIG_LOO.innerloop %] - [% IF ( innerloo.tag ) %] - [% IF innerloo.tag != previous %] - [% IF previous != "" %] - - [% END %] - [% previous = innerloo.tag %] - [% IF ( innerloo.repeatable ) %] -
    - [% ELSE %] -
      - [% END %] - [% END %] - [% IF ( innerloo.repeatable ) %] -
    • - [% ELSE %] -
    • - [% END %] -
      - [% UNLESS hide_marc %] - [% IF advancedMARCEditor %] - [% innerloo.tag | html %] - [% ELSE %] - [% innerloo.tag | html %] - [% END %] - [% IF ( innerloo.fixedfield ) %] - - - [% ELSE %] - - - [% END %] - - [% ELSE %] - [% IF ( innerloo.fixedfield ) %] - - - [% ELSE %] - - - [% END %] - [% END %] - - [% UNLESS advancedMARCEditor %] - [% innerloo.tag_lib | html %] - [% END %] - - [% IF ( innerloo.repeatable ) %] - - Repeat this Tag - - [% END %] - - Delete this Tag - - - -
      - -
        - [% FOREACH subfield_loo IN innerloo.subfield_loop %] - -
      • - - [% UNLESS hide_marc %] -
        - -
        - [% ELSE %] - - [% END %] - - [% UNLESS advancedMARCEditor %] - [% IF ( subfield_loo.mandatory ) %] -
        - [% ELSE %] -
        - [% END %] - [% IF ( subfield_loo.fixedfield ) %] -
        - [% END %] - - [% SET mv = subfield_loo.marc_value %] -
        - [% IF ( mv.type == 'select' ) %] - [% IF mv.category AND CAN_user_parameters_manage_auth_values %] - - [% END %] - - [% FOREACH aval IN mv.values %] - [% IF aval == mv.default %] - - [% ELSE %] - - [% END %] - [% END %] - - [% ELSIF ( mv.type == 'text1' ) %] - - [% ELSIF ( mv.type == 'text2' ) %] - - [% ELSIF ( mv.type == 'text' ) %] - - [% ELSIF ( mv.type == 'textarea' ) %] - - [% ELSIF ( mv.type == 'hidden' ) %] - - [% ELSIF ( mv.type == 'hidden_simple' ) %] - - [% END %] -
        - [% IF ( subfield_loo.mandatory ) %] -
        - Required -
        - [% END %] -
        - [% IF ( mv.type == 'text1' ) %] - Tag editor - [% ELSIF ( mv.type == 'text2' ) %] - [% IF mv.noclick %] - ... - [% ELSE %] - ... - [% END %] - [% mv.javascript | $raw %] - [% END %] - [% IF ( subfield_loo.repeatable ) %] - - Clone - - - Delete - - [% END %] -
        -
      • - - [% END %] -
      -
    • - [% END %] - [% END %] -
    -
- [% END %] -
- -
-[% FOREACH hidden_loo IN hidden_loop %] - - - - - -[% END %] -
-[% IF ( oldauthnumtagfield ) %] - - - - - - - - - -[% END %] - - - -[% INCLUDE 'modals/cataloguing_create_av.inc' %] - - - - - [% INCLUDE 'intranet-bottom.inc' %]