[636] | 1 | == Requirements == |
---|
| 2 | |
---|
[1596] | 3 | 1. BASE 3.2 or later. |
---|
[636] | 4 | |
---|
| 5 | == Introduction == |
---|
| 6 | |
---|
[683] | 7 | This package contains a few simple variants of ''Hello world'' applications |
---|
| 8 | in the form of extensions to the BASE web client. The package installs |
---|
| 9 | several examples into the ''Extensions -> Hello world examples'' menu: |
---|
[636] | 10 | |
---|
[683] | 11 | * Hello world! - A basic example using only javascript |
---|
| 12 | * Hello factory world! - An example that uses a custom action factory |
---|
| 13 | * Greetings Root! - An example of a custom action factory with parameters |
---|
| 14 | * Hello JSP world! - Uses a JSP file to display the message instead of javascript |
---|
| 15 | * Hello X-JSP world! - Another variant of a JSP file |
---|
| 16 | * Hello Servlet world! - Uses a servlet to generate the message |
---|
[1150] | 17 | * Hello Servlet world (alternate)! - Uses an alternative servlet path |
---|
[636] | 18 | |
---|
[1019] | 19 | There are also a few toolbar button extensions: |
---|
| 20 | |
---|
| 21 | * More info - A toolbar button on all single-item toolbars and |
---|
| 22 | displays some information in a popup window about the current item. |
---|
| 23 | * Annotation filter - A toolbar button on all list pages for annotatable |
---|
| 24 | items which allows a user to show only items with/without annotations. |
---|
| 25 | |
---|
[1269] | 26 | And a edit/save extension: |
---|
| 27 | |
---|
| 28 | * Sample history data - Two extensions that works together. The first adds |
---|
| 29 | a tab to the "Edit sample" dialog were the user can select a file to link |
---|
| 30 | with the sample. The second extensions attaches to the save event and |
---|
| 31 | saves the link. |
---|
[1271] | 32 | * Last updated by - An on-save extension that creates an any-to-any link |
---|
| 33 | between any item and the currently logged in user. This is a very simple |
---|
| 34 | logging feature that stores information about the last update to an item. |
---|
[1269] | 35 | |
---|
[1596] | 36 | And some extra list columns: |
---|
| 37 | |
---|
| 38 | * Owner registration date - Adds a list column that display the registration |
---|
| 39 | date of the owner of the item. The column is added to all list pages that |
---|
| 40 | list items that have an owner. |
---|
| 41 | * Onwer email - Adds a list column that display the email address of the |
---|
| 42 | owner of the item. This uses a custom formatter to create mailto links |
---|
| 43 | on the web page and a formatter that convert to upper case when exporting. |
---|
| 44 | The column is added to all list pages that list items that have an owner. |
---|
| 45 | * Data files - Adds a column to the raw bioassay list that display the |
---|
| 46 | data files that are attached to each raw bioassay. This uses a custom |
---|
| 47 | action factory and illustrates the possibility to create fullblown HTML |
---|
| 48 | for the web page, and a text-only variant for the table exporter. |
---|
| 49 | |
---|
[1347] | 50 | This package contains the following plug-ins: |
---|
| 51 | |
---|
| 52 | * An importer that pretends to be able to import samples. It will |
---|
| 53 | accept any file, but doesn't do anything. Main purpose is to |
---|
| 54 | show parameter handling with plug-ins. |
---|
| 55 | * An analyser plug-in that does some bogus calculations on a |
---|
| 56 | bioassay set. Main purpose is to show how a plug-in can access |
---|
| 57 | analysed data, do some calculations and store the result as |
---|
| 58 | a new bioassay set. |
---|
| 59 | |
---|
| 60 | |
---|
[636] | 61 | == Installation == |
---|
| 62 | |
---|
[1392] | 63 | 1. Download the base-examples-*.tar.gz file. |
---|
| 64 | 2. Unpack the downloaded file to a directory of your choice. |
---|
| 65 | 3. Copy the 'base-examples.jar' file to your BASE plug-ins directory |
---|
| 66 | as configured in the base.config[plugins.dir] setting. |
---|
| 67 | 4. Go to 'Administrate->Plug-ins & Extensions->Overview' page. |
---|
| 68 | 5. Run the installation wizard and select to install 'base-examples.jar'. |
---|
| 69 | 6. The ''Hello X-JSP world'' example requires that the X-JSP compiler is installed |
---|
[683] | 70 | on the server. Read in the documentation how to do this. |
---|
[1433] | 71 | http://base.thep.lu.se/chrome/site/latest/html/admin/plugins.installation.html |
---|
[1392] | 72 | 7. Done. You may have to use 'BASE->Reload permissions' from the menu to see the |
---|
| 73 | 'Extensions' menu. |
---|
[636] | 74 | |
---|
[1392] | 75 | |
---|
[636] | 76 | == Compiling == |
---|
| 77 | |
---|
| 78 | To compile this package you also need: |
---|
| 79 | |
---|
[1433] | 80 | 1. Ant 1.8 |
---|
[636] | 81 | 2. Java 1.6 |
---|
| 82 | |
---|
| 83 | Follow these instructions: |
---|
| 84 | |
---|
[691] | 85 | 1. Type `ant download-lib` to automatically download the BASE core JAR file that |
---|
| 86 | are neeed for compilation. You can also do this manually by copying the |
---|
[1537] | 87 | base-core-3.1.0.jar and base-webclient-3.1.0.jar files from the BASE installation |
---|
[1346] | 88 | directory (<basedir>/www/WEB-INF/lib/) to the ./lib/compile directory. |
---|
[636] | 89 | |
---|
[1392] | 90 | 2. Type 'ant' to compile the code and generate the 'base-examples.jar' |
---|
[1094] | 91 | file in the project directory. This file can be installed into BASE following |
---|
| 92 | the intructions above. |
---|
| 93 | |
---|
[1346] | 94 | 3. Use 'ant package' to create a downloadable tar.gz. |
---|
| 95 | |
---|
| 96 | 4. If you create a file called 'build.properties' and enter a the path to the |
---|
| 97 | plug-ins directory under the key 'base.plugins', you can simply type |
---|
| 98 | 'ant install' to copy the examples to the BASE plug-ins directory. |
---|