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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-79 / +78 lines)
Lines 146-212 Link Here
146
            [% FOR m IN messages %]
146
            [% FOR m IN messages %]
147
                <div class="dialog [% m.type | html %]">
147
                <div class="dialog [% m.type | html %]">
148
                    [% SWITCH m.code %]
148
                    [% SWITCH m.code %]
149
                        [% CASE 'error_on_update' %]
149
                    [% CASE 'error_on_update' %]
150
                            <span>An error occurred when updating this list.</span>
150
                        <span>An error occurred when updating this list.</span>
151
                        [% CASE 'error_on_insert' %]
151
                    [% CASE 'error_on_insert' %]
152
                            <span>An error occurred when creating this list.</span>
152
                        <span>An error occurred when creating this list.</span>
153
                        [% CASE 'error_on_delete' %]
153
                    [% CASE 'error_on_delete' %]
154
                            <span>An error occurred when deleting this list.</span>
154
                        <span>An error occurred when deleting this list.</span>
155
                        [% CASE 'error_on_add_biblio' %]
155
                    [% CASE 'error_on_add_biblio' %]
156
                            [% IF m.item_barcode %]
156
                        [% IF m.item_barcode %]
157
                                <span>The item ([% m.item_barcode | html %]) has not been added to the list. Please verify it is not already in the list.</span>
157
                            <span>The item ([% m.item_barcode | html %]) has not been added to the list. Please verify it is not already in the list.</span>
158
                            [% ELSE %]
158
                        [% ELSE %]
159
                                <span>The record ([% m.bibnum | html %]) has not been added to the list. Please verify it is not already in the list.</span>
159
                            <span>The record ([% m.bibnum | html %]) has not been added to the list. Please verify it is not already in the list.</span>
160
                            [% END %]
160
                        [% END %]
161
                        [% CASE 'success_on_update' %]
161
                    [% CASE 'success_on_update' %]
162
                            <span>List updated.</span>
162
                        <span>List updated.</span>
163
                        [% CASE 'success_on_insert' %]
163
                    [% CASE 'success_on_insert' %]
164
                            <span>List created.</span>
164
                        <span>List created.</span>
165
                        [% CASE 'success_on_delete' %]
165
                    [% CASE 'success_on_delete' %]
166
                            <span>List deleted.</span>
166
                        <span>List deleted.</span>
167
                        [% CASE 'success_on_add_biblio' %]
167
                    [% CASE 'success_on_add_biblio' %]
168
                            [% IF m.item_barcode %]
168
                        [% IF m.item_barcode %]
169
                                <span>The item ([% m.item_barcode | html %]) has been added to the list.</span>
169
                            <span>The item ([% m.item_barcode | html %]) has been added to the list.</span>
170
                            [% ELSE %]
170
                        [% ELSE %]
171
                                <span>The record ([% m.bibnum | html %]) has been added to the list.</span>
171
                            <span>The record ([% m.bibnum | html %]) has been added to the list.</span>
172
                            [% END %]
172
                        [% END %]
173
                        [% CASE 'success_on_remove_biblios' %]
173
                    [% CASE 'success_on_remove_biblios' %]
174
                            <span>The item has been removed from the list.</span>
174
                        <span>The item has been removed from the list.</span>
175
                        [% CASE 'does_not_exist' %]
175
                    [% CASE 'does_not_exist' %]
176
                            <span>This list does not exist.</span>
176
                        <span>This list does not exist.</span>
177
                        [% CASE 'item_does_not_exist' %]
177
                    [% CASE 'item_does_not_exist' %]
178
                            [% IF m.item_barcode %]
178
                        [% IF m.item_barcode %]
179
                                <span>The item ([% m.item_barcode | html %]) does not exist.</span>
179
                            <span>The item ([% m.item_barcode | html %]) does not exist.</span>
180
                            [% ELSE %]
180
                        [% ELSE %]
181
                                <span>The record ([% m.bibnum | html %]) does not exist.</span>
181
                            <span>The record ([% m.bibnum | html %]) does not exist.</span>
182
                            [% END %]
182
                        [% END %]
183
                        [% CASE 'unauthorized_on_view' %]
183
                    [% CASE 'unauthorized_on_view' %]
184
                            <span>You do not have permission to view this list.</span>
