View | Details | Raw Unified | Return to bug 10010
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css (-1 / +4 lines)
Lines 2397-2403 div.authorizedheading { Link Here
2397
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
2397
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
2398
2398
2399
/* jQuery UI Accordion */
2399
/* jQuery UI Accordion */
2400
.ui-accordion-header { font-weight: bold; font-size : 110%; }
2400
.ui-accordion-header,
2401
.ui-widget-content .ui-accordion-header {
2402
    font-weight: bold; font-size : 110%;
2403
}
2401
2404
2402
video {
2405
video {
2403
    width: 480px;
2406
    width: 480px;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt (-41 / +25 lines)
Lines 4-35 Link Here
4
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
5
<script type="text/javascript">
5
<script type="text/javascript">
6
//<![CDATA[
6
//<![CDATA[
7
7
    $(document).ready(function() {
8
$(document).ready(function() {
8
        $( ".constraints" ).accordion();
9
    $('#subfieldtabs').tabs();
9
        $('#subfieldtabs').tabs();
10
        $("a.displaymore").click(function(){
11
        var link = $(this);
12
        var constraints = $("#"+$(this).attr("href").replace("#",""));
13
        constraints.toggle();
14
            if($(constraints).is(':visible')){
15
                link.html(_("Hide constraints"));
16
            } else {
17
                link.html(_("Display more constraints"));
18
            }
19
    });
10
    });
20
});
21
22
/*function displayMoreConstraint(numlayer){
23
    var thisdiv = document.getElementById(numlayer);
24
    if(thisdiv.getAttribute("class") == "content_hidden"){
25
        thisdiv.removeAttribute('class');
26
        thisdiv.setAttribute("class","content_visible");
27
    } else {
28
        thisdiv.removeAttribute('class');
29
        thisdiv.setAttribute("class","content_hidden");
30
    }
31
}*/
32
33
//]]>
11
//]]>
34
</script>
12
</script>
35
</head>
13
</head>
Lines 71-77 $(document).ready(function() { Link Here
71
    <input type="hidden" name="op" value="add_validate" />
49
    <input type="hidden" name="op" value="add_validate" />
72
	<input type="hidden" name="tagfield" value="[% tagfield %]" />
50
	<input type="hidden" name="tagfield" value="[% tagfield %]" />
73
    <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
51
    <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
74
    <input type="submit" value="Save changes" />
75
    
52
    
76
    <div id="subfieldtabs" class="toptabs numbered">
53
    <div id="subfieldtabs" class="toptabs numbered">
77
   <ul>
54
   <ul>
Lines 87-95 $(document).ready(function() { Link Here
87
    </ul>
64
    </ul>
88
    
65
    
89
    [% FOREACH loo IN loop %] 
66
    [% FOREACH loo IN loop %] 
90
        <div id="sub[% loo.urisubfieldcode %]field">
67
        <div class="constraints" id="sub[% loo.urisubfieldcode %]field">
91
        
68
92
               <fieldset class="rows" style="float:none;"><legend>[% IF ( loo.new_subfield ) %]Add new subfield[% ELSE %]Basic constraints[% END %]</legend>
69
               <h3><a href="#basic[% loo.urisubfieldcode %]">Basic constraints</a></h3>
70
                    <div id="basic[% loo.urisubfieldcode %]">
71
                    <fieldset class="rows">
93
                	<ol>
72
                	<ol>
94
                		[% IF ( subfieldcode == 0 || subfieldcode ) %] 
73
                		[% IF ( subfieldcode == 0 || subfieldcode ) %] 
95
                		<li><span class="label">Subfield code:</span> [% loo.subfieldcode %] <input type="hidden" name="tagsubfield" value="[% loo.subfieldcode %]" /></li>
74
                		<li><span class="label">Subfield code:</span> [% loo.subfieldcode %] <input type="hidden" name="tagsubfield" value="[% loo.subfieldcode %]" /></li>
Lines 102-113 $(document).ready(function() { Link Here
102
                		<li><label for="mandatory[% loo.row %]">Mandatory: </label>[% loo.mandatory %]</li>
81
                		<li><label for="mandatory[% loo.row %]">Mandatory: </label>[% loo.mandatory %]</li>
103
                		<li><label for="tab[% loo.row %]">Managed in tab: </label>[% loo.tab %] (ignore means that the subfield does not display in the record editor)</li>
82
                		<li><label for="tab[% loo.row %]">Managed in tab: </label>[% loo.tab %] (ignore means that the subfield does not display in the record editor)</li>
104
                	</ol>
83
                	</ol>
105
            </fieldset>
84
                    </fieldset>
106
			
85
                    </div>
107
            <a class="displaymore" href="#more[% loo.urisubfieldcode %]">Display more constraints</a>
86
108
            <div id="more[% loo.urisubfieldcode %]" style="display:none; clear: both">
87
109
             <fieldset class="rows" style="float:none;">
88
            <h3><a href="#adv[% loo.urisubfieldcode %]">Advanced constraints</a></h3>
110
				<legend>Advanced constraints:</legend>
89
            <div id="adv[% loo.urisubfieldcode %]">
90
            <fieldset class="rows">
111
                <ol><li><label for="defaultvalue[% loo.row %]">Default value:</label>
91
                <ol><li><label for="defaultvalue[% loo.row %]">Default value:</label>
112
                    <input type="text" name="defaultvalue" id="defaultvalue[% loo.row %]" value="[% loo.defaultvalue %]" /></li>
92
                    <input type="text" name="defaultvalue" id="defaultvalue[% loo.row %]" value="[% loo.defaultvalue %]" /></li>
113
				<li><label for="maxlength[% loo.row %]">Max length:</label><input type="text" id="maxlength[% loo.row %]" name="maxlength" value="[% loo.maxlength %]" size="4" /> (see online help)</li>
93
				<li><label for="maxlength[% loo.row %]">Max length:</label><input type="text" id="maxlength[% loo.row %]" name="maxlength" value="[% loo.maxlength %]" size="4" /> (see online help)</li>
Lines 116-134 $(document).ready(function() { Link Here
116
                <li><label for="link[% loo.row %]">Link:</label><input type="text" id="link[% loo.row %]" name="link" value="[% loo.link %]" size="10" maxlength="80" /> (e.g., Title or Local-Number) <span class="error"><em>NOTE: If you change this value you must ask your administrator to run misc/batchRebuildBiblioTables.pl.</em></span></li>
96
                <li><label for="link[% loo.row %]">Link:</label><input type="text" id="link[% loo.row %]" name="link" value="[% loo.link %]" size="10" maxlength="80" /> (e.g., Title or Local-Number) <span class="error"><em>NOTE: If you change this value you must ask your administrator to run misc/batchRebuildBiblioTables.pl.</em></span></li>
117
                <li><label for="kohafield[% loo.row %]">Koha link:</label>[% loo.kohafield %]</li>
97
                <li><label for="kohafield[% loo.row %]">Koha link:</label>[% loo.kohafield %]</li>
118
			</ol>
98
			</ol>
119
	</fieldset>
99
            </fieldset>
120
	 <fieldset class="rows" style="float:none;">
100
            </div>
121
                <legend>Other Options: (choose one)</legend>
101
            <h3><a href="#oth[% loo.urisubfieldcode %]">Other options (choose one)</a></h3>
102
            <div id="oth[% loo.urisubfieldcode %]">
103
            <fieldset class="rows">
122
                    	<ol>
104
                    	<ol>
123
                    		<li><label for="authorised_value[% loo.row %]">Authorized value:</label>[% loo.authorised_value %]</li>
105
                    		<li><label for="authorised_value[% loo.row %]">Authorized value:</label>[% loo.authorised_value %]</li>
124
                    		<li><label for="authtypecode[% loo.row %]">Thesaurus:</label>[% loo.authtypes %]</li>
106
                    		<li><label for="authtypecode[% loo.row %]">Thesaurus:</label>[% loo.authtypes %]</li>
125
                    		<li><label for="value_builder[% loo.row %]">Plugin:</label>[% loo.value_builder %]</li>
107
                    		<li><label for="value_builder[% loo.row %]">Plugin:</label>[% loo.value_builder %]</li>
126
                    	</ol>
108
                    	</ol>
127
				</fieldset>
109
            </fieldset>
128
            </div><br class="clear" /><!-- /more  -->
110
            </div>
129
        </div><!-- /content_sub -->
111
        </div><!-- /content_sub -->
130
        [% END %]
112
        [% END %]
131
		</div><!-- /content -->
113
		</div><!-- /content -->
114
        <fieldset class="action">
115
            <input type="submit" value="Save changes" /> <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield %]&amp;frameworkcode=[% frameworkcode %]" class="cancel">Cancel</a>
116
        </fieldset>
132
    </form>
117
    </form>
133
[% END %]
118
[% END %]
134
119
135
- 

Return to bug 10010