Bugzilla – Attachment 140583 Details for
Bug 31162
Add a clear cataloguing module home page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31162: Move Rotating Collections and Upload Covers
Bug-31162-Move-Rotating-Collections-and-Upload-Cov.patch (text/plain), 19.30 KB, created by
Martin Renvoize (ashimema)
on 2022-09-13 14:20:09 UTC
(
hide
)
Description:
Bug 31162: Move Rotating Collections and Upload Covers
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-09-13 14:20:09 UTC
Size:
19.30 KB
patch
obsolete
>From d63ddb47f4c9855b60c85a5c0267a17719140b56 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 23 Aug 2022 10:06:24 +0100 >Subject: [PATCH] Bug 31162: Move Rotating Collections and Upload Covers > >This patch moves the 'Rotating Collections' link from 'Cataloging' to >'Circulation' on the 'Tools' home page and moves the 'Upload local cover >image' link to the 'Cataloging' home page. > >This removes the 'Cataloging' tools section entirely and as such the >template is adapted to a two column layout to compensate. > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../en/modules/cataloguing/cataloging-home.tt | 11 +- > .../prog/en/modules/tools/tools-home.tt | 341 +++++++++--------- > 2 files changed, 172 insertions(+), 180 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt >index 40f425ce65..28d798a6fe 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt >@@ -129,9 +129,10 @@ > </ul> > [% END %] > >- [% IF ( CAN_user_tools_label_creator ) %] >+ [% IF ( CAN_user_tools_label_creator || CAN_user_tools_upload_local_cover_images ) %] > <h3>Tools</h3> > <ul class="buttons-list"> >+ [% IF ( CAN_user_tools_label_creator ) %] > <li> > <a class="circ-button" href="/cgi-bin/koha/labels/label-home.pl"><i class="fa fa-hashtag"></i> Label creator</a> > </li> >@@ -143,6 +144,14 @@ > <li> > <a class="circ-button" href="/cgi-bin/koha/labels/spinelabel-home.pl"><i class="fa fa-hashtag"></i> Quick spine label creator</a> > </li> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_upload_local_cover_images ) %] >+ <li> >+ <a class="circ-button" href="/cgi-bin/koha/tools/upload-cover-image.pl"><i class="fa fa-upload"></i> Upload local cover image</a> >+ </li> >+ [% END %] >+ > </ul> > [% END %] > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt >index 13b7c00665..246d9e41ac 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt >@@ -23,186 +23,169 @@ > </ol> > </nav> > >-<div class="container-fluid"> >- <h1>Tools</h1> >+<div class="main container-fluid"> > <div class="row"> >- <div class="col-sm-4"> >-[% IF ( CAN_user_tools_manage_patron_lists || CAN_user_clubs || CAN_user_tools_moderate_comments || CAN_user_tools_import_patrons || CAN_user_tools_edit_notices || CAN_user_tools_edit_notice_status_triggers || CAN_user_tools_label_creator || CAN_user_tools_delete_anonymize_patrons || CAN_user_tools_edit_patrons || CAN_user_tools_batch_extend_due_dates || CAN_user_tools_moderate_tags || ( CAN_user_tools_batch_upload_patron_images && Koha.Preference('patronimages') ) ) %] >-<h3>Patrons and circulation</h3> >-[% END %] >-<dl> >- [% IF (CAN_user_tools_manage_patron_lists) %] >- <dt><a href="/cgi-bin/koha/patron_lists/lists.pl">Patron lists</a> >- <dd>Manage lists of patrons</dd> >- [% END %] >- >- [% IF (CAN_user_clubs) %] >- <dt><a href="/cgi-bin/koha/clubs/clubs.pl">Patron clubs</a> >- <dd>Manage patron clubs</dd> >- [% END %] >- >- [% IF ( CAN_user_tools_moderate_comments ) %] >- <dt><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments</a> [% IF ( pendingcomments ) %]<span class="number_box"><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">[% pendingcomments | html %]</a></span>[% END %]</dt> >- <dd>Moderate patron comments</dd> >- [% END %] >- >- [% IF ( CAN_user_tools_import_patrons ) %] >- <dt><a href="/cgi-bin/koha/tools/import_borrowers.pl">Import patrons</a></dt> >- <dd>Import patron data</dd> >- [% END %] >- >- [% IF ( CAN_user_tools_edit_notices ) %] >- <dt><a href="/cgi-bin/koha/tools/letter.pl">Notices and slips</a></dt> >- <dd>Define notices (print and email notification messages for overdues, etc.)</dd> >- [% END %] >- >- [% IF ( CAN_user_tools_edit_notice_status_triggers ) %] >- <dt><a href="/cgi-bin/koha/tools/overduerules.pl">Overdue notice/status triggers</a></dt> >- <dd>Set notice/status triggers for overdue items</dd> >- [% END %] >- >- [% IF ( CAN_user_tools_label_creator ) %] >- <dt><a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a></dt> >- <dd>Create printable patron cards</dd> >- [% END %] >- >- [% IF ( CAN_user_tools_delete_anonymize_patrons ) %] >- <dt><a href="/cgi-bin/koha/tools/cleanborrowers.pl">Batch patron deletion and anonymization</a></dt> >- <dd>Batch delete patrons and delete patron circulation history</dd> >- [% END %] >- >- [% IF ( CAN_user_tools_edit_patrons ) %] >- <dt><a href="/cgi-bin/koha/tools/modborrowers.pl">Batch patron modification</a></dt> >- <dd>Modify patrons in batch</dd> >- [% END %] >- >- [% IF ( CAN_user_tools_batch_extend_due_dates ) %] >- <dt><a href="/cgi-bin/koha/tools/batch_extend_due_dates.pl">Batch extend due dates</a></dt> >- <dd>Modify the due date checkouts in batch</dd> >- [% END %] >- >- [% IF ( CAN_user_tools_moderate_tags ) %] >- <dt><a href="/cgi-bin/koha/tags/review.pl">Tags</a> [% IF ( pendingtags ) %]<span class="number_box"><a href="/cgi-bin/koha/tags/review.pl">[% pendingtags | html %]</a></span>[% END %]</dt> >- <dd>Moderate patron tags</dd> >- [% END %] >- >- [% IF ( CAN_user_tools_batch_upload_patron_images && Koha.Preference('patronimages') ) %] >- <dt><a href="/cgi-bin/koha/tools/picture-upload.pl">Upload patron images</a></dt> >- <dd>Upload patron images in a batch or one at a time</dd> >- [% END %] >- >- </dl> >-</div> >- >- >-<div class="col-sm-4 col-sm-push-4"> >-[% IF ( CAN_user_tools_edit_calendar || CAN_user_tools_manage_csv_profiles || CAN_user_tools_view_system_logs || CAN_user_tools_edit_additional_contents || CAN_user_tools_schedule_tasks || CAN_user_tools_edit_quotes || ( plugins_enabled && CAN_user_plugins_tool ) || CAN_user_tools_upload_general_files || CAN_user_tools_access_files ) %] >-<h3>Additional tools</h3> >-[% END %] >-<dl> >- [% IF ( CAN_user_tools_edit_calendar ) %] >- <dt><a href="/cgi-bin/koha/tools/holidays.pl">Calendar</a></dt> >- <dd>Define days when the library is closed</dd> >- [% END %] >- >- [% IF ( CAN_user_tools_manage_csv_profiles ) %] >- <dt><a href="/cgi-bin/koha/tools/csv-profiles.pl">CSV profiles</a></dt> >- <dd>Manage CSV export profiles</dd> >- [% END %] >- >- [% IF ( CAN_user_tools_view_system_logs ) %] >- <dt><a href="/cgi-bin/koha/tools/viewlog.pl">Log viewer</a></dt> >- <dd>Browse the system logs</dd> >- [% END %] >- >- [% IF ( CAN_user_tools_edit_additional_contents ) %] >- <dt><a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a></dt> >- <dd>Write news for the OPAC and staff interfaces</dd> >- >- <dt><a href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations">HTML customizations</a></dt> >- <dd>Write HTML customizations</dd> >- >- <dt><a href="/cgi-bin/koha/tools/additional-contents.pl?category=pages">Pages</a></dt> >- <dd>Write custom pages</dd> >- [% END %] >- >- [% IF ( CAN_user_tools_schedule_tasks ) %] >- <dt><a href="/cgi-bin/koha/tools/scheduler.pl">Task scheduler</a></dt> >- <dd>Schedule tasks to run</dd> >- [% END %] >- >- [% IF ( CAN_user_tools_edit_quotes ) %] >- <dt><a href="/cgi-bin/koha/tools/quotes.pl">Quote editor</a></dt> >- <dd>Manage 'Quote of the day' quotes</dd> >- [% END %] >- >- [% IF ( plugins_enabled && CAN_user_plugins_tool && tool_plugins ) %] >- <dt><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=tool">Tool plugins</a></dt> >- <dd> >- Use tool plugins >- <ul> >- [% FOREACH plugin IN tool_plugins %] >- <li class="plugin_link"> >- <a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class | uri %]&method=tool"> >- <span class="plugin_name">[% plugin.metadata.name | html %]</span> >- </a> >- </li> >- [% END %] >- </ul> >- </dd> >- [% END %] >- >- [% IF ( CAN_user_tools_upload_general_files ) %] >- <dt><a href="/cgi-bin/koha/tools/upload.pl">Upload</a></dt> >- <dd>Upload any type of file, manage uploads</dd> >- [% END %] >- >- [% IF CAN_user_tools_access_files %] >- <dt><a href="/cgi-bin/koha/tools/access_files.pl">Access files</a></dt> >- <dd>Access files stored on the server, like log files or reports</dd> >- [% END %] >- >- [% IF ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports ) %] >- <dt><a href="/cgi-bin/koha/tools/problem-reports.pl">OPAC problem reports</a></dt> >- <dd>Manage OPAC problem reports submitted by patrons</dd> >- [% END %] >- >-</dl> >- >-[% IF ( Koha.Preference('UseCashRegisters') && ( CAN_user_cash_management_cashup || CAN_user_cash_management_anonymous_refund ) ) %] >-<h3>Cash management</h3> >-<dl> >- >- <dt><a href="/cgi-bin/koha/pos/registers.pl">Cash summary for [% Branches.GetLoggedInBranchname | html %]</a></dt> >- <dd>View cash takings for the current library</dd> >- >- <dt><a href="/cgi-bin/koha/pos/register.pl">Transaction history for [% Registers.session_register_name | html %]</a></dt> >- <dd>View transaction history for the current cash register</dd> >- >-</dl> >-[% END %] >- >-</div> >- >-<div class="col-sm-4 col-sm-pull-4"> >-[% IF ( CAN_user_tools_rotating_collections || CAN_user_tools_upload_local_cover_images ) %] >-<h3>Catalog</h3> >-[% END %] >-<dl> >- >- [% IF ( CAN_user_tools_rotating_collections ) %] >- <dt><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a></dt> >- <dd>Manage rotating collections</dd> >- [% END %] >- >- [% IF ( CAN_user_tools_upload_local_cover_images ) %] >- <dt><a href="/cgi-bin/koha/tools/upload-cover-image.pl">Upload local cover image</a></dt> >- <dd>Utility to upload scanned cover images for display in OPAC</dd> >- [% END %] >- >-</dl> >-</div> >- >+ <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> >+ <h1>Tools</h1> >+ <div class="col-sm-6"> >+ [% IF ( CAN_user_tools_manage_patron_lists || CAN_user_clubs || CAN_user_tools_moderate_comments || CAN_user_tools_import_patrons || CAN_user_tools_edit_notices || CAN_user_tools_edit_notice_status_triggers || CAN_user_tools_label_creator || CAN_user_tools_delete_anonymize_patrons || CAN_user_tools_edit_patrons || CAN_user_tools_batch_extend_due_dates || CAN_user_tools_moderate_tags || CAN_user_tools_rotating_collections || ( CAN_user_tools_batch_upload_patron_images && Koha.Preference('patronimages') ) ) %] >+ <h3>Patrons and circulation</h3> >+ [% END %] >+ <dl> >+ [% IF (CAN_user_tools_manage_patron_lists) %] >+ <dt><a href="/cgi-bin/koha/patron_lists/lists.pl">Patron lists</a> >+ <dd>Manage lists of patrons</dd> >+ [% END %] >+ >+ [% IF (CAN_user_clubs) %] >+ <dt><a href="/cgi-bin/koha/clubs/clubs.pl">Patron clubs</a> >+ <dd>Manage patron clubs</dd> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_moderate_comments ) %] >+ <dt><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments</a> [% IF ( pendingcomments ) %]<span class="number_box"><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">[% pendingcomments | html %]</a></span>[% END %]</dt> >+ <dd>Moderate patron comments</dd> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_import_patrons ) %] >+ <dt><a href="/cgi-bin/koha/tools/import_borrowers.pl">Import patrons</a></dt> >+ <dd>Import patron data</dd> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_edit_notices ) %] >+ <dt><a href="/cgi-bin/koha/tools/letter.pl">Notices and slips</a></dt> >+ <dd>Define notices (print and email notification messages for overdues, etc.)</dd> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_edit_notice_status_triggers ) %] >+ <dt><a href="/cgi-bin/koha/tools/overduerules.pl">Overdue notice/status triggers</a></dt> >+ <dd>Set notice/status triggers for overdue items</dd> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_label_creator ) %] >+ <dt><a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a></dt> >+ <dd>Create printable patron cards</dd> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_delete_anonymize_patrons ) %] >+ <dt><a href="/cgi-bin/koha/tools/cleanborrowers.pl">Batch patron deletion and anonymization</a></dt> >+ <dd>Batch delete patrons and delete patron circulation history</dd> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_edit_patrons ) %] >+ <dt><a href="/cgi-bin/koha/tools/modborrowers.pl">Batch patron modification</a></dt> >+ <dd>Modify patrons in batch</dd> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_batch_extend_due_dates ) %] >+ <dt><a href="/cgi-bin/koha/tools/batch_extend_due_dates.pl">Batch extend due dates</a></dt> >+ <dd>Modify the due date checkouts in batch</dd> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_moderate_tags ) %] >+ <dt><a href="/cgi-bin/koha/tags/review.pl">Tags</a> [% IF ( pendingtags ) %]<span class="number_box"><a href="/cgi-bin/koha/tags/review.pl">[% pendingtags | html %]</a></span>[% END %]</dt> >+ <dd>Moderate patron tags</dd> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_batch_upload_patron_images && Koha.Preference('patronimages') ) %] >+ <dt><a href="/cgi-bin/koha/tools/picture-upload.pl">Upload patron images</a></dt> >+ <dd>Upload patron images in a batch or one at a time</dd> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_rotating_collections ) %] >+ <dt><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a></dt> >+ <dd>Manage rotating collections</dd> >+ [% END %] >+ </dl> >+ </div> >+ >+ <div class="col-sm-6"> >+ [% IF ( CAN_user_tools_edit_calendar || CAN_user_tools_manage_csv_profiles || CAN_user_tools_view_system_logs || CAN_user_tools_edit_additional_contents || CAN_user_tools_schedule_tasks || CAN_user_tools_edit_quotes || ( plugins_enabled && CAN_user_plugins_tool ) || CAN_user_tools_upload_general_files || CAN_user_tools_access_files ) %] >+ <h3>Additional tools</h3> >+ [% END %] >+ >+ <dl> >+ [% IF ( CAN_user_tools_edit_calendar ) %] >+ <dt><a href="/cgi-bin/koha/tools/holidays.pl">Calendar</a></dt> >+ <dd>Define days when the library is closed</dd> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_manage_csv_profiles ) %] >+ <dt><a href="/cgi-bin/koha/tools/csv-profiles.pl">CSV profiles</a></dt> >+ <dd>Manage CSV export profiles</dd> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_view_system_logs ) %] >+ <dt><a href="/cgi-bin/koha/tools/viewlog.pl">Log viewer</a></dt> >+ <dd>Browse the system logs</dd> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_edit_additional_contents ) %] >+ <dt><a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a></dt> >+ <dd>Write news for the OPAC and staff interfaces</dd> >+ >+ <dt><a href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations">HTML customizations</a></dt> >+ <dd>Write HTML customizations</dd> >+ >+ <dt><a href="/cgi-bin/koha/tools/additional-contents.pl?category=pages">Pages</a></dt> >+ <dd>Write custom pages</dd> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_schedule_tasks ) %] >+ <dt><a href="/cgi-bin/koha/tools/scheduler.pl">Task scheduler</a></dt> >+ <dd>Schedule tasks to run</dd> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_edit_quotes ) %] >+ <dt><a href="/cgi-bin/koha/tools/quotes.pl">Quote editor</a></dt> >+ <dd>Manage 'Quote of the day' quotes</dd> >+ [% END %] >+ >+ [% IF ( plugins_enabled && CAN_user_plugins_tool && tool_plugins ) %] >+ <dt><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=tool">Tool plugins</a></dt> >+ <dd> >+ Use tool plugins >+ <ul> >+ [% FOREACH plugin IN tool_plugins %] >+ <li class="plugin_link"> >+ <a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class | uri %]&method=tool"> >+ <span class="plugin_name">[% plugin.metadata.name | html %]</span> >+ </a> >+ </li> >+ [% END %] >+ </ul> >+ </dd> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_upload_general_files ) %] >+ <dt><a href="/cgi-bin/koha/tools/upload.pl">Upload</a></dt> >+ <dd>Upload any type of file, manage uploads</dd> >+ [% END %] >+ >+ [% IF CAN_user_tools_access_files %] >+ <dt><a href="/cgi-bin/koha/tools/access_files.pl">Access files</a></dt> >+ <dd>Access files stored on the server, like log files or reports</dd> >+ [% END %] >+ >+ [% IF ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports ) %] >+ <dt><a href="/cgi-bin/koha/tools/problem-reports.pl">OPAC problem reports</a></dt> >+ <dd>Manage OPAC problem reports submitted by patrons</dd> >+ [% END %] >+ </dl> >+ >+ [% IF ( Koha.Preference('UseCashRegisters') && ( CAN_user_cash_management_cashup || CAN_user_cash_management_anonymous_refund ) ) %] >+ <h3>Cash management</h3> >+ <dl> >+ <dt><a href="/cgi-bin/koha/pos/registers.pl">Cash summary for [% Branches.GetLoggedInBranchname | html %]</a></dt> >+ <dd>View cash takings for the current library</dd> >+ >+ <dt><a href="/cgi-bin/koha/pos/register.pl">Transaction history for [% Registers.session_register_name | html %]</a></dt> >+ <dd>View transaction history for the current cash register</dd> >+ </dl> >+ [% END %] >+ >+ </div> >+ </div> > </div> > > [% INCLUDE 'intranet-bottom.inc' %] >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31162
:
137747
|
137754
|
137758
|
138141
|
138167
|
138687
|
138694
|
138797
|
138798
|
138799
|
139593
|
139594
|
139595
|
139596
|
139597
|
139598
|
139650
|
139651
|
139652
|
139654
|
139900
|
139901
|
139902
|
139903
|
139904
|
139905
|
139906
|
139907
|
140578
|
140579
|
140580
|
140581
|
140582
|
140583
|
140584
|
140585
|
140586
|
141246
|
141247
|
141248
|
141249
|
141250
|
141251
|
141252
|
141253
|
141254
|
141880
|
141881
|
141882
|
141883
|
141884
|
141885
|
141886
|
141887
|
141888
|
141889
|
141890
|
141891
|
141975
|
141976
|
141977
|
142028
|
142029
|
142663
|
142664