184
                        <span>You do not have permission to view this list.</span>
185
                        [% CASE 'unauthorized_on_update' %]
185
                    [% CASE 'unauthorized_on_update' %]
186
                            <span>You do not have permission to update this list.</span>
186
                        <span>You do not have permission to update this list.</span>
187
                        [% CASE 'unauthorized_on_delete' %]
187
                    [% CASE 'unauthorized_on_delete' %]
188
                            <span>You do not have permission to delete this list.</span>
188
                        <span>You do not have permission to delete this list.</span>
189
                        [% CASE 'unauthorized_on_add_biblio' %]
189
                    [% CASE 'unauthorized_on_add_biblio' %]
190
                            <span>You do not have permission to add a record to this list.</span>
190
                        <span>You do not have permission to add a record to this list.</span>
191
                        [% CASE 'unauthorized_transfer' %]
191
                    [% CASE 'unauthorized_transfer' %]
192
                            <span>You do not have permission to transfer ownership of this list.</span>
192
                        <span>You do not have permission to transfer ownership of this list.</span>
193
                        [% CASE 'new_owner_not_found' %]
193
                    [% CASE 'new_owner_not_found' %]
194
                            <span>The new owner could not be found anymore.</span>
194
                        <span>The new owner could not be found anymore.</span>
195
                        [% CASE 'no_biblio_removed' %]
195
                    [% CASE 'no_biblio_removed' %]
196
                            <span>No record was removed.</span>
196
                        <span>No record was removed.</span>
197
197
198
                        [% CASE 'Koha::Exceptions::Virtualshelf::DuplicateObject' %]
198
                    [% CASE 'Koha::Exceptions::Virtualshelf::DuplicateObject' %]
199
                            <span>An error occurred when creating this list. The name [% shelfname | html %] already exists.</span>
199
                        <span>An error occurred when creating this list. The name [% shelfname | html %] already exists.</span>
200
                        [% CASE 'Koha::Exceptions::Virtualshelf::UseDbAdminAccount' %]
200
                    [% CASE 'Koha::Exceptions::Virtualshelf::UseDbAdminAccount' %]
201
                            <span>List could not be created. (Do not use the database administrator account.)</span>
201
                        <span>List could not be created. (Do not use the database administrator account.)</span>
202
                        [% CASE 'DBIx::Class::Exception' %]
202
                    [% CASE 'DBIx::Class::Exception' %]
203
                            [% m.msg | html %]
203
                        [% m.msg | html %]
204
204
205
                        [% CASE %]
205
                    [% CASE %]
206
                            [% m.code | html %] [% m.msg | html %]
206
                        [% m.code | html %] [% m.msg | html %]
207
                    [% END %]
