LogoLogo
Modified Version by KVOriginal Source CodeContact
KV.2020-02-01
KV.2020-02-01
  • Overviews
  • Download
  • Contact
  • User Guides
    • Chemical Inventory
      • Database
        • Database Backup and Restore
        • Best Practice for SQL Users Backup
      • Chemicals
        • Search Chemicals
        • Add a single chemical
        • Import a list of chemicals
        • Edit Chemicals
        • Edit Multiple Chemical Containers
        • Move multiple chemical containers
        • Borrow and Return Chemicals
        • Delete a chemical container
        • Delete multiple chemical containers
      • Users
        • Create a New User
        • Create a Guest Account
        • Create Multiple Users
        • Change User Password
        • Modify User Permission, Information
        • Delete a User
        • Inactivate a User
      • Storages/Locations
      • Terminal Mode
        • Set Up a Terminal User
        • Borrow and Return Chemicals
        • Change Chemical Location
        • Get Information on a Chemical
        • Dispose of Chemicals
      • TODO
    • Electronic Lab Notebook
      • Getting Started with ELN
    • Barcode Scanner Settings
      • Taotronic Wireless Barcode Scanner
      • Honeywell MS9520 Barcode Scanner
  • Installation
    • CentOS 7
    • Mac OSX
    • Windows
    • Raspbian on Raspberry pi 3B
  • Advanced Settings
    • OE Settings
      • Turn On Import and Edit function for Chemical Containers
    • Useful SQL commands
    • Hosting Server Related
    • Resources for Setting Up New Server
    • Other Supporting Programs for OE
      • Find Missing SDS
      • Find Missing Structure
    • Docker Build
  • Change Logs
    • Versions
Powered by GitBook
On this page
  • Requirements
  • Overview
  • Instruction to turn on this function

Was this helpful?

Export as PDF
  1. Advanced Settings
  2. OE Settings

Turn On Import and Edit function for Chemical Containers

Add "Import and Edit" and "Import Only" options in the Settings menu for admin roles.

Requirements

  1. This for KV's OE version on or later than March, 12, 2020.

  2. You must have server access

Overview

"Import and Edit" option is similar to previous version of Import in which it allows admin users to import: chemical containers ("packages"), storages list, user list, and supplier offers. For chemical containers ("packages"), this function will check if the database has the chemicals based on provided barcode. If the barcode is not found, it will add new container. If the barcode is found, it will change the provided info for that container.

"Import Only": only allow importing of chemical containers AND it will NOT check for existing container.

Right now, this function will only turned on for MIT and Baylor University.

Instruction to turn on this function

  • To add your own institution, you need:

    1. Creating lib_customization.your-school-name.php with your-school-name is short or abbreviation of your school name. Use lib_customization.mit.php for an example

    2. Add the following line inside lib_customization.your-school-name.php after $default_g_settings["order_system"]="fundp";:

       /* Khoi: add customization identifier so that codes specific for your-school-name will be execute. Only change if you know what you are doing */
       $default_g_settings["customization"]="your-school-name";
    3. Modify lib_global_settings.php by:

      • Change this: define("customization",""); // Customization to use: f.e.: ".sample" for use of "lib_customization.sample.php", and "" for "lib_customization.php"

      • To: define("customization",".your-school-name"); // Customization to use: f.e.: ".sample" for use of "lib_customization.sample.php", and "" for "lib_customization.php". Notice there is a period (.) in front of "your-school-name".

    4. Modify sidenav.php by:

      • Right before this line: showSideLink(array("url" => "import_edit.php","text" => s("import_edit_tab_sep"), "target" => "mainpage", ));. On this line: if (in_array($g_settings["customization"], array("baylor", "mit"), true)) { add "your-school-name" (the same as "your-school-name" set in lib_customization.your-school-name.php) right at the end of the array list of institutions. For example:

        if (in_array($g_settings["customization"], array("baylor", "mit", "your-school-name", ), true)) {
PreviousOE SettingsNextUseful SQL commands

Last updated 5 years ago

Was this helpful?