Chapter 7. Document Library

Locating information is crucial to carrying out enterprise tasks successfully. Often, at times the delay, or lack of such information, causes communication problems between employees in the same organization. This is because they do not have easy access to the documents and the information that they need. Usually, there are paper and electronic documents and there is no single point that informs what is where.

Over time the number of documents keeps increasing. Not categorizing or classifying these documents does not help. Storage and indexing of these is important for the timely use and location of the documents.

Poor document management can lead to a significant loss of time.

Alfresco Share has a document library function to cater to the wide ranging document library capabilities. The Document Library page component enables you to store and collaboratively manage any content related to a site, such as documents, media files, and graphics.

By the end of this chapter you will have a clear idea of the following:

  • Creating and managing documents

  • Versioning

  • Tagging documents

  • Ways to access the document library

The Document Library page

When the user clicks on and opens the site page, the document library is a tab on the top navigation:

The Document Library page

Clicking on the Document Library tab opens up the document library page. This page allows the user to create content, upload content from the system, view recent, and user's own documents. The tags that have been used for the various documents in the library are listed too. Users can also see the document library structure, as per the access and permission they have. This document library structure is a tree like structure that lists the folders and the subfolders present:

The Document Library page

Creating folders and folder hierarchy

Users can also create folders and sub folders if they have the permission to do so. To create a folder, the user needs to click on the New Folder tab on top:

Creating folders and folder hierarchy

A new folder pop up page opens. Fill in the details for the new folder and click on Submit to create the folder.

The new folder is now listed in the document library's folder structure. To create/upload a document in a folder, select the folder and then either click on Create content or Upload.

To create a sub folder within a folder, click on the folder name and then select the Create folder button. The steps to create the sub folder are the same as when creating a folder. The new folder created will be placed within the folder that was selected.

Uploading files and creating documents

Content and information can be stored in the document library. This information can be stored in the library by creating the content in the Share interface, or by uploading a pre-existing content from the user's own system.

We shall first look at creating content in Share.

Creating content in the Document Library

To create content in the Share Document Library, click on the Create content tab at the top:

Creating content in the Document Library

Users can select the kind of content they want to create by selecting from the drop down. They can choose from plain text, HTML, and XML. For this example, we shall create plain text content. You can also create Google Docs spreadsheets, presentations, and documents.

  1. Select plain text from the drop down. This will open a page that allows users to create content.

  2. The following page opens up:

    Creating content in the Document Library
  3. Users are required to fill in the fields to create content. The only mandatory field on this page is Name. Users can create a blank content and come back later and fill in the rest of the fields. The Name does not support the following special characters: * " < > / . ? : and |. When the name contains a disallowed character the Create button is disabled.

  4. Click on Create to create the content. If you do not want to create the content, then click on Cancel:

    Creating content in the Document Library
  5. The page that comes up shows the various document details and a document preview.

The metadata associated with the document created are listed. Any changes to these can be done via the Edit Metadata action in the Document Action section.

The document tags, permissions, workflows, versions, and so on are all listed too. These can also be changed from the Documents Action section.

This content is currently in the root folder of the document library. You can also move, copy, and delete the document. Users can also manage permissions at the document level and assign the document to a workflow.

For all of the preceding actions, click on the checkbox beside the document name and select the document. This will make the Selected Items tab active. Clicking on the Selected Items tab will give a drop down list that lists the various actions that can be performed on a document.

To move the selected document to another folder, click on Move to. This will open a page that lists the folders and you can select the folder you want to move the document to:

Creating content in the Document Library

After selecting the folder where you want to move the document, click on the Move button to move the document or on Cancel to cancel the action:

Creating content in the Document Library

The document is now a part of the Product Promotions folder. Furthermore, the document inside the folders can have two kinds of views, simple and detailed view. These views can be seen by selecting from the folder views, as highlighted in the previous image.

The simple view gives an icon besides the document to indicate the type of document, MS Word, PDF, or any other. It also gives the details of the creator of the document and the date on which it was created. The detailed view gives a thumbnail image of the document. Besides the information in the simple view, the detailed view also informs of the version, size, document tags, and a description of the document.

The documents in a folder are listed in a paginated manner. Furthermore, on mouse over on a document, or on selecting a document, the various document actions available are listed.

Uploading Content in the Document Library

Content that already exists in the user's system can also be uploaded into the document library. Alfresco provides a built-in flash uploader. This requires installation of Adobe Flash player on your machine. If the flash player is not installed, then multi-file uploading is not possible and an HTML file uploader takes its place and lets you upload documents, one at a time.

  1. Click on the Upload tab in the document library, as follows:

    Uploading Content in the Document Library
  2. A new pop up window opens up which allows users to upload documents. Users can upload a single document or multiple documents:

    Uploading Content in the Document Library
  3. Click on the icon Uploading Content in the Document Library to upload existing file(s) from the system. Users can browse the system and locate the files to be uploaded, as shown in the following screenshot:
    Uploading Content in the Document Library
  4. Click on the Upload File(s) button to upload existing file(s) from the system.

  5. The document is now a part of the document library and is in the folder that was specified, as follows:

