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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt (-38 / +40 lines)
Lines 37-81 Link Here
37
[% UNLESS ( shelfnumber ) %]
37
[% UNLESS ( shelfnumber ) %]
38
38
39
[% UNLESS ( newshelf ) %]
39
[% UNLESS ( newshelf ) %]
40
[% IF ( private_shelves.count) %]
40
     <fieldset class="rows">
41
     <fieldset class="rows">
41
    <legend>Select an existing list</legend>
42
     <legend>Select an existing list</legend>
42
    <ol>
43
     <ol>
43
        <li>
44
         <li>
44
            <label>Choose list</label>
45
             <label>Choose list</label>
45
            <select name="shelfnumber" id="shelfnumber">
46
             <select name="shelfnumber" id="shelfnumber">
46
                [% IF private_shelves.count %]
47
                 [% IF private_shelves.count %]
47
                    <optgroup label="Private lists">
48
                     <optgroup label="Private lists">
48
                        [% FOREACH private_shelf IN private_shelves %]
49
                         [% FOREACH private_shelf IN private_shelves %]
49
                            <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
50
                             <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
50
                        [% END %]
51
                         [% END %]
51
                    </optgroup>
52
                     </optgroup>
52
                [% END %]
53
                 [% END %]
53
                [% IF private_shelves_shared_with_me.count %]
54
                 [% IF private_shelves_shared_with_me.count %]
54
                    <optgroup label="Private lists shared with me">
55
                     <optgroup label="Private lists shared with me">
55
                        [% FOREACH private_shelf IN private_shelves_shared_with_me %]
56
                         [% FOREACH private_shelf IN private_shelves_shared_with_me %]
56
                            <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
57
                             <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
57
                        [% END %]
58
                         [% END %]
58
                    </optgroup>
59
                     </optgroup>
59
                [% END %]
60
                 [% END %]
60
                [% IF public_shelves.count %]
61
                 [% IF public_shelves.count %]
61
                    <optgroup label="Public lists">
62
                     <optgroup label="Public lists">
62
                        [% FOREACH public_shelf IN public_shelves %]
63
                         [% FOREACH public_shelf IN public_shelves %]
63
                            <option value="[% public_shelf.shelfnumber %]">[% public_shelf.shelfname | html%]</option>
64
                             <option value="[% public_shelf.shelfnumber %]">[% public_shelf.shelfname | html%]</option>
64
                        [% END %]
65
                         [% END %]
65
                    </optgroup>
66
                     </optgroup>
66
                [% END %]
67
                 [% END %]
67
            </select>
68
             </select>
68
        </li>
69
         </li>
69
    </ol>
70
     </ol>
70
	[% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
71
     
71
	[% UNLESS ( biblionumbers ) %]
72
    	[% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
72
	  <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
73
    	[% UNLESS ( biblionumbers ) %]
73
	[% ELSE %]
74
    	  <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
74
	  <input type="hidden" name="biblionumbers" value="[% biblionumbers %]" />
75
    	[% ELSE %]
75
	[% END %]
76
    	  <input type="hidden" name="biblionumbers" value="[% biblionumbers %]" />
76
	</fieldset>
77
    	[% END %]
78
    	</fieldset>
77
79
78
	<p>... or...</p>
80
    	<p>... or...</p>
81
    [% END %]
79
[% END %]
82
[% END %]
80
83
81
    <fieldset class="rows"><legend>Add to a new list:</legend>
84
    <fieldset class="rows"><legend>Add to a new list:</legend>
82
- 

Return to bug 17886