Bugzilla – Attachment 140586 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: Restore ability to pick framework
Bug-31162-Restore-ability-to-pick-framework.patch (text/plain), 5.20 KB, created by
Martin Renvoize (ashimema)
on 2022-09-13 14:20:27 UTC
(
hide
)
Description:
Bug 31162: Restore ability to pick framework
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-09-13 14:20:27 UTC
Size:
5.20 KB
patch
obsolete
>From 7188e5421b4de5ea0ad3898d407a27d8f2651526 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 13 Sep 2022 15:17:57 +0100 >Subject: [PATCH] Bug 31162: Restore ability to pick framework > >This patch restores the ability to pick the framework via a dropdown on >the cataloguing home page. > >The CSS needs some work.. this is a proof of concept >--- > .../prog/css/src/staff-global.scss | 36 +++++++++++++++++++ > .../en/modules/cataloguing/cataloging-home.tt | 30 ++++++++++++---- > 2 files changed, 60 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >index 9a111db1eb..cd775f7f1e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >@@ -4456,6 +4456,42 @@ input.renew { > } > } > } >+ >+ button { >+ &.circ-button { >+ // Class used for each module link >+ background-color: #F4F8F9; >+ background-position: 5px 3px; >+ background-repeat: no-repeat; >+ border: 2px solid #B9D8D9; >+ border-radius: 6px; >+ box-sizing: content-box; >+ color: #000000; >+ display: block; >+ font-size: 110%; >+ font-weight: bold; >+ margin: .5em 0; >+ max-width: 260px; >+ padding: 8px; >+ text-decoration: none; >+ >+ &:hover { >+ // Class used for each module link hover state >+ border-color: #538200; >+ color: #538200; >+ } >+ } >+ } >+ >+ div { >+ &.btn-group { >+ button { >+ &.btn:first-child { >+ width: 238px; >+ } >+ } >+ } >+ } > } > } > >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 69d4c1ac75..80938efde4 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 >@@ -40,15 +40,33 @@ > </li> > [% END %] > <li> >- <a class="circ-button" href="/cgi-bin/koha/cataloguing/addbiblio.pl" class="btn btn-default"><i class="fa fa-plus"></i> Basic editor</a> >- </li> >+ <div class="btn-group"> >+ <button class="btn circ-button" id="newRecord"><i class="fa fa-plus"></i> New record</button> >+ <button class="btn circ-button dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> >+ <ul class="dropdown-menu"> >+ <li><a id="newRecordDefault" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=">Default framework</a></li> >+ [% FOREACH framework IN frameworks %] >+ <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=[% framework.frameworkcode | uri %]">[% framework.frameworktext | html %]</a></li> >+ [% END %] >+ </ul> >+ </div> >+ <li> > [% IF servers.count > 0 %] > <li> >- <a id="z3950search" class="circ-button" href="#" class="btn btn-default"><i class="fa fa-search"></i> Z39.50/SRU</a> >- </li> >- [% END %] >+ <div class="btn-group"> >+ <button class="btn circ-button" id="z3950search"><i class="fa fa-search"></i> New from Z39.50/SRU</button> >+ <button class="btn circ-button dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> >+ <ul class="dropdown-menu"> >+ <li id="Default" class="z3950searchFw"><a href="#">Default framework</a></li> >+ [% FOREACH framework IN frameworks %] >+ <li id="[% framework.frameworkcode | html %]" class="z3950searchFw"><a href="#">[% framework.frameworktext | html %]</a></li> >+ [% END %] >+ </ul> >+ </div> >+ </li> >+ [% END # /IF servers.count %] > </ul> >- [% END %] >+ [% END # /IF CAN_user_editcatalogue_edit_catalogue %] > > [% IF ( CAN_user_tools_stage_marc_import || CAN_user_tools_manage_staged_marc ) %] > <h3>Import</h3> >-- >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