Lines 7-12
Link Here
|
7 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
7 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
8 |
<script> |
8 |
<script> |
9 |
var CAN_user_parameters_manage_auth_values = "[% CAN_user_parameters_manage_auth_values | html %]"; |
9 |
var CAN_user_parameters_manage_auth_values = "[% CAN_user_parameters_manage_auth_values | html %]"; |
|
|
10 |
var select2Width = "100%"; |
10 |
</script> |
11 |
</script> |
11 |
[% INCLUDE 'select2.inc' %] |
12 |
[% INCLUDE 'select2.inc' %] |
12 |
[% Asset.js("js/cataloging.js") | $raw %] |
13 |
[% Asset.js("js/cataloging.js") | $raw %] |
Lines 484-490
Link Here
|
484 |
|
485 |
|
485 |
</script> |
486 |
</script> |
486 |
[% Asset.css("css/addbiblio.css") | $raw %] |
487 |
[% Asset.css("css/addbiblio.css") | $raw %] |
487 |
|
|
|
488 |
</head> |
488 |
</head> |
489 |
<body id="cat_addbiblio" class="cat"> |
489 |
<body id="cat_addbiblio" class="cat"> |
490 |
|
490 |
|
Lines 789-877
Link Here
|
789 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
789 |
[% FOREACH subfield_loo IN innerloo.subfield_loop %] |
790 |
<!-- One line on the marc editor --> |
790 |
<!-- One line on the marc editor --> |
791 |
<li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]"> |
791 |
<li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]"> |
|
|
792 |
<div class="subfieldcode"> |
793 |
<input type="text" |
794 |
title="[% subfield_loo.marc_lib | $raw %]" |
795 |
style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;" |
796 |
name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" |
797 |
value="[% subfield_loo.subfield | html %]" |
798 |
size="1" |
799 |
maxlength="1" |
800 |
class="flat" |
801 |
tabindex="0" /> |
802 |
</div> |
792 |
[% UNLESS advancedMARCEditor %] |
803 |
[% UNLESS advancedMARCEditor %] |
793 |
[% IF ( subfield_loo.fixedfield ) %] |
804 |
[% IF ( subfield_loo.mandatory ) %] |
794 |
<label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" style="display:none;" class="labelsubfield"> |
805 |
<div class="subfield subfield_mandatory"> |
|
|
806 |
[% ELSIF ( subfield_loo.important ) %] |
807 |
<div class="subfield subfield_important"> |
795 |
[% ELSE %] |
808 |
[% ELSE %] |
796 |
<label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" class="labelsubfield"> |
809 |
<div class="subfield"> |
797 |
[% END %] |
810 |
[% END %] |
798 |
[% END %] |
811 |
[% IF ( subfield_loo.fixedfield ) %] |
799 |
|
812 |
<label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" style="display:none;" class="labelsubfield"> |
800 |
<span class="subfieldcode"> |
|
|
801 |
<input type="text" |
802 |
title="[% subfield_loo.marc_lib | $raw %]" |
803 |
style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;" |
804 |
name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" |
805 |
value="[% subfield_loo.subfield | html %]" |
806 |
size="1" |
807 |
maxlength="1" |
808 |
class="flat" |
809 |
tabindex="0" /> |
810 |
</span> |
811 |
|
812 |
[% UNLESS advancedMARCEditor %] |
813 |
[% IF ( subfield_loo.mandatory ) %] |
814 |
<span class="subfield subfield_mandatory"> |
815 |
[% ELSIF ( subfield_loo.important ) %] |
816 |
<span class="subfield subfield_important"> |
817 |
[% ELSE %] |
813 |
[% ELSE %] |
818 |
<span class="subfield"> |
814 |
<label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" class="labelsubfield"> |
819 |
[% END %] |
815 |
[% END %] |
820 |
[% subfield_loo.marc_lib | $raw %] |
816 |
[% subfield_loo.marc_lib | $raw %] |
821 |
</span> |
817 |
</label> |
822 |
</label> |
818 |
</div> |
823 |
[% END %] |
819 |
[% END %] |
824 |
|
820 |
|
825 |
[% SET mv = subfield_loo.marc_value %] |
821 |
[% SET mv = subfield_loo.marc_value %] |
826 |
[% IF ( mv.type == 'text' ) %] |
822 |
<div id="field_marceditor[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]" class="field_marceditor"> |
827 |
[% IF ( mv.readonly == 1 ) %] |
823 |
[% IF ( mv.type == 'text' ) %] |
828 |
<input type="text" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor readonly" tabindex="1" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" readonly="readonly" /> |
824 |
[% IF ( mv.readonly == 1 ) %] |
829 |
[% ELSE %] |
825 |
<input type="text" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor readonly" tabindex="1" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" readonly="readonly" /> |
830 |
<input type="text" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" /> |
|
|
831 |
[% END %] |
832 |
|
833 |
[% IF ( mv.authtype ) %] |
834 |
<span class="subfield_controls"><a href="#" class="buttonDot tag_editor" onclick="openAuth(this.parentNode.parentNode.getElementsByTagName('input')[1].id,'[%- mv.authtype | html -%]','biblio'); return false;" tabindex="1" title="Tag editor">Tag editor</a></span> |
835 |
[% END %] |
836 |
[% ELSIF ( mv.type == 'text_complex' ) %] |
837 |
<input type="text" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor framework_plugin" tabindex="1" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" /> |
838 |
<span class="subfield_controls"> |
839 |
[% IF mv.noclick %] |
840 |
<span class="buttonDot tag_editor disabled" tabindex="-1" title="Field autofilled by plugin"></span> |
841 |
[% ELSE %] |
826 |
[% ELSE %] |
842 |
[% IF mv.plugin == "upload.pl" %] |
827 |
<input type="text" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" /> |
843 |
<a href="#" id="buttonDot_[% mv.id | html %]" class="tag_editor upload framework_plugin" tabindex="1"><i class="fa fa-upload" aria-hidden="true"></i> Upload</a> |
|
|
844 |
[% ELSE %] |
845 |
<a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor framework_plugin" tabindex="1" title="Tag editor">Tag editor</a> |
846 |
[% END %] |
847 |
[% END %] |
828 |
[% END %] |
848 |
</span> |
829 |
|
849 |
[% mv.javascript | $raw %] |
830 |
[% ELSIF ( mv.type == 'text_complex' ) %] |
850 |
[% ELSIF ( mv.type == 'hidden' ) %] |
831 |
<input type="text" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor framework_plugin" tabindex="1" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" /> |
851 |
<input tabindex="1" type="hidden" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
832 |
[% mv.javascript | $raw %] |
852 |
[% ELSIF ( mv.type == 'textarea' ) %] |
833 |
[% ELSIF ( mv.type == 'hidden' ) %] |
853 |
<textarea cols="70" rows="4" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" class="input_marceditor" tabindex="1">[%- mv.value | html -%]</textarea> |
834 |
<input tabindex="1" type="hidden" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" /> |
854 |
[% ELSIF ( mv.type == 'select' ) %] |
835 |
[% ELSIF ( mv.type == 'textarea' ) %] |
|
|
836 |
<textarea cols="70" rows="4" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" class="input_marceditor" tabindex="1">[%- mv.value | html -%]</textarea> |
837 |
[% ELSIF ( mv.type == 'select' ) %] |
855 |
[% IF mv.category AND CAN_user_parameters_manage_auth_values %] |
838 |
[% IF mv.category AND CAN_user_parameters_manage_auth_values %] |
856 |
<select name="[%- mv.name | html -%]" tabindex="1" size="1" class="input_marceditor" id="[%- mv.id | html -%]" data-category="[% mv.category | html %]"> |
839 |
<select name="[%- mv.name | html -%]" tabindex="1" size="1" class="input_marceditor" id="[%- mv.id | html -%]" data-category="[% mv.category | html %]"> |
857 |
[% ELSE %] |
840 |
[% ELSE %] |
858 |
<select name="[%- mv.name | html -%]" tabindex="1" size="1" class="input_marceditor select2" id="[%- mv.id | html -%]"> |
841 |
<select name="[%- mv.name | html -%]" tabindex="1" size="1" class="input_marceditor select2" id="[%- mv.id | html -%]"> |
859 |
[% END %] |
842 |
[% END %] |
860 |
[% FOREACH aval IN mv.values %] |
843 |
[% FOREACH aval IN mv.values %] |
861 |
[% IF aval == mv.default %] |
844 |
[% IF aval == mv.default %] |
862 |
<option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option> |
845 |
<option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option> |
863 |
[% ELSE %] |
846 |
[% ELSE %] |
864 |
<option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option> |
847 |
<option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option> |
|
|
848 |
[% END %] |
865 |
[% END %] |
849 |
[% END %] |
866 |
[% END %] |
850 |
</select> |
867 |
</select> |
851 |
[% END # /IF (mv.type...) %] |
868 |
[% END # /IF (mv.type...) %] |
852 |
</div> |
869 |
[% IF ( subfield_loo.mandatory ) %] |
853 |
[% IF ( subfield_loo.mandatory ) %] |
870 |
<span class="required">Required</span> |
854 |
<div class="subfield_loop_mandatory"> |
|
|
855 |
<span class="required">Required</span> |
856 |
</div> |
871 |
[% ELSIF ( subfield_loo.important ) %] |
857 |
[% ELSIF ( subfield_loo.important ) %] |
872 |
<span class="important">Important</span> |
858 |
<div class="subfield_loop_mandatory"> |
|
|
859 |
<span class="important">Important</span> |
860 |
</div> |
873 |
[% END %] |
861 |
[% END %] |
874 |
<span class="subfield_controls"> |
862 |
<div class="subfield_controls"> |
|
|
863 |
[% IF ( mv.type == 'text' ) %] |
864 |
[% IF ( mv.authtype ) %] |
865 |
<a href="#" class="buttonDot tag_editor" onclick="openAuth(this.parentNode.parentNode.getElementsByTagName('input')[1].id,'[%- mv.authtype | html -%]','biblio'); return false;" tabindex="1" title="Tag editor">Tag editor</a> |
866 |
[% END %] |
867 |
[% ELSIF ( mv.type == 'text_complex' ) %] |
868 |
[% IF mv.noclick %] |
869 |
<span class="buttonDot tag_editor disabled" tabindex="-1" title="Field autofilled by plugin"></span> |
870 |
[% ELSE %] |
871 |
[% IF mv.plugin == "upload.pl" %] |
872 |
<a href="#" id="buttonDot_[% mv.id | html %]" class="tag_editor upload framework_plugin" tabindex="1"><i class="fa fa-upload" aria-hidden="true"></i> Upload</a> |
873 |
[% ELSE %] |
874 |
<a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor framework_plugin" tabindex="1" title="Tag editor">Tag editor</a> |
875 |
[% END %] |
876 |
[% END %] |
877 |
</span> |
878 |
[% END %] |
875 |
[% IF ( subfield_loo.repeatable ) %] |
879 |
[% IF ( subfield_loo.repeatable ) %] |
876 |
<a href="#" class="buttonPlus" tabindex="1" onclick="CloneSubfield('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]','[% advancedMARCEditor | html %]'); return false;"> |
880 |
<a href="#" class="buttonPlus" tabindex="1" onclick="CloneSubfield('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]','[% advancedMARCEditor | html %]'); return false;"> |
877 |
<img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" /> |
881 |
<img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" /> |
Lines 880-886
Link Here
|
880 |
<img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" /> |
884 |
<img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" /> |
881 |
</a> |
885 |
</a> |
882 |
[% END %] |
886 |
[% END %] |
883 |
</span> |
887 |
</div> |
884 |
</li> <!-- /.subfield_line --> |
888 |
</li> <!-- /.subfield_line --> |
885 |
<!-- End of the line --> |
889 |
<!-- End of the line --> |
886 |
[% END # /FOREACH subfield_loop %] |
890 |
[% END # /FOREACH subfield_loop %] |