Uploading Content in the Document Library

Sorting Content in the Document Library

Alfresco provides a feature of sorting the content of the document library based on different sorting parameters:

Uploading Content in the Document Library

Some of the parameters for the sorting are name, popularity, description of the document, creator of the document, date of creation, size, and so on.

Document details page

The document details page gives all the relevant information about the document. This page gives a bird's eye view of the document, associated metadata and tags, permissions, discussions around the document via comments, various document actions that can be carried out, associated workflows, and version history.

This page has a flash previewer for previewing the document. The preview also allows for a custom zoomed view of the document.

Various document access URLs are also mentioned.

The metadata associated with the document are listed in the metadata section.

Users access the document based on the roles and permissions defined for the document in the Permissions section on the page:

Document details page

Comment on a document

Users that have the permissions to access the document can add their comments on the document.

  1. To add a comment, write your comment in the Add Comment section, as follows:

    Comment on a document
  2. Click on the Create Comment button.

  3. The comment is added in the list of comments on the page, as follows:

    Comment on a document
  4. The creator of the comment can also Edit or Delete the comment.

Permissions

Users can allow user permissions on a document based on their roles. By default, Alfresco Share has four roles in addition to an Everyone role. The various roles have been discussed in a previous chapter.

To manage permissions for these roles the user should click on Manage Permissions in Document Actions.

This will open the following pop up window:

Permissions

Users can click on the down arrow besides each role privilege and change the permissions. Click on Save to save the change:

Permissions

The new permission set will now reflect in the Permissions section.

Workflows

Workflows can be assigned at a document level in Alfresco Share. To manage workflows, click on Start Workflow in the Document Actions section. This will open a page where the user will be asked to select a workflow:

Workflows

Here, we see a list of workflows that are a part of the Share system. There are Adhoc, parallel, and serial workflows. For this example, we select the Adhoc workflow. This is essentially a single step approve or reject workflow:

Workflows

The message to be sent along with the workflow task needs to be put into the message section. The due date, if any, can be selected by clicking on the Workflowsicon and selecting a date. The task priority can be selected from an option of high, medium, or low from the drop down priority list.

The next step is to select an assignee for the task. Click on the Select button in the Assign To section. This opens up a new window, as follows:

Workflows

Search for and select the user. Click on OK to confirm the selection:

Workflows

Other documents and resources may be added to this by clicking on Add. Remove all, removes any document, and so on that has been included here.

Click on Notify me to get an e-mail, or any other such notification. Please note that to get an e-mail notification, the e-mail server must be configured and integrated with the Share system:

Workflows

Click on Start Workflow to start a workflow on the document. The workflow that the document has been assigned to will be added to the document details page now:

Workflows

Clicking on the workflow message will open the workflow details page, as follows:

Workflows

The workflow details page gives a summary of the workflow task. Any comments by the person that started the workflow and general information of the task are listed too. It also tells the user if notifications will be provided. The resources for the workflow task, history, and current tasks are also listed.

The user, if he/she is the creator of the workflow, has the option of cancelling the workflow by clicking on the Cancel Workflow button.

Workflows are detailed in another chapter in this book and, hence, not covered here.

Document actions

A number of actions are available for the user to do for a document. These are also listed in the Document Details page:

Document actions

The following table lists the document actions and the consequences. For each of the actions a new window opens which allows the user to carry out the desired task:

Document Actions

Consequence

Download

Click on Download to download the document onto your system.

View in Browser

Click on View in Browser to view the document in the browser.

Edit Properties

Document properties can be edited by clicking on this

Upload New Version

A new document version can be uploaded through Edit Properties.

Edit Offline

When you click on Edit Offline the document is downloaded on your system as a working copy and the document on Share is locked to prevent any editing.

The document actions that remain are Edit Metadata, Upload New Version, Inline Edit, Download, View in browser, View Original Document, Start Workflow, and Cancel Editing.

View Original Document lets users preview the original document. In this case users see the document action View Working Copy.

Copy to…

Copies the document to a specified location.

Move to…

Moves the document to a specified location.

Delete Document

Deletes the document upon confirmation.

Start Workflow

Starts a document workflow as per the user's selection.

Manage Permissions

Manages permissions based on the user's roles.

Manage Aspects

Aspects for the document can be managed from here.

Change Type

The content type can be changed by clicking on this. It will open up a window which will give a drop down list for the user to select the type from.

Publish

You can publish the document library content to various social media sites. Alfresco also has the provision for you to publicize this through posing messages on Facebook, Twitter, and LinkedIn.

Document versioning

Any document that is created or uploaded in the document library is versioned and, by default, is stored as version 1.0.

Clicking on a document name will open the Document Details page. On this page, the version history of the document is also maintained.

Managing versions can be done in the following two ways:

  1. Upload a new version of the document. This can be done from the Upload New Version action listed in Document Actions.

  2. Edit document and save the changed document as a new version.

Upload a new version

In the document details page, click on the Upload New Version action in the document actions listed.

This will open an Update File pop up window, as follows:

Upload a new version

Once the file has been selected, choose whether the new version has minor or major changes and the versioning will be carried out in the Share system accordingly. Click on Upload File(s).

