User Tools

Site Tools


en:user_advanced:web_editor

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
en:user_advanced:web_editor [2016/06/23 06:52] – [Using the web editor to insert a document into a hierarchy created by a hierarchical classifier] anupamaen:user_advanced:web_editor [2016/11/07 01:07] kjdon
Line 1: Line 1:
-======  Using Greenstone 3's Web Editor ====== +======  Online Document Editing in Greenstone 3 ======
-The following instructions are by Georgy Litvinov. +
  
-**Requirements:** Greenstone3 installationcollection to test it on.+Greenstone 3 allows you to edit the content and metadata of documents online in web browser. This functionality is available to logged-in users who have been assigned to either the "all-collections-editor" groupor the "collname-collection-editor" group, where collname is the short identifier of the collection (its folder name in the collect folder).
  
- 1. Run the Greenstone 3 server (gs3-server) and visit your digital library home page in the browser. If you have installed Greenstone 3 on your PC, the URL to visit would be ''http://localhost:8383/greenstone3/library'' or ''http://127.0.0.1:8383/greenstone3/library'' 
  
- 2. You need to be logged in to edit your collection. To do so when using the default Greenstone 3 library interface, you'd click the ''Login'' button at the top right of the home page. (For the half-tone interface, click on the down arrow at the bottom of the home page to View More options, and then follow the Login link). Use the username and password you created during installation. The default is admin for both. If you haven't change the defaults, you can do so by running ''ant config-admin'' from the command line.+  - Run the Greenstone 3 server (gs3-server) and visit your digital library home page in the browser. If you have installed Greenstone 3 on your PC, the URL to visit would be ''http://localhost:8383/greenstone3/library'' or ''http://127.0.0.1:8383/greenstone3/library''
  
- 3. You need to enable the document edit mode. To do so, click on the button with your account name at the top right of the page (where the Login button was). From the drop-down list, choose ''Enable edit mode''.+  - You need to be logged in to edit your collection. To do so when using the default Greenstone library interface, you'd click the ''Login'' button at the top right of the home page(For the half-tone interface, click on the down arrow at the bottom of the home page to View More options, and then follow the Login link). Use the username and password you created during installation. The default is admin for both. If you haven't change the defaults, you can do so by running ''ant config-admin'' from the command line. 
 + 
 +  - You need to enable the document edit mode. To do so, click on the button with your account name at the top right of the page (where the Login button was). From the drop-down list, choose ''Enable edit mode''.
  
  4. Open the document you wish to edit. You can do this by using Search or to locate your document, or you can simply open the document after Browsing to it with a collection classifier.  4. Open the document you wish to edit. You can do this by using Search or to locate your document, or you can simply open the document after Browsing to it with a collection classifier.
Line 20: Line 20:
  8. If you want to add new metadata, fill in the field underneath the metadata table with a new metadata name and click on the button ''Add new metadata''. Your new metadata entry will appear at the end of the metadata table. Then enter a value for your new metadata entry.  8. If you want to add new metadata, fill in the field underneath the metadata table with a new metadata name and click on the button ''Add new metadata''. Your new metadata entry will appear at the end of the metadata table. Then enter a value for your new metadata entry.
  
- 9. If your collection uses a **hierarchy classifier**, you can use the web editor to assign each document to a position in the hierarchy you've already defined in the hierarchy classifier's hfile. 
- 
-To add a document to the hierarchy classifier, you need to add a metadata entry just as you did in step 8 above, but with the metadata name set to the ''metadata'' option configured for the hierarchy classifier. For instance, if you built your hierarchy classifier with the metadata option set to dc.Creator, then you'd use the web editor to Add New Metadata with name ''dc.Creator'' for the document. 
- 
-To choose the hierarchy position that you want to assign to your document, click on the value cell for the new metadata field added. To the right of the metadata table, you will then see a flyout menu appear from which you can select the hierarchy position. You can also manually enter the hierarchy position as the metadata value (e.g. ''2.3''). In that case, you will see all the matching suggestions for that hierarchical position from which you can choose. A more detailed example follows below. 
  
 10. To save your changes, just click on the ''Save and Rebuild'' button and wait for the build to complete. 10. To save your changes, just click on the ''Save and Rebuild'' button and wait for the build to complete.
Line 31: Line 26:
 ==== Using the web editor to insert a document into a hierarchy created by a hierarchical classifier ==== ==== Using the web editor to insert a document into a hierarchy created by a hierarchical classifier ====
  
 + 9. If your collection uses a **hierarchy classifier**, you can use the web editor to assign each document to a position in the hierarchy you've already defined in the hierarchy classifier's hfile.
 +
 +To add a document to the hierarchy classifier, you need to add a metadata entry just as you did in step 8 above, but with the metadata name set to the ''metadata'' option configured for the hierarchy classifier. For instance, if you built your hierarchy classifier with the metadata option set to dc.Creator, then you'd use the web editor to Add New Metadata with name ''dc.Creator'' for the document.
 +
 +To choose the hierarchy position that you want to assign to your document, click on the value cell for the new metadata field added. To the right of the metadata table, you will then see a flyout menu appear from which you can select the hierarchy position. You can also manually enter the hierarchy position as the metadata value (e.g. ''2.3''). In that case, you will see all the matching suggestions for that hierarchical position from which you can choose. A more detailed example follows below.
 +  - Ordered List Item
 1. Let's take the lucene-jdbm-demo collection as an example. Its ''etc/collectionConfig.xml'' file contains the following: 1. Let's take the lucene-jdbm-demo collection as an example. Its ''etc/collectionConfig.xml'' file contains the following:
  
en/user_advanced/web_editor.txt · Last modified: 2023/03/13 01:46 by 127.0.0.1