User Tools

Site Tools


newdevs:code:add-library-setting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
newdevs:code:add-library-setting [2023/02/03 16:26] – created jventuronewdevs:code:add-library-setting [2025/03/17 17:43] (current) tmccanna
Line 2: Line 2:
 ====== Adding a Library Setting ====== ====== Adding a Library Setting ======
  
-These instructions cover how to add a library setting to the database. The example is for adding a library setting that can be reference by the Hemlock app. Setting types are in config.org_unit_setting_type.\\+These instructions cover how to add a library setting to the database. The example is for adding a library setting that can be referenced by the Hemlock app. Setting types are in config.org_unit_setting_type.\\
 \\ \\
 To-dos:  To-dos: 
Line 10: Line 10:
 ===== 1. Determine the setting group and add one if necessary ===== ===== 1. Determine the setting group and add one if necessary =====
  
-Setting types are listed in the table config.settings_group. If none of the listed groups are appropriate, you can add one to the table like so:+Setting groups are listed in the table config.settings_group. If none of the listed groups are appropriate, you can add one to the table like so:
  
 <code> <code>
Line 59: Line 59:
 ('hemlock.events_calendar_url', 'Events calendar URL to display in the Hemlock app', 'hemlock', 'Direct link to library's events calendar for display in the Hemlock app.', 'string'); ('hemlock.events_calendar_url', 'Events calendar URL to display in the Hemlock app', 'hemlock', 'Direct link to library's events calendar for display in the Hemlock app.', 'string');
 </code> </code>
 +
 +You should now be able to add a new library setting via the GUI or via the actor.org_unit_setting table.
 +
 +===== Example =====
 +
 +This example adds two library settings to the database and references them in the OPAC: 
 +
 +  * [[https://git.evergreen-ils.org/?p=working/Evergreen.git;a=commit;h=175fd6e8d397a2cb01065e0c8790acc272b39b42|LP1906699 Move Google Analytics Config to Library Settings]]
 +
 +
 +
  
newdevs/code/add-library-setting.1675459579.txt.gz · Last modified: 2023/02/03 16:26 by jventuro

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.