207
                    [% END # /SWITCH %]
208
                </div>
208
                </div>
209
            [% END %]
209
            [% END # /FOR m IN messages %]
210
210
211
            [% IF op == 'transfer' %]
211
            [% IF op == 'transfer' %]
212
                <h1>Transfer ownership of public list [% shelf.shelfname | html %]</h1>
212
                <h1>Transfer ownership of public list [% shelf.shelfname | html %]</h1>
Lines 237-243 Link Here
237
237
238
                    </fieldset>
238
                    </fieldset>
239
                </form>
239
                </form>
240
            [% END %]
240
            [% END # /IF op == transfer %]
241
241
242
            [% IF op == 'view' %]
242
            [% IF op == 'view' %]
243
                <h1>Contents of <em>[% shelf.shelfname | html %]</em></h1>
243
                <h1>Contents of <em>[% shelf.shelfname | html %]</em></h1>
Lines 378-393 Link Here
378
                                                        [<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% item.itemcallnumber | uri %]%22">[% item.itemcallnumber | html %]</a>]
378
                                                        [<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% item.itemcallnumber | uri %]%22">[% item.itemcallnumber | html %]</a>]
379
                                                    [% END %]
379
                                                    [% END %]
380
                                                </li>
380
                                                </li>
381
                                            [% END %]
381
                                            [% END # /FOREACH item %]
382
                                        </ul>
382
                                        </ul>
383
                                    </td>
383
                                    </td>
384
                                </tr>
384
                                </tr>
385
                            [% END %]<!-- /itemsloop -->
385
                            [% END #/FOREACH itemsloo %]
386
                        </table>
386
                        </table> <!-- /#searchresults -->
387
                        <div class="pages">[% pagination_bar | $raw %]</div>
387
                        <div class="pages">[% pagination_bar | $raw %]</div>
388
                    </form>
388
                    </form>
389
                [% END %]
389
                [% END # /IF itemsloop %]
390
            [% END %]
390
            [% END # /IF op == 'view' %]
391
391
392
            [% IF op == 'add_form' OR op == 'edit_form' %]
392
            [% IF op == 'add_form' OR op == 'edit_form' %]
393
393
Lines 481-487 Link Here
481
                        [% END %]
481
                        [% END %]
482
                    </fieldset>
482
                    </fieldset>
483
                </form>
483
                </form>
484
            [% END %]
484
            [% END # /IF op == 'add_form'... %]
485
485
486
            [% IF op == 'list' %]
486
            [% IF op == 'list' %]
487
                <h1>Lists</h1>
487
                <h1>Lists</h1>
Lines 531-540 Link Here
531
                                </tr>
531
                                </tr>
532
                            </thead>
532
                            </thead>
533
                            <tbody></tbody>
533
                            <tbody></tbody>
534
                        </table>
534
                        </table> <!-- /#listresultst -->
535
                    </div>
535
                    </div> <!-- #/tab_content -->
536
                </div>
536
                </div> <!-- /#tabs -->
537
            [% END %]
537
            [% END # /IF op == 'list' %]
538
538
539
            <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
539
            <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
540
                <!-- Values will be set here by placeHold() -->
540
                <!-- Values will be set here by placeHold() -->
Lines 573-588 Link Here
573
                                </li>
573
                                </li>
574
                            </ol>
574
                            </ol>
575
                        </fieldset>
575
                        </fieldset>
576
                    </div>
576
                    </div> <!-- /.modal-body -->
577
                    <div class="modal-footer">
577
                    <div class="modal-footer">
578
                        <button type="submit" class="btn btn-default">Save</button>
578
                        <button type="submit" class="btn btn-default">Save</button>
579
                        <a href="#" data-dismiss="modal" class="cancel">Cancel</a>
579
                        <a href="#" data-dismiss="modal" class="cancel">Cancel</a>
580
                    </div>
580
                    </div>
581
                </div>
581
                </div>
582
            </form>
582
            </form>
583
        </div>
583
        </div> <!-- /.modal-dialog -->
584
    </div>
584
    </div> <!-- /#addToList -->
585
[% END %]
585
[% END # IF /( can_add_biblios ) %]
586
586
587
[% MACRO jsinclude BLOCK %]
587
[% MACRO jsinclude BLOCK %]
588
    [% INCLUDE 'datatables.inc' %]
588
    [% INCLUDE 'datatables.inc' %]
Lines 597-603 Link Here
597
                setTimeout('window.close()', 1000); // Hack for Chrome < 63
597
                setTimeout('window.close()', 1000); // Hack for Chrome < 63
598
            });
598
            });
599
        </script>
599
        </script>
600
    [% END %]
600
    [% END #/print %]
601
601
602
    [% IF op == 'view' %]
602
    [% IF op == 'view' %]
603
        [% Asset.js("lib/hc-sticky.js") | $raw %]
603
        [% Asset.js("lib/hc-sticky.js") | $raw %]
Lines 707-713 Link Here
707
                    return confirmDelete(MSG_CONFIRM_DELETE_LIST);
707
                    return confirmDelete(MSG_CONFIRM_DELETE_LIST);
708
                });
708
                });
709
            });
709
            });
710
        [% END %]
710
        [% END # /IF op == 'list' %]
711
711
712
        [% IF shelf AND op == 'view' %]
712
        [% IF shelf AND op == 'view' %]
713
            var Sticky;
713
            var Sticky;
Lines 804-810 Link Here
804
                    $("#barcodes").focus();
804
                    $("#barcodes").focus();
805
                });
805
                });
806
            });
806
            });
807
        [% END %]
807
        [% END # /IF shelf %]
808
808
809
        [% IF shelf AND op == 'edit_form' %]
809
        [% IF shelf AND op == 'edit_form' %]
810
            $(document).ready(function(){
810
            $(document).ready(function(){
811
- 

Return to bug 30304