Users can also add their comments for added information on the updated file.

The Document Details page of the updated document opens up. The version number of the document is now updated in the version history:

Upload a new version

Updating a new version after editing

The users can also update the version when they have edited and updated a document. They can make the changes to the document and save it. They need to specify if the change is a minor one or a major change.

Alfresco provides intelligent editing features. Inline editing is available only for content that is created in Alfresco. For content such as MS Word, editing can be done online or offline. For content such as PDFs only offline editing is available.

Inline editing

Users can choose to edit a document inline by opening a document in a WYSIWYG editor. The document can also be edited offline by downloading it on to the user's system and then editing it.

Click on Inline Edit in Document Actions. This opens the document in the Inline Edit page:

Inline editing

Make the required changes and save the document by clicking on Save. Now in the Document Details page, the version history lists the new version, as follows:

Inline editing

Online edit

SharePoint Protocol needs to be configured to enable this feature. However, it is important to note that there is a known issue with Office 2003 and 2007. The documents open as read-only in Internet Explorer for all versions before Vista SP1.

Furthermore, to use online edit in Windows 7, you must set BasicAuthLevel in the registry. Basic authentication is disabled in Office 2010. To enable it, you must create, or edit, the following registry key:

HKCUSoftwareMicrosoftOffice14.0CommonInternet: BasicAuthLevel=2.

Kerberos authentication can also be used. Set the vti.server.external.host and vti.server.external.port properties in the alfresco-global.properties file. This will set the values to the externally resolvable host and port name that SharePoint clients will communicate with. These properties default to the host machine's local name and port 7070, respectively. Share will use these to generate the Edit Online link. The document is opened using the SharePoint module.

Enabling the Online Edit option allows you to bypass the tasks of downloading the item to your computer and then updating the repository version with the changes. Navigate to the space containing the content item you want to make changes to, they are as follows:

  1. Click the icon Online edit to edit the item online. Once this is clicked, the item is locked to prevent others from making changes to the item at the same time. It is locked by you.
  2. An online editor opens up. This now displays the content you have selected to edit. It is a working copy of the content.

  3. Edit the document. Click on Save to save the changes you have made.

  4. At any time, you can click the Online editicon. This cancels the editing task and unlocks the item without saving any changes that may have been made.

    The working copy of the item displays the updated timestamp. You can leave the item locked if you plan to work on it again, or you can unlock it so that it is available to other users.

  5. Click the Online edit icon once you are done editing. This will unlock the document and add the updates to the repository.

Offline editing

Click on Edit Offline in Document Actions to edit the document offline. This creates a working copy of the document and locks the document for editing by any other user until the editing is done:

Offline editing

Download the document to a desired location and then edit the document. The document actions that can be performed include uploading the new version, view original version, view in browser, assign workflow, and so on. The user can also cancel the editing:

Offline editing

Once the document has been edited, users can click on Upload New Version to upload the updated document. Click on Upload File(s) to upload the revised document. Users can add their comments to add more information, as shown in the following screenshot:

Offline editing

This is, again, reflected in the version history in the Document Details page.

Thumbnails and universal viewing with web previews

The documents in the library are listed in the library. Each document has a thumbnail, or an icon, besides its name and description depending on the folder view that is selected. In the simple view, the icons represent the type of document, PDF, Word, and so on.

In the detailed view, every document has a thumbnail beside it, as follows:

Thumbnails and universal viewing with web previews

If a document has an active workflow associated, an icon is displayed besides the thumbnail to represent this. Similarly, if external information about an image is available, it is represented by an icon beside the image icon.

Clicking on the View in Browser action in the Documents action, or on the actions that appear besides the document on move over, opens the document in the browser.

Tagging documents

To tag documents, click on Edit Metadata in the Document Actions section. This will open a window where metadata can be edited and tags can be added:

Tagging documents

To add tags, click on the Select button, as shown in the following screenshot:

Tagging documents

This will attach the tags selected with the document. Now, the tags will appear listed in the Document Details page:

Tagging documents

Search for documents

Searching for documents is efficiently carried out by the Lucene search engine, which powers the search in Alfresco. The search results display the term that was searched for not only in the file/document name, but also if the term is within the document:

Search for documents

The search is carried out through the system and the search results are displayed in a paginated manner. The search results can be sorted based on the current site, all sites or the entire repository by selecting from the tabs on top:

Search for documents

The search results can be sorted based on various parameters such as relevance, name, author, created, size, and so on.

Accessing the Repository

Click on the Repository button on the top navigation bar to access the repository, as shown in the following screenshot:

Accessing the Repository

The document library of the site can be accessed by going in to the Sites folder and selecting the relevant site. Clicking on the document Library thereafter will allow users access to the folders and documents of the site's document library.

Summary

As seen in this chapter, the document library in Share is an easy to use feature which has many benefits for the teams collaborating on various tasks. The features of tagging enable a better search. Workflows, permission, and aspects can be easily managed through the document actions available.

The next chapter is on implementing workflows in Alfresco Share. Here we shall learn how the documents, and other content, are put through the workflow and the various options available to use.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.245.167