Bug 6419: Add StaffAuthoritiesHome block to additional contents
This patch adds a new `StaffAuthoritiesHome` block to the HTML Customisations options. This allows for the addition of a block of content in a page-section at the bottom of the authorities home page. Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
fe04bbf462
commit
4ad4677c70
|
|
@ -2,7 +2,7 @@ $DBversion = 'XXX'; # will be replaced by the RM
|
|||
if( CheckVersion( $DBversion ) ) {
|
||||
# you can use $dbh here like:
|
||||
$dbh->do(q{
|
||||
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('IntranetAuthoritiesHomeHTML', '', 'Show the following HTML in a div on the bottom of the authorities home page', NULL, 'Free'), ('IntranetCatalogingHomeHTML', '', 'Show the following HTML in a div on the bottom of the cataloging home page', NULL, 'Free'), ('IntranetListsHomeHTML', '', 'Show the following HTML in a div on the bottom of the lists home page', NULL, 'Free'), ('IntranetPatronsHomeHTML', '', 'Show the following HTML in a div on the bottom of the patrons home page', NULL, 'Free'), ('IntranetPOSHomeHTML', '', 'Show the following HTML in a div on the bottom of the point of sale home page', NULL, 'Free'), ('IntranetSerialsHomeHTML', '', 'Show the following HTML in a div on the bottom of the serials home page', NULL, 'Free')});
|
||||
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('IntranetCatalogingHomeHTML', '', 'Show the following HTML in a div on the bottom of the cataloging home page', NULL, 'Free'), ('IntranetListsHomeHTML', '', 'Show the following HTML in a div on the bottom of the lists home page', NULL, 'Free'), ('IntranetPatronsHomeHTML', '', 'Show the following HTML in a div on the bottom of the patrons home page', NULL, 'Free'), ('IntranetPOSHomeHTML', '', 'Show the following HTML in a div on the bottom of the point of sale home page', NULL, 'Free'), ('IntranetSerialsHomeHTML', '', 'Show the following HTML in a div on the bottom of the serials home page', NULL, 'Free')});
|
||||
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 6419 - Add customizable areas to intranet start pages)\n";
|
||||
|
|
|
|||
|
|
@ -307,7 +307,6 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
|
|||
('IndependentBranchesPatronModifications','0', NULL, 'Show only modification request for the logged in branch','YesNo'),
|
||||
('IndependentBranchesTransfers','0', NULL, 'Allow non-superlibrarians to transfer items between libraries','YesNo'),
|
||||
('IntranetAddMastheadLibraryPulldown','0', NULL, 'Add a library select pulldown menu on the staff header search','YesNo'),
|
||||
('IntranetAuthoritiesHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the authorities home page', 'Free'),
|
||||
('IntranetCatalogingHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the cataloging home page', 'Free'),
|
||||
('IntranetCatalogSearchPulldown','0', NULL, 'Show a search field pulldown for \"Search the catalog\" boxes','YesNo'),
|
||||
('OnSiteCheckouts','0','','Enable/Disable the on-site checkouts feature','YesNo'),
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
[% USE Price %]
|
||||
[% USE Branches %]
|
||||
[% USE TablesSettings %]
|
||||
[% USE Koha %]
|
||||
[% SET footerjs = 1 %]
|
||||
[% PROCESS 'i18n.inc' %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
|
|
|
|||
|
|
@ -107,12 +107,6 @@ Staff interface:
|
|||
- pref: SlipCSS
|
||||
class: url
|
||||
- on Issue and Hold Slips. (This should be a complete URL, starting with <code>http://</code>.)
|
||||
-
|
||||
- "Show the following HTML in its own div on the bottom of the home page of the authorities module:"
|
||||
- pref: IntranetAuthoritiesHomeHTML
|
||||
type: textarea
|
||||
syntax: text/html
|
||||
class: code
|
||||
-
|
||||
- "Show the following HTML in its own div on the bottom of the home page of the cataloguing module:"
|
||||
- pref: IntranetCatalogingHomeHTML
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
[% USE raw %]
|
||||
[% PROCESS 'i18n.inc' %]
|
||||
[% USE Koha %]
|
||||
[% USE AdditionalContents %]
|
||||
[% SET footerjs = 1 %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>[% FILTER collapse %]
|
||||
|
|
@ -28,18 +29,19 @@
|
|||
<div class="col-md-8 col-md-offset-2">
|
||||
[% INCLUDE 'authorities-toolbar.inc' %]
|
||||
|
||||
[% INCLUDE 'authorities-toolbar.inc' %]
|
||||
<h1>Authorities</h1>
|
||||
|
||||
<h1>Authorities</h1>
|
||||
<div id="merge_in_progress" class="page-section bg-info" style="display:none;"></div>
|
||||
|
||||
<div id="merge_in_progress" class="page-section bg-info" style="display:none;"></div>
|
||||
[%- SET StaffAuthoritiesHome = AdditionalContents.get( location => "StaffAuthoritiesHome", lang => lang, library => logged_in_user.branchcode ) -%]
|
||||
[%- FOREACH block IN StaffAuthoritiesHome.content -%]
|
||||
<div class="page-section">
|
||||
[%- block.content | $raw -%]
|
||||
</div>
|
||||
[%- END -%]
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" id="intranet-authorities-home-html">
|
||||
[% Koha.Preference('IntranetAuthoritiesHomeHTML') | $raw %]
|
||||
</div>
|
||||
|
||||
[% MACRO jsinclude BLOCK %]
|
||||
[% INCLUDE 'authorities_js.inc' %]
|
||||
[% END %]
|
||||
|
|
|
|||
|
|
@ -523,7 +523,7 @@
|
|||
[% END %]
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
[% SET available_options = [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote', 'OpacLibraryInfo', 'CatalogConcernHelp', 'CatalogConcernTemplate', 'CookieConsentBar', 'CookieConsentPopup', 'StaffAcquisitionsHome' ] %]
|
||||
[% SET available_options = [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote', 'OpacLibraryInfo', 'CatalogConcernHelp', 'CatalogConcernTemplate', 'CookieConsentBar', 'CookieConsentPopup', 'StaffAcquisitionsHome', 'StaffAuthoritiesHome' ] %]
|
||||
[% FOREACH l IN available_options.sort %]
|
||||
[% IF l == location %]
|
||||
<option value="[% l | html %]" selected="selected">[% l | html %]</option>
|
||||
|
|
|
|||
Loading…
Reference in New Issue