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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-7 / +6 lines)
Lines 543-549 Link Here
543
                                            [% END %]
543
                                            [% END %]
544
                                        </select>
544
                                        </select>
545
                                    </li>
545
                                    </li>
546
                                    [% IF (OpacAllowPublicListCreation) %]
546
                                    [% IF ( OpacAllowPublicListCreation || category2 ) %]
547
                                        <li>
547
                                        <li>
548
                                            <label for="category">Category:</label>
548
                                            <label for="category">Category:</label>
549
                                            <select name="category" id="category">
549
                                            <select name="category" id="category">
Lines 558-573 Link Here
558
                                                    <option value="2">Public</option>
558
                                                    <option value="2">Public</option>
559
                                                [% END %]
559
                                                [% END %]
560
                                            </select>
560
                                            </select>
561
                                            [% IF ( category2 && !OpacAllowPublicListCreation ) %]
562
                                                The library has disabled the ability for patrons to create new public lists.  If you make your list private, you will not be able to make it public again.
563
                                            [% END %]
561
                                        </li>
564
                                        </li>
562
                                        [% INCLUDE list_permissions %]
565
                                        [% INCLUDE list_permissions %]
563
                                    [% END %]
566
                                    [% END %]
564
                                </ol>
567
                                </ol>
565
                                [% UNLESS ( OpacAllowPublicListCreation ) %]
568
                                [% UNLESS ( OpacAllowPublicListCreation || category2 ) %]
566
                                    [% IF ( category2 ) %]
569
                                    <input type="hidden" name="category" value="1" />
567
                                        <input type="hidden" name="category" value="2" />
568
                                    [% ELSE %]
569
                                        <input type="hidden" name="category" value="1" />
570
                                    [% END %]
571
                                [% END %]
570
                                [% END %]
572
                            </fieldset>
571
                            </fieldset>
573
572
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt (-8 / +6 lines)
Lines 564-586 $(document).ready(function() { Link Here
564
                          [% IF ( sortfield == "itemcallnumber" ) %]<option value="itemcallnumber" selected="selected">Call number</option>[% ELSE %]<option value="itemcallnumber">Call number</option>[% END %]
564
                          [% IF ( sortfield == "itemcallnumber" ) %]<option value="itemcallnumber" selected="selected">Call number</option>[% ELSE %]<option value="itemcallnumber">Call number</option>[% END %]
565
                        </select>
565
                        </select>
566
                      </li>
566
                      </li>
567
                      [% IF (OpacAllowPublicListCreation) %]
567
                      [% IF ( OpacAllowPublicListCreation || category2 ) %]
568
                      <li>
568
                      <li>
569
                        <label for="category">Category:</label>
569
                        <label for="category">Category:</label>
570
                        <select name="category" id="category">
570
                        <select name="category" id="category">
571
                          [% IF ( category1 ) %]<option value="1" selected="selected">Private</option>[% ELSE %]<option value="1">Private</option>[% END %]
571
                          [% IF ( category1 ) %]<option value="1" selected="selected">Private</option>[% ELSE %]<option value="1">Private</option>[% END %]
572
                          [% IF ( category2 ) %]<option value="2" selected="selected">Public</option>[% ELSE %]<option value="2">Public</option>[% END %]
572
                          [% IF ( category2 ) %]<option value="2" selected="selected">Public</option>[% ELSE %]<option value="2">Public</option>[% END %]
573
                        </select>
573
                        </select>
574
                          [% IF ( category2 && !OpacAllowPublicListCreation ) %]
575
                              The library has disabled the ability for patrons to create new public lists.  If you make your list private, you will not be able to make it public again.
576
                          [% END %]
574
                      </li>
577
                      </li>
575
                      [% INCLUDE list_permissions %]
578
                      [% INCLUDE list_permissions %]
576
                      [% END %]
579
                      [% END %]
577
                    </ol>
580
                    </ol>
578
                    [% UNLESS ( OpacAllowPublicListCreation ) %]
581
                    [% UNLESS ( OpacAllowPublicListCreation || category2 ) %]
579
                        [% IF ( category2 ) %]
582
                        <input type="hidden" name="category" value="1" />
580
                            <input type="hidden" name="category" value="2" />
581
                        [% ELSE %]
582
                            <input type="hidden" name="category" value="1" />
583
                        [% END %]
584
                    [% END %]
583
                    [% END %]
585
                  </fieldset>
584
                  </fieldset>
586
                  <fieldset class="action"><input type="submit" value="Save" class="submit" /> [% IF ( showprivateshelves ) %]<a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber %]&amp;display=privateshelves">Cancel</a>[% ELSE %]<a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber %]">Cancel</a>[% END %]</fieldset>
585
                  <fieldset class="action"><input type="submit" value="Save" class="submit" /> [% IF ( showprivateshelves ) %]<a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber %]&amp;display=privateshelves">Cancel</a>[% ELSE %]<a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber %]">Cancel</a>[% END %]</fieldset>
587
- 

Return to bug 10865