Lines 26-233
Link Here
|
26 |
[% END #/ WRAPPER sub-header.inc %] |
26 |
[% END #/ WRAPPER sub-header.inc %] |
27 |
|
27 |
|
28 |
<div class="main container-fluid"> |
28 |
<div class="main container-fluid"> |
29 |
<div class="row"> |
29 |
[% WRAPPER module_langing_page %] |
30 |
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> |
30 |
[% WRAPPER module_langing_page_toolbar permission = CAN_user_editcatalogue_edit_catalogue %][% END %] |
31 |
[% INCLUDE 'messages.inc' %] |
31 |
[% WRAPPER module_langing_page_content label = t("Cataloging") %] |
32 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %] |
32 |
[% WRAPPER module_langing_page_column %] |
33 |
<div id="toolbar" class="btn-toolbar"> |
33 |
[% WRAPPER module_langing_page_item |
34 |
[% IF Koha.Preference( 'EnableAdvancedCatalogingEditor' ) == 1 && CAN_user_editcatalogue_advanced_editor %] |
34 |
title = t("Import") |
35 |
<a id="useadvanced" href="/cgi-bin/koha/cataloguing/editor.pl" class="btn btn-default"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Advanced editor</a> |
35 |
item_permission = ( CAN_user_tools_stage_marc_import || CAN_user_tools_manage_staged_marc ) |
|
|
36 |
sub_items = [ |
37 |
{ |
38 |
'label' => t("Stage records for import"), |
39 |
'icon_class' => 'fa fa-download', |
40 |
'link' => '/cgi-bin/koha/tools/stage-marc-import.pl', |
41 |
'permission' => CAN_user_tools_stage_marc_import, |
42 |
}, |
43 |
{ |
44 |
'label' => t("Manage staged records"), |
45 |
'icon_class' => 'fa fa-tasks', |
46 |
'link' => '/cgi-bin/koha/tools/manage-marc-import.pl', |
47 |
'permission' => CAN_user_tools_manage_staged_marc, |
48 |
} |
49 |
] |
50 |
%] |
36 |
[% END %] |
51 |
[% END %] |
37 |
<div class="btn-group"> |
|
|
38 |
<button class="btn btn-default" id="newRecord"><i class="fa fa-plus"></i> New record</button> |
39 |
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> |
40 |
<ul class="dropdown-menu"> |
41 |
<li><a id="newRecordDefault" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=">Default framework</a></li> |
42 |
[% FOREACH framework IN frameworks %] |
43 |
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=[% framework.frameworkcode | uri %]">[% framework.frameworktext | html %]</a></li> |
44 |
[% END %] |
45 |
</ul> |
46 |
</div> |
47 |
[% IF servers.count > 0 %] |
48 |
<div class="btn-group"> |
49 |
<button class="btn btn-default" id="z3950search"><i class="fa fa-search"></i> New from Z39.50/SRU</button> |
50 |
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> |
51 |
<ul class="dropdown-menu"> |
52 |
<li id="Default" class="z3950searchFw"><a href="#">Default framework</a></li> |
53 |
[% FOREACH framework IN frameworks %] |
54 |
<li id="[% framework.frameworkcode | html %]" class="z3950searchFw"><a href="#">[% framework.frameworktext | html %]</a></li> |
55 |
[% END %] |
56 |
</ul> |
57 |
</div> |
58 |
[% END # /IF servers.count %] |
59 |
</div> <!-- /#toolbar --> |
60 |
[% END # /IF CAN_user_editcatalogue_edit_catalogue %] |
61 |
|
52 |
|
62 |
<h1>Cataloging</h1> |
53 |
[% WRAPPER module_langing_page_item |
|
|
54 |
title = t("Export") |
55 |
item_permission = ( CAN_user_tools_export_catalog ) |
56 |
sub_items = [ |
57 |
{ |
58 |
'label' => t("Export catalog data"), |
59 |
'icon_class' => 'fa fa-upload', |
60 |
'link' => '/cgi-bin/koha/tools/export.pl', |
61 |
'permission' => CAN_user_tools_export_catalog, |
62 |
} |
63 |
] |
64 |
%] |
65 |
[% END %] |
63 |
|
66 |
|
64 |
<div class="row"> |
67 |
[% WRAPPER module_langing_page_item |
|
|
68 |
title = t("Reports") |
69 |
item_permission = ( CAN_user_tools_inventory || ( ( Koha.Preference('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) ) |
70 |
sub_items = [ |
71 |
{ |
72 |
'label' => t("Inventory"), |
73 |
'icon_class' => 'fa-solid fa-clipboard-check', |
74 |
'link' => '/cgi-bin/koha/tools/inventory.pl', |
75 |
'permission' => CAN_user_tools_inventory, |
76 |
}, |
77 |
{ |
78 |
'label' => t("Catalog concerns"), |
79 |
'icon_class' => 'fa fa-list-ul', |
80 |
'link' => '/cgi-bin/koha/cataloguing/concerns.pl', |
81 |
'permission' => ( ( Koha.Preference('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ), |
82 |
} |
83 |
] |
84 |
%] |
85 |
[% END %] |
65 |
|
86 |
|
66 |
<div class="col-sm-4 col-md-4"> |
87 |
[% WRAPPER module_langing_page_item |
67 |
[% IF ( CAN_user_tools_stage_marc_import || CAN_user_tools_manage_staged_marc ) %] |
88 |
title = t("Fast cataloging") |
68 |
<h3>Import</h3> |
89 |
item_permission = ( fast_cataloging && CAN_user_editcatalogue_fast_cataloging ) |
69 |
<ul class="buttons-list"> |
90 |
sub_items = [ |
70 |
[% IF ( CAN_user_tools_stage_marc_import ) %] |
91 |
{ |
71 |
<li> |
92 |
'label' => t("Fast cataloging"), |
72 |
<a class="circ-button" href="/cgi-bin/koha/tools/stage-marc-import.pl"><i class="fa fa-download"></i> Stage records for import</a> |
93 |
'icon_class' => 'fa fa-plus', |
73 |
</li> |
94 |
'link' => '/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA', |
74 |
[% END %] |
95 |
'permission' => CAN_user_editcatalogue_fast_cataloging, |
|
|
96 |
} |
97 |
] |
98 |
%] |
99 |
[% END %] |
100 |
[% END %] <!-- module_langing_page_column--> |
75 |
|
101 |
|
76 |
[% IF ( CAN_user_tools_manage_staged_marc ) %] |
102 |
<div class="col-sm-4 col-md-4"> |
77 |
<li> |
|
|
78 |
<a class="circ-button" href="/cgi-bin/koha/tools/manage-marc-import.pl"><i class="fa fa-tasks"></i> Manage staged records</a> |
79 |
</li> |
80 |
[% END %] |
81 |
</ul> |
82 |
[% END %] |
83 |
|
103 |
|
84 |
[% IF ( CAN_user_tools_export_catalog ) %] |
104 |
[% 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 ) %] |
85 |
<h3>Export</h3> |
105 |
<h3>Batch editing</h3> |
86 |
<ul class="buttons-list"> |
106 |
<ul class="buttons-list"> |
87 |
[% IF ( CAN_user_tools_export_catalog ) %] |
107 |
[% IF ( CAN_user_tools_items_batchmod ) %] |
88 |
<li> |
108 |
<li> |
89 |
<a class="circ-button" href="/cgi-bin/koha/tools/export.pl"><i class="fa fa-upload"></i> Export catalog data</a> |
109 |
<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> |
90 |
</li> |
110 |
</li> |
91 |
[% END %] |
|
|
92 |
</ul> |
93 |
[% END %] |
111 |
[% END %] |
94 |
|
112 |
[% IF ( CAN_user_tools_items_batchdel ) %] |
95 |
[% IF ( CAN_user_tools_inventory || ( ( Koha.Preference('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) ) %] |
113 |
<li> |
96 |
<h3>Reports</h3> |
114 |
<a class="circ-button" href="/cgi-bin/koha/tools/batchMod.pl?del=1"><i class="fa fa-trash-can"></i> Batch item deletion</a> |
97 |
<ul class="buttons-list"> |
115 |
</li> |
98 |
[% IF ( CAN_user_tools_inventory ) %] |
|
|
99 |
<li> |
100 |
<a class="circ-button" href="/cgi-bin/koha/tools/inventory.pl"><i class="fa-solid fa-clipboard-check"></i> Inventory</a> |
101 |
</li> |
102 |
[% END %] |
103 |
|
104 |
[% IF ( ( Koha.Preference('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %] |
105 |
<li> |
106 |
<a class="circ-button" href="/cgi-bin/koha/cataloguing/concerns.pl"><i class="fa fa-list-ul"></i> Catalog concerns</a> |
107 |
</li> |
108 |
[% END %] |
109 |
</ul> |
110 |
[% END %] |
116 |
[% END %] |
111 |
[% IF ( fast_cataloging && CAN_user_editcatalogue_fast_cataloging ) %] |
117 |
[% IF CAN_user_tools_records_batchmod %] |
112 |
<h3>Fast cataloging</h3> |
118 |
<li> |
113 |
<ul class="buttons-list"> |
119 |
<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> |
114 |
[% IF ( CAN_user_editcatalogue_fast_cataloging ) %] |
120 |
</li> |
115 |
<li> |
|
|
116 |
<a class="circ-button" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA"><i class="fa fa-plus"></i> Fast cataloging</a> |
117 |
</li> |
118 |
[% END %] |
119 |
</ul> |
120 |
[% END %] |
121 |
[% END %] |
121 |
|
122 |
[% IF CAN_user_tools_records_batchdel %] |
122 |
|
123 |
<li> |
123 |
</div> |
124 |
<a class="circ-button" href="/cgi-bin/koha/tools/batch_delete_records.pl"><i class="fa fa-trash-can"></i> Batch record deletion</a> |
124 |
|
125 |
</li> |
125 |
<div class="col-sm-4 col-md-4"> |
|
|
126 |
|
127 |
[% 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 ) %] |
128 |
<h3>Batch editing</h3> |
129 |
<ul class="buttons-list"> |
130 |
[% IF ( CAN_user_tools_items_batchmod ) %] |
131 |
<li> |
132 |
<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> |
133 |
</li> |
134 |
[% END %] |
135 |
[% IF ( CAN_user_tools_items_batchdel ) %] |
136 |
<li> |
137 |
<a class="circ-button" href="/cgi-bin/koha/tools/batchMod.pl?del=1"><i class="fa fa-trash-can"></i> Batch item deletion</a> |
138 |
</li> |
139 |
[% END %] |
140 |
[% IF CAN_user_tools_records_batchmod %] |
141 |
<li> |
142 |
<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> |
143 |
</li> |
144 |
[% END %] |
145 |
[% IF CAN_user_tools_records_batchdel %] |
146 |
<li> |
147 |
<a class="circ-button" href="/cgi-bin/koha/tools/batch_delete_records.pl"><i class="fa fa-trash-can"></i> Batch record deletion</a> |
148 |
</li> |
149 |
[% END %] |
150 |
|
151 |
[% IF ( CAN_user_tools_marc_modification_templates ) %] |
152 |
<li> |
153 |
<a class="circ-button" href="/cgi-bin/koha/tools/marc_modification_templates.pl"><i class="fa fa-gear"></i> MARC modification templates</a> |
154 |
</li> |
155 |
[% END %] |
156 |
</ul> |
157 |
[% END %] |
126 |
[% END %] |
158 |
|
127 |
|
159 |
[% IF ( CAN_user_tools_items_batchmod || ( CAN_user_stockrotation_manage_rotas && Koha.Preference('StockRotation') ) ) %] |
128 |
[% IF ( CAN_user_tools_marc_modification_templates ) %] |
160 |
<h3>Automation</h3> |
129 |
<li> |
161 |
<ul class="buttons-list"> |
130 |
<a class="circ-button" href="/cgi-bin/koha/tools/marc_modification_templates.pl"><i class="fa fa-gear"></i> MARC modification templates</a> |
162 |
[% IF ( CAN_user_tools_items_batchmod ) %] |
131 |
</li> |
163 |
<li> |
|
|
164 |
<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> |
165 |
</li> |
166 |
[% END %] |
167 |
[% IF ( CAN_user_stockrotation_manage_rotas && Koha.Preference('StockRotation') ) %] |
168 |
<li> |
169 |
<a class="circ-button" href="/cgi-bin/koha/tools/stockrotation.pl"><i class="fa-solid fa-rotate"></i> Stock rotation</a> |
170 |
</li> |
171 |
[% END %] |
172 |
</ul> |
173 |
[% END %] |
132 |
[% END %] |
|
|
133 |
</ul> |
134 |
[% END %] |
174 |
|
135 |
|
175 |
</div> |
136 |
[% IF ( CAN_user_tools_items_batchmod || ( CAN_user_stockrotation_manage_rotas && Koha.Preference('StockRotation') ) ) %] |
176 |
|
137 |
<h3>Automation</h3> |
177 |
<div class="col-sm-4 col-md-4"> |
138 |
<ul class="buttons-list"> |
|
|
139 |
[% IF ( CAN_user_tools_items_batchmod ) %] |
140 |
<li> |
141 |
<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> |
142 |
</li> |
143 |
[% END %] |
144 |
[% IF ( CAN_user_stockrotation_manage_rotas && Koha.Preference('StockRotation') ) %] |
145 |
<li> |
146 |
<a class="circ-button" href="/cgi-bin/koha/tools/stockrotation.pl"><i class="fa-solid fa-rotate"></i> Stock rotation</a> |
147 |
</li> |
148 |
[% END %] |
149 |
</ul> |
150 |
[% END %] |
178 |
|
151 |
|
179 |
[% IF ( CAN_user_tools_label_creator || CAN_user_tools_upload_local_cover_images ) %] |
152 |
</div> |
180 |
<h3>Tools</h3> |
|
|
181 |
<ul class="buttons-list"> |
182 |
[% IF ( CAN_user_tools_label_creator ) %] |
183 |
<li> |
184 |
<a class="circ-button" href="/cgi-bin/koha/labels/label-home.pl"><i class="fa fa-hashtag"></i> Label creator</a> |
185 |
</li> |
186 |
|
153 |
|
187 |
<li> |
154 |
<div class="col-sm-4 col-md-4"> |
188 |
<a class="circ-button" href="/cgi-bin/koha/labels/barcode-print.pl"><i class="fa fa-barcode"></i> Barcode image generator</a> |
|
|
189 |
</li> |
190 |
|
155 |
|
191 |
<li> |
156 |
[% IF ( CAN_user_tools_label_creator || CAN_user_tools_upload_local_cover_images ) %] |
192 |
<a class="circ-button" href="/cgi-bin/koha/labels/spinelabel-home.pl"><i class="fa fa-hashtag"></i> Quick spine label creator</a> |
157 |
<h3>Tools</h3> |
193 |
</li> |
158 |
<ul class="buttons-list"> |
194 |
[% END %] |
159 |
[% IF ( CAN_user_tools_label_creator ) %] |
|
|
160 |
<li> |
161 |
<a class="circ-button" href="/cgi-bin/koha/labels/label-home.pl"><i class="fa fa-hashtag"></i> Label creator</a> |
162 |
</li> |
195 |
|
163 |
|
196 |
[% IF ( CAN_user_tools_upload_local_cover_images ) %] |
164 |
<li> |
197 |
<li> |
165 |
<a class="circ-button" href="/cgi-bin/koha/labels/barcode-print.pl"><i class="fa fa-barcode"></i> Barcode image generator</a> |
198 |
<a class="circ-button" href="/cgi-bin/koha/tools/upload-cover-image.pl"><i class="fa fa-upload"></i> Upload local cover image</a> |
166 |
</li> |
199 |
</li> |
|
|
200 |
[% END %] |
201 |
|
167 |
|
202 |
</ul> |
168 |
<li> |
|
|
169 |
<a class="circ-button" href="/cgi-bin/koha/labels/spinelabel-home.pl"><i class="fa fa-hashtag"></i> Quick spine label creator</a> |
170 |
</li> |
203 |
[% END %] |
171 |
[% END %] |
204 |
|
172 |
|
205 |
[% IF ( CAN_user_parameters ) %] |
173 |
[% IF ( CAN_user_tools_upload_local_cover_images ) %] |
206 |
<h3>Administration</h3> |
174 |
<li> |
207 |
<ul class="buttons-list"> |
175 |
<a class="circ-button" href="/cgi-bin/koha/tools/upload-cover-image.pl"><i class="fa fa-upload"></i> Upload local cover image</a> |
208 |
[% IF ( CAN_user_parameters_manage_sysprefs ) %] |
176 |
</li> |
209 |
<li> |
|
|
210 |
<a class="circ-button" href="/cgi-bin/koha/admin/preferences.pl?tab=cataloguing"><i class="fa fa-tasks"></i> Preferences</a> |
211 |
</li> |
212 |
[% END %] |
213 |
<li> |
214 |
<a class="circ-button" href="/cgi-bin/koha/admin/admin-home.pl"><i class="fa fa-cogs"></i> Configuration</a> |
215 |
</li> |
216 |
</ul> |
217 |
[% END %] |
177 |
[% END %] |
218 |
|
178 |
|
219 |
</div> |
179 |
</ul> |
220 |
</div> |
180 |
[% END %] |
|
|
181 |
|
182 |
[% IF ( CAN_user_parameters ) %] |
183 |
<h3>Administration</h3> |
184 |
<ul class="buttons-list"> |
185 |
[% IF ( CAN_user_parameters_manage_sysprefs ) %] |
186 |
<li> |
187 |
<a class="circ-button" href="/cgi-bin/koha/admin/preferences.pl?tab=cataloguing"><i class="fa fa-tasks"></i> Preferences</a> |
188 |
</li> |
189 |
[% END %] |
190 |
<li> |
191 |
<a class="circ-button" href="/cgi-bin/koha/admin/admin-home.pl"><i class="fa fa-cogs"></i> Configuration</a> |
192 |
</li> |
193 |
</ul> |
194 |
[% END %] |
221 |
|
195 |
|
222 |
[%- SET StaffCataloguingHome = AdditionalContents.get( location => "StaffCataloguingHome", lang => lang, library => logged_in_user.branchcode ) -%] |
|
|
223 |
[%- FOREACH block IN StaffCataloguingHome.content -%] |
224 |
<div class="page-section"> |
225 |
[%- block.content | $raw -%] |
226 |
</div> |
196 |
</div> |
227 |
[%- END -%] |
197 |
[% END %] <!-- module_langing_page_content --> |
228 |
|
198 |
|
|
|
199 |
[%- SET StaffCataloguingHome = AdditionalContents.get( location => "StaffCataloguingHome", lang => lang, library => logged_in_user.branchcode ) -%] |
200 |
[%- FOREACH block IN StaffCataloguingHome.content -%] |
201 |
<div class="page-section"> |
202 |
[%- block.content | $raw -%] |
229 |
</div> |
203 |
</div> |
230 |
</div> |
204 |
[%- END -%] |
|
|
205 |
[% END %] <!-- module_langing_page --> |
231 |
|
206 |
|
232 |
[% MACRO jsinclude BLOCK %] |
207 |
[% MACRO jsinclude BLOCK %] |
233 |
<script> |
208 |
<script> |
234 |
- |
|
|