Bugzilla – Attachment 161962 Details for
Bug 32731
Option for cataloguing tools to also be shown in tools home
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32731: Move cataloging tools to an include and show on tools home
Bug-32731-Move-cataloging-tools-to-an-include-and-.patch (text/plain), 18.61 KB, created by
Kyle M Hall (khall)
on 2024-02-09 11:58:42 UTC
(
hide
)
Description:
Bug 32731: Move cataloging tools to an include and show on tools home
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2024-02-09 11:58:42 UTC
Size:
18.61 KB
patch
obsolete
>From 30d9c0e2932814ecdfd79e426b32b8f2e7e67f6b Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 30 Mar 2023 07:39:40 +0000 >Subject: [PATCH] Bug 32731: Move cataloging tools to an include and show on > tools home > >This patch moves the cataloging tools to an include, which is then added >with a toggle to the tools homepage. This allows for the content to be on both pages, >and can easily be hidden or shown by default. It ensures we don't have to maintain the >same links in two places > >To test: >1 - Apply patch >2 - Ensure cataloging home page looks the same >3 - Ensure you can view/hide the cataloging tools on the tools page > >Signed-off-by: Sam Lau <samalau@gmail.com> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../prog/en/includes/cataloging-tools.inc | 159 ++++++++++++++++++ > .../en/modules/cataloguing/cataloging-home.tt | 159 +----------------- > .../prog/en/modules/tools/tools-home.tt | 15 +- > 3 files changed, 174 insertions(+), 159 deletions(-) > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-tools.inc > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-tools.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-tools.inc >new file mode 100644 >index 00000000000..10b0fb61ea4 >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-tools.inc >@@ -0,0 +1,159 @@ >+<h1>Cataloging</h1> >+ >+<div class="row"> >+ >+ <div class="col-sm-4 col-md-4"> >+ [% IF ( CAN_user_tools_stage_marc_import || CAN_user_tools_manage_staged_marc ) %] >+ <h3>Import</h3> >+ <ul class="buttons-list"> >+ [% IF ( CAN_user_tools_stage_marc_import ) %] >+ <li> >+ <a class="circ-button" href="/cgi-bin/koha/tools/stage-marc-import.pl"><i class="fa fa-download"></i> Stage records for import</a> >+ </li> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_manage_staged_marc ) %] >+ <li> >+ <a class="circ-button" href="/cgi-bin/koha/tools/manage-marc-import.pl"><i class="fa fa-tasks"></i> Manage staged records</a> >+ </li> >+ [% END %] >+ </ul> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_export_catalog ) %] >+ <h3>Export</h3> >+ <ul class="buttons-list"> >+ [% IF ( CAN_user_tools_export_catalog ) %] >+ <li> >+ <a class="circ-button" href="/cgi-bin/koha/tools/export.pl"><i class="fa fa-upload"></i> Export catalog data</a> >+ </li> >+ [% END %] >+ </ul> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_inventory || ( ( Koha.Preference('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) ) %] >+ <h3>Reports</h3> >+ <ul class="buttons-list"> >+ [% IF ( CAN_user_tools_inventory ) %] >+ <li> >+ <a class="circ-button" href="/cgi-bin/koha/tools/inventory.pl"><i class="fa-solid fa-clipboard-check"></i> Inventory</a> >+ </li> >+ [% END %] >+ >+ [% IF ( ( Koha.Preference('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %] >+ <li> >+ <a class="circ-button" href="/cgi-bin/koha/cataloguing/concerns.pl"><i class="fa fa-list-ul"></i> Catalog concerns</a> >+ </li> >+ [% END %] >+ </ul> >+ [% END %] >+ [% IF ( fast_cataloging && CAN_user_editcatalogue_fast_cataloging ) %] >+ <h3>Fast cataloging</h3> >+ <ul class="buttons-list"> >+ [% IF ( CAN_user_editcatalogue_fast_cataloging ) %] >+ <li> >+ <a class="circ-button" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA"><i class="fa fa-plus"></i> Fast cataloging</a> >+ </li> >+ [% END %] >+ </ul> >+ [% END %] >+ >+ >+ </div> >+ >+ <div class="col-sm-4 col-md-4"> >+ >+ [% IF ( CAN_user_tools_items_batchmod || CAN_user_tools_items_batchdel || CAN_user_tools_records_batchmod || CAN_user_tools_records_batchdel || CAN_user_tools_marc_modification_templates ) %] >+ <h3>Batch editing</h3> >+ <ul class="buttons-list"> >+ [% IF ( CAN_user_tools_items_batchmod ) %] >+ <li> >+ <a class="circ-button" href="/cgi-bin/koha/tools/batchMod.pl"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Batch item modification</a> >+ </li> >+ [% END %] >+ [% IF ( CAN_user_tools_items_batchdel ) %] >+ <li> >+ <a class="circ-button" href="/cgi-bin/koha/tools/batchMod.pl?del=1"><i class="fa fa-trash-can"></i> Batch item deletion</a> >+ </li> >+ [% END %] >+ [% IF CAN_user_tools_records_batchmod %] >+ <li> >+ <a class="circ-button" href="/cgi-bin/koha/tools/batch_record_modification.pl"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Batch record modification</a> >+ </li> >+ [% END %] >+ [% IF CAN_user_tools_records_batchdel %] >+ <li> >+ <a class="circ-button" href="/cgi-bin/koha/tools/batch_delete_records.pl"><i class="fa fa-trash-can"></i> Batch record deletion</a> >+ </li> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_marc_modification_templates ) %] >+ <li> >+ <a class="circ-button" href="/cgi-bin/koha/tools/marc_modification_templates.pl"><i class="fa fa-gear"></i> MARC modification templates</a> >+ </li> >+ [% END %] >+ </ul> >+ [% END %] >+ >+ [% IF ( CAN_user_tools_items_batchmod || ( CAN_user_stockrotation_manage_rotas && Koha.Preference('StockRotation') ) ) %] >+ <h3>Automation</h3> >+ <ul class="buttons-list"> >+ [% IF ( CAN_user_tools_items_batchmod ) %] >+ <li> >+ <a class="circ-button" href="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl"><i class="fa-solid fa-calendar-days"></i> Item modifications by age</a> >+ </li> >+ [% END %] >+ [% IF ( CAN_user_stockrotation_manage_rotas && Koha.Preference('StockRotation') ) %] >+ <li> >+ <a class="circ-button" href="/cgi-bin/koha/tools/stockrotation.pl"><i class="fa-solid fa-rotate"></i> Stock rotation</a> >+ </li> >+ [% END %] >+ </ul> >+ [% END %] >+ >+ </div> >+ >+ <div class="col-sm-4 col-md-4"> >+ >+ [% 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> >+ >+ <li> >+ <a class="circ-button" href="/cgi-bin/koha/labels/barcode-print.pl"><i class="fa fa-barcode"></i> Barcode image generator</a> >+ </li> >+ >+ <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 %] >+ >+ [% IF ( CAN_user_parameters ) %] >+ <h3>Administration</h3> >+ <ul class="buttons-list"> >+ [% IF ( CAN_user_parameters_manage_sysprefs ) %] >+ <li> >+ <a class="circ-button" href="/cgi-bin/koha/admin/preferences.pl?tab=cataloguing"><i class="fa fa-tasks"></i> Preferences</a> >+ </li> >+ [% END %] >+ <li> >+ <a class="circ-button" href="/cgi-bin/koha/admin/admin-home.pl"><i class="fa fa-cogs"></i> Configuration</a> >+ </li> >+ </ul> >+ [% END %] >+ >+ </div> >+</div> >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 7cf87d2ee9a..d6758c8ee33 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 >@@ -59,164 +59,7 @@ > </div> <!-- /#toolbar --> > [% END # /IF CAN_user_editcatalogue_edit_catalogue %] > >- <h1>Cataloging</h1> >- >- <div class="row"> >- >- <div class="col-sm-4 col-md-4"> >- [% IF ( CAN_user_tools_stage_marc_import || CAN_user_tools_manage_staged_marc ) %] >- <h3>Import</h3> >- <ul class="buttons-list"> >- [% IF ( CAN_user_tools_stage_marc_import ) %] >- <li> >- <a class="circ-button" href="/cgi-bin/koha/tools/stage-marc-import.pl"><i class="fa fa-download"></i> Stage records for import</a> >- </li> >- [% END %] >- >- [% IF ( CAN_user_tools_manage_staged_marc ) %] >- <li> >- <a class="circ-button" href="/cgi-bin/koha/tools/manage-marc-import.pl"><i class="fa fa-tasks"></i> Manage staged records</a> >- </li> >- [% END %] >- </ul> >- [% END %] >- >- [% IF ( CAN_user_tools_export_catalog ) %] >- <h3>Export</h3> >- <ul class="buttons-list"> >- [% IF ( CAN_user_tools_export_catalog ) %] >- <li> >- <a class="circ-button" href="/cgi-bin/koha/tools/export.pl"><i class="fa fa-upload"></i> Export catalog data</a> >- </li> >- [% END %] >- </ul> >- [% END %] >- >- [% IF ( CAN_user_tools_inventory || ( ( Koha.Preference('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) ) %] >- <h3>Reports</h3> >- <ul class="buttons-list"> >- [% IF ( CAN_user_tools_inventory ) %] >- <li> >- <a class="circ-button" href="/cgi-bin/koha/tools/inventory.pl"><i class="fa-solid fa-clipboard-check"></i> Inventory</a> >- </li> >- [% END %] >- >- [% IF ( ( Koha.Preference('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %] >- <li> >- <a class="circ-button" href="/cgi-bin/koha/cataloguing/concerns.pl"><i class="fa fa-list-ul"></i> Catalog concerns</a> >- </li> >- [% END %] >- </ul> >- [% END %] >- [% IF ( fast_cataloging && CAN_user_editcatalogue_fast_cataloging ) %] >- <h3>Fast cataloging</h3> >- <ul class="buttons-list"> >- [% IF ( CAN_user_editcatalogue_fast_cataloging ) %] >- <li> >- <a class="circ-button" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA"><i class="fa fa-plus"></i> Fast cataloging</a> >- </li> >- [% END %] >- </ul> >- [% END %] >- >- >- </div> >- >- <div class="col-sm-4 col-md-4"> >- >- [% IF ( CAN_user_tools_items_batchmod || CAN_user_tools_items_batchdel || CAN_user_tools_records_batchmod || CAN_user_tools_records_batchdel || CAN_user_tools_marc_modification_templates ) %] >- <h3>Batch editing</h3> >- <ul class="buttons-list"> >- [% IF ( CAN_user_tools_items_batchmod ) %] >- <li> >- <a class="circ-button" href="/cgi-bin/koha/tools/batchMod.pl"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Batch item modification</a> >- </li> >- [% END %] >- [% IF ( CAN_user_tools_items_batchdel ) %] >- <li> >- <a class="circ-button" href="/cgi-bin/koha/tools/batchMod.pl?del=1"><i class="fa fa-trash-can"></i> Batch item deletion</a> >- </li> >- [% END %] >- [% IF CAN_user_tools_records_batchmod %] >- <li> >- <a class="circ-button" href="/cgi-bin/koha/tools/batch_record_modification.pl"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Batch record modification</a> >- </li> >- [% END %] >- [% IF CAN_user_tools_records_batchdel %] >- <li> >- <a class="circ-button" href="/cgi-bin/koha/tools/batch_delete_records.pl"><i class="fa fa-trash-can"></i> Batch record deletion</a> >- </li> >- [% END %] >- >- [% IF ( CAN_user_tools_marc_modification_templates ) %] >- <li> >- <a class="circ-button" href="/cgi-bin/koha/tools/marc_modification_templates.pl"><i class="fa fa-gear"></i> MARC modification templates</a> >- </li> >- [% END %] >- </ul> >- [% END %] >- >- [% IF ( CAN_user_tools_items_batchmod || ( CAN_user_stockrotation_manage_rotas && Koha.Preference('StockRotation') ) ) %] >- <h3>Automation</h3> >- <ul class="buttons-list"> >- [% IF ( CAN_user_tools_items_batchmod ) %] >- <li> >- <a class="circ-button" href="/cgi-bin/koha/tools/automatic_item_modification_by_age.pl"><i class="fa-solid fa-calendar-days"></i> Item modifications by age</a> >- </li> >- [% END %] >- [% IF ( CAN_user_stockrotation_manage_rotas && Koha.Preference('StockRotation') ) %] >- <li> >- <a class="circ-button" href="/cgi-bin/koha/tools/stockrotation.pl"><i class="fa-solid fa-rotate"></i> Stock rotation</a> >- </li> >- [% END %] >- </ul> >- [% END %] >- >- </div> >- >- <div class="col-sm-4 col-md-4"> >- >- [% 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> >- >- <li> >- <a class="circ-button" href="/cgi-bin/koha/labels/barcode-print.pl"><i class="fa fa-barcode"></i> Barcode image generator</a> >- </li> >- >- <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 %] >- >- [% IF ( CAN_user_parameters ) %] >- <h3>Administration</h3> >- <ul class="buttons-list"> >- [% IF ( CAN_user_parameters_manage_sysprefs ) %] >- <li> >- <a class="circ-button" href="/cgi-bin/koha/admin/preferences.pl?tab=cataloguing"><i class="fa fa-tasks"></i> Preferences</a> >- </li> >- [% END %] >- <li> >- <a class="circ-button" href="/cgi-bin/koha/admin/admin-home.pl"><i class="fa fa-cogs"></i> Configuration</a> >- </li> >- </ul> >- [% END %] >- >- </div> >+ [% INCLUDE 'cataloging-tools.inc' %] > </div> > > [%- SET StaffCataloguingHome = AdditionalContents.get( location => "StaffCataloguingHome", lang => lang, library => logged_in_user.branchcode ) -%] >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 86ee4426f61..dcf897a51a6 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 >@@ -199,5 +199,18 @@ > </div> <!-- /.row --> > </div> <!-- /.col-md-10 --> > </div> <!-- /.row --> >- >+ <div class="row"> >+ <div class="cataloging-tools col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> >+ <a class="toggle-ct">Show cataloging tools</a> >+ <a class="toggle-ct" style="display:none;">Hide cataloging tools</a> >+ </div> >+ <div class="toggle-ct col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2" style="display:none;"> >+ [% INCLUDE 'cataloging-tools.inc' %] >+ </div> >+ </div> >+ <script> >+ $("a.toggle-ct").click(function(){ >+ $(".toggle-ct").toggle(); >+ }); >+ </script> > [% INCLUDE 'intranet-bottom.inc' %] >-- >2.30.2
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 32731
:
145682
|
145683
|
145752
|
145753
|
148947
|
150691
|
151605
|
157127
|
158613
| 161962 |
161963