source: trunk/doc/src/docbook/userdoc/file_system.xml @ 5362

Last change on this file since 5362 was 5362, checked in by Nicklas Nordborg, 13 years ago

References #1485: File items should be able to reference external files

Added support for registering server and client certificates to a FileServer? item. This means that there is almost no reason to do this globally on the server.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 37.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE chapter PUBLIC
3    "-//Dawid Weiss//DTD DocBook V3.1-Based Extension for XML and graphics inclusion//EN"
4    "../../../../lib/docbook/preprocess/dweiss-docbook-extensions.dtd">
5<!--
6  $Id: file_system.xml 5362 2010-06-16 12:28:36Z nicklas $
7 
8  Copyright (C) 2007 Peter Johansson, Nicklas Nordborg, Martin Svensson
9 
10  This file is part of BASE - BioArray Software Environment.
11  Available at http://base.thep.lu.se/
12 
13  BASE is free software; you can redistribute it and/or
14  modify it under the terms of the GNU General Public License
15  as published by the Free Software Foundation; either version 3
16  of the License, or (at your option) any later version.
17 
18  BASE is distributed in the hope that it will be useful,
19  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  GNU General Public License for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with BASE. If not, see <http://www.gnu.org/licenses/>.
25-->
26
27<chapter id="file_system">
28  <?dbhtml dir="filesystem"?>
29  <title>File management</title>
30  <sect1 id="file_system.system">
31    <title>File system</title>
32    <para>
33      Files in BASE are managed from the page at
34      <menuchoice>
35        <guimenu>View</guimenu>
36        <guimenuitem>Files</guimenuitem>
37      </menuchoice>. The basic layout on the page is the same as for all the other list pages
38      in BASE but
39      there are some differences e.g. there is a navigation tree to the left, used to browse
40      the directory structure, and there are some buttons in the toolbar, that are special for
41      files and directories. The figure below is a representation of the files and
42      directories-page and is followed with a short description to some of the special
43      functions.
44    </para>
45    <figure id="file.system.figures.filepage">
46      <title>The file page</title>
47      <screenshot>
48        <mediaobject>
49          <imageobject>
50            <imagedata fileref="figures/filepage.png" format="PNG" 
51            scalefit="1" width="100%" />
52          </imageobject>
53        </mediaobject>
54      </screenshot>
55    </figure>
56    <variablelist>
57      <varlistentry>
58        <term>
59          <interface>1. Home directory for current user</interface>
60        </term>
61        <listitem>
62          <para>
63            This is the logged in user's home directory with sub directories. It is
64            visible if the current user has a home directory and is then always located at
65            the top of the navigation tree. More about this can be read in
66            <xref linkend="file_system.system.browse.tree.home" />.
67            Click on a directory to display it's contents to the right
68            or click on the plus sign to expand the directory and view the
69            sub directories (no plus sign = no sub directories).
70          </para>
71        </listitem>
72      </varlistentry>
73
74      <varlistentry>
75        <term>
76          <interface>2. Other users</interface>
77        </term>
78        <listitem>
79          <para>
80            The other users' home directories that the current user has permission
81            to read are listed here, including his/her own.
82          </para>
83        </listitem>
84      </varlistentry>
85
86      <varlistentry>
87        <term>
88          <interface>3. Button toolbar</interface>
89        </term>
90        <listitem>
91          <para>
92            The button toolbar contains functions that are relevent for the
93            navigation tree. Use the <guibutton>Refresh</guibutton> button
94            to update the directory tree, for example, after creating a new
95            subdirectory. Use the <guibutton>Search</guibutton> button to
96            search for files and directories no matter where they are located.
97            The search form is displayed to the right and is the same as the
98            usual file and directory listing, except that it will not show
99            any files if there is no filter.
100          </para>
101        </listitem>
102      </varlistentry>
103
104      <varlistentry>
105        <term>
106          <interface>4. Current directory</interface>
107        </term>
108        <listitem>
109          <para>Shows the full BASE path to current directory.</para>
110        </listitem>
111      </varlistentry>
112
113      <varlistentry>
114        <term>
115          <interface>5. View a file's contents</interface>
116        </term>
117        <listitem>
118          <para>
119            A click on this icon will open the file's contents in a new window. If the
120            browser does not has support to view the file there will be a dialog window
121            to download the file instead.
122          </para>
123        </listitem>
124      </varlistentry>
125
126      <varlistentry>
127        <term>
128          <interface>6. Download file</interface>
129        </term>
130        <listitem>
131          <para>
132            Download the file to a local computer with this icon. The download will
133            start in a new dialog window.
134          </para>
135        </listitem>
136      </varlistentry>
137
138      <varlistentry>
139        <term>
140          <interface>7. Re-upload a file</interface>
141        </term>
142        <listitem>
143          <para>
144            This icon is only visible for those files that have been moved offline and
145            it can be used to re-upload the file to the BASE. Start to
146            upload the file to the same position by clicking on the icon.
147          </para>
148         
149          <note>
150            <title>Replace an existing file</title>
151            <para>
152              It is possible to re-upload file that are on-line, but this
153              has to be done from the single-item view.
154            </para>
155          </note>
156        </listitem>
157      </varlistentry>
158    </variablelist>
159
160    <sect2 id="file_system.system.browse">
161      <title>Browse the file system</title>
162      <para>
163        Browsing the BASE file system is done from the navigation bar by clicking on a
164        directory in the tree to view it's contents. Both sub directories and files in the
165        selected directory are showed. A directory with sub directories can be expand with a
166        click on the plus-sign.
167      </para>
168      <note>
169        <title>Browse a directory</title>
170        <para>
171          A directory can only be open from the navigation tree and never from the list. A
172          click on a directory's name in the list will open the directory's edit window.
173        </para>
174      </note>
175      <sect3 id="file_system.system.browse.tree">
176        <title>Navigation tree</title>
177        <para>
178          The navigation tree contains of folders/directories that the logged in user has
179          permission to read. At the top is the current user's home directory and under it
180          is a folder with all accessible home directories.
181        </para>
182        <para>
183          The tree can be updated with the refresh-button at the bottom of the panel (the
184          tree is not self-refreshing).
185        </para>
186        <sect4 id="file_system.system.browse.tree.home">
187          <title>Home directory - 'My home'</title>
188          <para>
189            To make it easier for the logged in user to find his/her directory without
190            having to scroll through the whole list of home directories, his or hers
191            home directory is located at the top of the navigation tree under the
192            <interface>My home</interface>
193            folder.
194          </para>
195          <note>
196            <title>No home directory</title>
197            <para>
198              Not all users have a home directory connected to their accounts. If
199              <interface>My home</interface>
200              is missing, it most certainly depends on that the current user account
201              have not got a home directory. Home directories are managed by the
202              administrator of the BASE server.
203            </para>
204          </note>
205        </sect4>
206      </sect3>
207    </sect2>
208    <sect2 id="file_system.system.quota">
209      <title>Disk space quota</title>
210      <para>
211        Normally, a user is assigned limited disk space for files.
212        More information about how much quota the current account has and how much of it
213        that is occupied can be found at the account's home page, described in
214        <xref linkend="webclient.intro.homepage" />.
215      </para>
216     
217      <para>
218        See <xref linkend="user_administration.quota" /> for more information about
219        the quota system.
220      </para>
221    </sect2>
222  </sect1>
223
224  <sect1 id="file_system.handling">
225    <title>Handling files</title>
226   
227    <sect2 id="file_system.handling.upload">
228      <title>Upload a new file</title>
229      <para>
230        Uploading a file is started by clicking on
231        <guibutton>Upload file&hellip;</guibutton>
232        in the toolbar. The uploaded file will be placed in current directory.
233      </para>
234     
235      <figure id="file_system.figures.upload">
236        <title>Upload new file</title>
237        <screenshot>
238          <mediaobject>
239            <imageobject><imagedata 
240              fileref="figures/upload_file.png" format="PNG"
241              /></imageobject>
242          </mediaobject>
243        </screenshot>
244      </figure>
245     
246      <helptext external_id="file.upload" title="Upload a file">
247        <para>
248          <variablelist>
249            <varlistentry>
250              <term>
251                <guilabel>Directory</guilabel>
252              </term>
253              <listitem>
254                <para>
255                  Shows the current directory, where the file will be uploaded.
256                  This property cannot be changed and is only for information.
257                </para>
258              </listitem>
259            </varlistentry>
260            <varlistentry>
261              <term>
262                <guilabel>File</guilabel>
263              </term>
264              <listitem>
265                <para>
266                  This field is required and needs to have a valid file path for
267                  the local computer before the upload is started. Use
268                  <guibutton>Browse&hellip;</guibutton>
269                  to choose which file to upload.
270                </para>
271              </listitem>
272            </varlistentry>
273            <varlistentry>
274              <term>
275                <guilabel>Replace existing</guilabel>
276              </term>
277              <listitem>
278                <para>
279                  Tick this checkbox if you want to overwrite an existing file
280                  that has the same name as the one you are going to upload.
281                </para>
282              </listitem>
283            </varlistentry>
284            <varlistentry>
285              <term>
286                <guilabel>Write protected</guilabel>
287              </term>
288              <listitem>
289                <para>
290                  Mark this checkbox if you want the file to be write
291                  protected. A write protected file cannot be deleted,
292                  moved offline or replaced with another file. It is
293                  still possible to change other metadata, such as
294                  the name, description, file type, MIME type, etc.
295                </para>
296              </listitem>
297            </varlistentry>
298            <varlistentry>
299              <term>
300                <guilabel>Store compressed</guilabel>
301              </term>
302              <listitem>
303                <para>
304                  You can select if you want BASE to store your file in a
305                  compressed format or in it's normal format. Compressing
306                  the file may save a lot of disk space and it also uses
307                  less quota. There are three options:
308                  <itemizedlist>
309                  <listitem>
310                    <para>
311                      <guilabel>auto</guilabel>: Let BASE automatically
312                      decide if the file should be compressed or not. The file
313                      is compressed if (1): it is uploaded to a directory that
314                      has the <emphasis>compress files</emphasis> flag set
315                      or (2): if the matching MIME type has the
316                      <emphasis>compress files</emphasis> flag set.
317                    </para>
318                  </listitem>
319                  <listitem>
320                    <para>
321                      <guilabel>yes</guilabel>: Store the file in a compressed
322                      format.
323                    </para>
324                  </listitem>
325                  <listitem>
326                    <para>
327                      <guilabel>no</guilabel>: Store the file in it's normal format.
328                    </para>
329                  </listitem>
330                  </itemizedlist>
331                 
332                </para>
333              </listitem>
334            </varlistentry>
335            <varlistentry>
336              <term>
337                <guilabel>Type</guilabel>
338              </term>
339              <listitem>
340                <para>
341                  This is the file-type that the uploaded file should get.
342                  <nohelp>The
343                  file-types to choose between from the drop-down list are
344                  described in
345                  <xref linkend="file_system.filetypes" />.</nohelp>
346                  Select
347                  <userinput>- none -</userinput>
348                  if the file should not be associated with any file type.
349                </para>
350              </listitem>
351            </varlistentry>
352            <varlistentry>
353              <term>
354                <guilabel>Description</guilabel>
355              </term>
356              <listitem>
357                <para>
358                  A description about the uploaded file can be put into this text
359                  area. Use the magnifying glass to edit the text in a pop-up
360                  window with a larger text area.
361                </para>
362              </listitem>
363            </varlistentry>
364            <varlistentry>
365              <term>
366                <guilabel>Max transfer rate</guilabel>
367              </term>
368              <listitem>
369                <para>
370                  This shows the maximum transfer rate that the upload will
371                  approximately reach. The transfer rate is set by the
372                  server admin and cannot be changed.
373                </para>
374              </listitem>
375            </varlistentry>
376            <varlistentry>
377              <term>
378                <guilabel>Compressed file</guilabel>
379              </term>
380              <listitem>
381                <para>
382                  These settings are only active if you select
383                  a compressed file format that BASE knows how to
384                  unpack. BASE ships with support for some of the most common
385                  compressed file formats, such as zip and tar,
386                  but this can be extended by the use of plug-ins.
387                  <nohelp>See <xref linkend="plugin_developer.other.unpacker" 
388                    /> for more information.</nohelp>
389                   
390                  <itemizedlist>
391                    <listitem>
392                      <para>
393                        <guilabel>Unpack file</guilabel>:
394                        Mark this checkbox if the compressed file should
395                        be unpacked after it had been uploaded. The
396                        files will be unpacked with the same sub-directory
397                        structure as in the compressed file.
398                      </para>
399                    </listitem>
400                   
401                    <listitem>
402                      <para>
403                        <guilabel>Overwrite existing files</guilabel>:
404                        Mark this checkbox if the unpacking is allowed
405                        to overwrite existing files.
406                      </para>
407                    </listitem>
408                    <listitem>
409                      <para>
410                        <guilabel>Keep the compressed file</guilabel>:
411                        Mark this checkbox if you want to keep the
412                        compressed file after upload. Otherwise, only
413                        the unpacked files are kept.
414                      </para>
415                    </listitem>
416                  </itemizedlist>
417                </para>
418              </listitem>
419            </varlistentry>
420          </variablelist>
421        </para>
422        <para>
423          Finish the configuration by clicking on either
424          <guibutton>Upload</guibutton>, which will start uploading the selected file, or
425          &gbCancel; to abort the upload procedure.
426        </para>
427      </helptext>
428     
429      <sect3 id="file_system.handling.actions.reupload">
430        <title>Replace an existing file</title>
431        <para>
432          It is possible to replace an existing file. This is done by clicking
433          on the <guilabel>replace</guilabel> link on the single-item view
434          for the file you want to replace. If the file has been moved offline,
435          you can also use the icon
436          in the actions-column, see number 7 in
437          <xref linkend="file.system.figures.filepage" />.
438          The procedure to upload the file is the same as when uploading a new file,
439          except that compressed files cannot be unpacked. There is also an
440          extra option, <guilabel>Validate MD5</guilabel>, that tells BASE to
441          check that the file is the same as the one it is replacing. This option
442          is useful when you are re-uploading a file that has been moved offline
443          and want to be certain that it is the same file as the original.
444        </para>
445       
446        <para>
447          You cannot replace a file which has been marked as
448          <emphasis>write protected</emphasis>.
449        </para>
450      </sect3>
451     
452    </sect2>
453   
454    <sect2 id="file_system.handling.external">
455      <title>External files</title>
456      <para>
457      Files doesn't have to be stored on the BASE server. It is possible to register
458      an external file by giving the URL to it. In most cases, BASE will be able to
459      use the external file in the same way as a file that has been uploaded to the
460      BASE server. To create an external file reference, use the
461      <guibutton>New URL...</guibutton> button.
462      </para>
463     
464      <figure id="file_system.figures.external">
465        <title>Create external file</title>
466        <screenshot>
467          <mediaobject>
468            <imageobject><imagedata 
469              fileref="figures/external_file.png" format="PNG"
470              /></imageobject>
471          </mediaobject>
472        </screenshot>
473      </figure>
474     
475      <para>
476        The dialog is more or less the same as the <guilabel>Edit file</guilabel> dialog,
477        but has additional fields for the <guilabel>URL</guilabel> and an optional
478        <guilabel>File server</guilabel>.
479      </para>
480     
481      <helptext external_id="file.external" title="External file properties">
482        <variablelist>
483          <varlistentry>
484            <term>
485              <guilabel>URL</guilabel>
486            </term>
487            <listitem>
488              <para>
489                The full URL to the referenced file. Currently, BASE
490                only supports <emphasis>http</emphasis> or
491                <emphasis>https</emphasis> URLs.
492              </para>
493            </listitem>
494          </varlistentry>
495          <varlistentry>
496            <term>
497              <guilabel>Load metadata</guilabel>
498            </term>
499            <listitem>
500              <para>
501                Check this box if you want BASE to try to load metadata such
502                as MIME type, size, last modification date etc. for the file.
503                This will also verify that the file actually exists.
504              </para>
505            </listitem>
506          </varlistentry>
507          <varlistentry>
508            <term>
509              <guilabel>Server</guilabel>
510            </term>
511            <listitem>
512              <para>
513                Select a file server for this file. This is optional, but is
514                needed to access password-protected files or for some https
515                connections.
516              </para>
517            </listitem>
518          </varlistentry>
519        </variablelist>
520        <seeother>
521          <other external_id="fileserver.edit">File servers</other>
522          <other external_id="file.edit">Other file properties</other>
523        </seeother>
524      </helptext>
525     
526      <sect3 id="file_system.handling.fileservers">
527        <title>File servers</title>
528     
529        <helptext external_id="fileserver.edit" title="Edit file server">
530          <para>
531            File server are used for external files that are password
532            protected and for files that are using the https protocol and
533            require certificates to connect to the server.
534          </para>
535          <variablelist>
536          <varlistentry>
537            <term>
538              <guilabel>Name</guilabel>
539            </term>
540            <listitem>
541              <para>
542                The name of the file server.
543              </para>
544            </listitem>
545          </varlistentry>
546          <varlistentry>
547            <term>
548              <guilabel>Username/password</guilabel>
549            </term>
550            <listitem>
551              <para>
552                If the file server requires authorization to access the files
553                you should add a username and password. This will be used by
554                BASE to access the files. Currently, BASE supports
555                <emphasis>Basic</emphasis> and <emphasis>Digest</emphasis>
556                authentication.
557              </para>
558            </listitem>
559          </varlistentry>
560          <varlistentry>
561            <term>
562              <guilabel>Description</guilabel>
563            </term>
564            <listitem>
565              <para>
566                Enter a description of the file server.
567              </para>
568            </listitem>
569          </varlistentry>
570          <varlistentry>
571            <term>
572              <guilabel>Certificates</guilabel>
573            </term>
574            <listitem>
575              <para>
576                On this tab you may specify server and client certificates. A
577                <guilabel>server certificate</guilabel> may be needed to access files with the https
578                protocol on servers that use certificates that can't automatically be trusted,
579                for example, a self-signed certificate. The server certificate is uploaded
580                as a file and must be a X.509 certificate in either binary or base64-encoded DER format.
581              </para>
582              <para>
583                A <guilabel>client certificate</guilabel> may be needed to access files with the https
584                protocol on servers that require that clients authenticate themselves with a certificate.
585                The certificate is typically issued by the owner of the server and may be
586                password-protected. The client certificate is uploaded as a file and must be in
587                PKCS #12 format.
588              </para>
589              <para>
590                Use the <guilabel>Remove existing...</guilabel> checkboxes to remove previously
591                uploaded certificates. Leave everything empty to keep things as they are.
592              </para>
593            </listitem>
594          </varlistentry>
595          </variablelist>
596        <seeother>
597          <other external_id="file.external">External files</other>
598        </seeother>
599        </helptext>
600     
601      </sect3>
602     
603    </sect2>
604   
605    <sect2 id="file_system.handling.edit">
606      <title>Edit a file</title>
607      <para>
608        The edit window to set a file's property in can either be open with
609        &gbEdit;
610        that is located in the toolbar at the file's view page or by holding down
611        <keycap>CTRL</keycap>, <keycap>ALT</keycap>
612        or <keycap>SHIFT</keycap>
613        when clicking on the file's name in the list. It requires that the current user has
614        write permission on the file to be able to edit and set the properties.
615      </para>
616
617      <helptext external_id="file.edit" title="Edit file properties">
618        <variablelist>
619          <varlistentry>
620            <term>
621              <guilabel>Path</guilabel>
622            </term>
623            <listitem>
624              <para>
625                This is the path where the file is located. This can only be changed
626                by moving the file.
627                <nohelp>Read more about how this is done in
628                <xref linkend="file_system.handling.move" /></nohelp>.
629              </para>
630            </listitem>
631          </varlistentry>
632          <varlistentry>
633            <term>
634              <guilabel>URL, Server</guilabel>
635            </term>
636            <listitem>
637              <para>
638                See <emphasis>External files</emphasis> below.
639              </para>
640            </listitem>
641          </varlistentry>
642         
643          <varlistentry>
644            <term>
645              <guilabel>Name</guilabel>
646            </term>
647            <listitem>
648              <para>
649                The file's name, which cannot be left empty and must be unique in
650                current directory. The maximum length of the file name is 255
651                characters and it can contain blank spaces but not any of
652                <keycap>~</keycap>,
653                <keycap>\</keycap>,
654                <keycap>/</keycap>,
655                <keycap>:</keycap>,
656                <keycap>;</keycap>,
657                <keycap>*</keycap>,
658                <keycap>&#63;</keycap>,
659                <keycap>&lt;</keycap>,
660                <keycap>&gt;</keycap>
661                or
662                <keycap>|</keycap>.
663              </para>
664            </listitem>
665          </varlistentry>
666          <varlistentry>
667            <term>
668              <guilabel>Write protected</guilabel>
669            </term>
670            <listitem>
671              <para>
672                Mark this checkbox if you want the file to be write
673                protected. A write protected file cannot be deleted,
674                moved offline or replaced with another file. It is
675                still possible to change other metadata, such as
676                the name, description, file type, MIME type, etc.
677              </para>
678            </listitem>
679          </varlistentry>
680          <varlistentry>
681            <term>
682              <guilabel>Type</guilabel>
683            </term>
684            <listitem>
685              <para>
686                Sets which kind of type the file is. Select the file type to use
687                from the drop down list with available types. The option
688                <guilabel>-none-</guilabel>
689                should be used if the file should not be associated with any kind of
690                file type.
691              </para>
692            </listitem>
693          </varlistentry>
694          <varlistentry>
695            <term>
696              <guilabel>MIME type</guilabel>
697            </term>
698            <listitem>
699              <para>
700                The file's content/media type. This is normally set automatically
701                when uploading the file into BASE but it can be changed by an user,
702                that has write permissions, at any time.
703              </para>
704            </listitem>
705          </varlistentry>
706          <varlistentry>
707            <term>
708              <guilabel>Description</guilabel>
709            </term>
710            <listitem>
711              <para>
712                This text area can be used to store relevant information about file
713                and it's contents. Use the magnifying glass, located to the right
714                under the text area, to edit the text in a larger window.
715              </para>
716            </listitem>
717          </varlistentry>
718        </variablelist>
719        <para>
720          Finish the editing process by pressing either
721          &gbSave;
722          to save the properties to the database or
723          &gbCancel;
724          to abort and discard the changes.
725        </para>
726       
727        <seeother>
728          <other external_id="file.external">External files</other>
729          <other external_id="fileserver.edit">File servers</other>
730        </seeother>
731      </helptext>
732
733    </sect2>
734    <sect2 id="file_system.handling.move">
735      <title>Move files</title>
736     
737      <para>
738        These functions are used to manage the location of the files on the
739        server. They are all accessed from the <guibutton>Move</guibutton>
740        button on the list view of from the single-item view. On the list view,
741        you must first select one or more files / directories.
742      </para>
743     
744      <tip>
745        <title>Write protect your files!</title>
746        <para>
747        If you mark a file as <emphasis>write protected</emphasis> it will
748        not be possible to delete, move or replace the file. Use this options
749        for important data files that you do not want to loose by accident.
750        </para>
751      </tip>
752     
753      <sect3 id="file_system.handling.move.directory">
754        <title>To another directory</title>
755        <para>
756          Files and directories can be moved to other directories for re-organization. The
757          user need write permission on the target directory to be able to move the
758          files/directories to it.
759        </para>
760        <para>
761          First, select all files and directories in the current path that should be moved
762          and then click on
763          <menuchoice>
764            <guibutton>Move&hellip;</guibutton>
765            <guisubmenu>To another directory</guisubmenu>
766          </menuchoice>
767          in the toolbar to open a window with the directory tree where the target directory
768          can be picked.
769        </para>
770        <para>
771          Choose a directory which the selected items should be moved to. It
772          is possible to create new sub-directories with the
773          &gbNew; button.
774        </para>
775        <para>
776          Click on
777          &gbOk;
778          to carry out the move or
779          &gbCancel;
780          to abort.
781        </para>
782      </sect3>
783     
784      <sect3 id="file_system.handling.move.offline">
785        <title>Offline</title>
786        <para>
787          Moving a file offline means that the actual file contents is deleted from the
788          server's disk space but information about the file will still exist as an item
789          in the database. This makes it possible to save disk space but still be
790          able to associated the file with other items in BASE.
791        </para>
792        <para>
793          First, select all files in current path that should be moved offline
794          and then click on
795          <menuchoice>
796            <guibutton>Move&hellip;</guibutton>
797            <guisubmenu>Offline</guisubmenu>
798          </menuchoice>
799          in the toolbar.
800        </para> 
801        <warning>
802          <para>
803          Be careful! The selected files will be removed from the server.
804          The only way to recover the contents again is to re-upload the files.
805          </para>
806        </warning>
807      </sect3>
808
809      <sect3 id="file_system.handling.move.secondary">
810        <title>To the secondary storage</title>
811
812        <para>
813          This option is only available if the server administrator
814          has enabled it.
815        </para>
816
817        <para>
818          The secondary storage is a kind of storage were it is appropriate
819          to store files that have been used and no longer requires immediate
820          access. Moving a file to and from the secondary storage is the job
821          of a plug-in, which is usually executed once or twice a day.
822        </para>
823       
824        <para>
825          First, select all files in the current path that should be moved
826          and then click on
827          <menuchoice>
828            <guibutton>Move&hellip;</guibutton>
829            <guisubmenu>To secondary location</guisubmenu>
830          </menuchoice>
831          in the toolbar. The only thing that will happen is that BASE sets a flag
832          on each file. The next time the secondary storage plug-in
833          is executed, the files will be moved to the secondary storage. The
834          actual file contents is deleted from the server's disk.
835        </para>
836       
837        <para>
838          While the file is in the secondary storage BASE behaves in the same way as
839          if the file is offline. Th file cannot be used to import data from, or
840          other things. To use the file again, the file must be moved back to
841          the primary storage.
842        </para>
843       
844        <para>
845          To bring files back from the secondary storage, select the files
846          and then click on
847          <menuchoice>
848            <guibutton>Move&hellip;</guibutton>
849            <guisubmenu>To primary location</guisubmenu>
850          </menuchoice> in the toolbar. The files will be moved back the next
851          time the secondary storage plug-in is executed.
852        </para>
853       
854        <note>
855          <title>Do not forget to set quota for the secondary storage</title>
856          <para>
857            The default installation does not assign quota for the
858            secondary storage. Unless the administrator assigns quota
859            the move will silently fail.
860          </para>
861        </note>
862      </sect3>
863
864    </sect2>
865
866    <sect2 id="file_system.handling.actions">
867      <title>Viewing and downloading files</title>
868      <para>
869        In <guilabel>Actions</guilabel> column in the list view there
870        are icons you can click on to perform different kinds of actions on a
871        file, like downloading the file and viewing the file. The same icons appear
872        on the single-item view and in most other places where files are used.
873        You cannot view or download files that have been moved offline or to the
874        secondary storage.
875      </para>
876      <sect3 id="file_system.handling.actions.download">
877        <title>Download a file</title>
878        <para>
879          This will let the user to download the contents of a file to a path on a local
880          computer. The window that opens contains the selected file's name, size e.t.c.
881          and it will also open a download dialog window where the user can choose what to
882          do with the file locally.
883          <tip>
884            <title>Download does not start</title>
885            <para>
886              Click on the file's path name in the pop-up window if the download
887              dialog window does not appears.
888            </para>
889          </tip>
890        </para>
891        <para>
892          Close the pop-up window and return to file page with
893          &gbClose;.
894        </para>
895      </sect3>
896      <sect3 id="file_system.handling.actions.view">
897        <title>View the contents of file</title>
898        <para>
899          A file's contents can be displayed directly in the web browser if the
900          browser supports displaying that kind of files. Typically all HTML, text
901          files and images are supported. Click on the icon to view the contents
902          in a new window. If the type is not supported by the browser there will be
903          a dialog-window to download the file instead.
904        </para>
905      </sect3>
906      <sect3 id="file_system.handling.actions.zippeddownload">
907        <title>Download/compress multiple files</title>
908       
909        <para>
910        You can download multiple files/directories at the same time. First,
911        from the file browser, select one or more files/directories. Then, click
912        on the &gbExport; button. Select the <userinput>Packed file exporter</userinput>
913        plug-in and choose one of the file formats below it. On the &gbNext;
914        page you can specify other options for the download:
915        </para>
916       
917        <itemizedlist>
918        <listitem>
919          <para>
920            <guilabel>Save as</guilabel>: The path to a file on the BASE file system
921            where the selected files and directories should be packed. Leave this
922            field empty to download the files to your own computer.
923          </para>
924        </listitem>
925        <listitem>
926          <para>
927            <guilabel>Overwrite</guilabel>: If you are saving to the BASE file system
928            you may select if it is allowed to overwrite an existing file or not.
929          </para>
930        </listitem>
931        <listitem>
932          <para>
933            <guilabel>Remove files/directories</guilabel>: If you select this option
934            the selected files and directories will be marked as removed. You must still
935            go to the <guilabel>Trashcan</guilabel> and remove the items permanently.
936          </para>
937        </listitem>
938        </itemizedlist>
939       
940      </sect3>
941    </sect2>
942    <sect2 id="file_system.handling.directories">
943      <title>Directories</title>
944      <para>
945        Directories in BASE are folders where files can be organized into. Click on
946        <guibutton>New directory&hellip;</guibutton>
947        in the toolbar to create a directory in current path and edit the properties as
948        described below.
949      </para>
950      <sect3 id="file_system.handling.directories.edit">
951        <title>Edit a directory</title>
952        <para>
953          The window to edit a directory's properties is opened either by clicking on the
954          directory's name in the list or when creating a new directory.
955        </para>
956        <helptext external_id="directory.edit" title="Edit directory">
957          <para>
958            <variablelist>
959              <title>Properties</title>
960              <varlistentry>
961                <term>
962                  <guilabel>Path</guilabel>
963                </term>
964                <listitem>
965                  <para>
966                    This property is read-only in the edit window but can be
967                    changed by moving the directory<nohelp>, described in
968                    <xref linkend="file_system.handling.move" /></nohelp>.
969                  </para>
970                </listitem>
971              </varlistentry>
972              <varlistentry>
973                <term>
974                  <guilabel>Name</guilabel>
975                </term>
976                <listitem>
977                  <para>
978                    The directory's name to identify it with in the list. This
979                    field must have a value and it has to be an unique name for
980                    the current directory.
981                  </para>
982                </listitem>
983              </varlistentry>
984              <varlistentry>
985                <term>
986                  <guilabel>Compress files</guilabel>
987                </term>
988                <listitem>
989                  <para>
990                    Enable this option to let BASE store files that
991                    are uploaded to this directory in a compressed format.
992                    This option only affect files that are uploaded later,
993                    it doesn't affect already existing files or files that
994                    are moved between directories.
995                  </para>
996                </listitem>
997              </varlistentry>
998              <varlistentry>
999                <term>
1000                  <guilabel>Share new files and sub-directories automatically</guilabel>
1001                </term>
1002                <listitem>
1003                  <para>
1004                    Enable this option to let BASE automatically share
1005                    new files and directories with the same permissions
1006                    as have been specified on this directory. This
1007                    option is useful when you have assigned a specific
1008                    directory as a common area for a group of users and
1009                    you want to make sure that all users has access to
1010                    all files. Some restrictions apply:
1011                  </para>
1012                  <itemizedlist>
1013                  <listitem>
1014                    <para>
1015                    Permissions for the <emphasis>Everyone</emphasis>
1016                    group are not inherited if the logged in user doesn't
1017                    have the <emphasis>SHARE_TO_EVERYONE</emphasis> permission.
1018                    </para>
1019                  </listitem>
1020                  <listitem>
1021                    <para>
1022                    If a project is active the new file/directory will be shared
1023                    to the active project as well.
1024                    </para>
1025                  </listitem>
1026                  </itemizedlist>
1027                 
1028                </listitem>
1029              </varlistentry>
1030              <varlistentry>
1031                <term>
1032                  <guilabel>Description</guilabel>
1033                </term>
1034                <listitem>
1035                  <para>
1036                    Any relevant information about the directory can be written
1037                    in this text area. The magnifying glass down to the right
1038                    can be used to edit the description text in a larger text
1039                    area, just click on the icon to open it in a separate pop-up
1040                    window.
1041                  </para>
1042                </listitem>
1043              </varlistentry>
1044            </variablelist>
1045          </para>
1046          <para>
1047            The editing process is completed with either
1048            &gbSave;, to save the properties into the database, or with
1049            &gbCancel;
1050            to discard the changes. Both of the buttons will close the edit window and
1051            if the directory is updated the list will be reloaded with the directory's
1052            new properties.
1053          </para>
1054         
1055          <note>
1056            The new directory does not appear in the navigation tree
1057            to the left automatically. You must click on the
1058            <guibutton>Refresh</guibutton> button.
1059          </note>
1060         
1061        </helptext>
1062      </sect3>
1063    </sect2>
1064
1065  </sect1>
1066
1067  <sect1 id="file_system.filetypes">
1068    <title>File types</title>
1069    <para>
1070      A file can be associated with one of the file types that exists in BASE. File types
1071      make it possible to filter the files depending of what kind of file it is. Here
1072      is a list of file types that are defined in BASE.
1073      <menuchoice>
1074        <guimenu>Administrate</guimenu>
1075        <guisubmenu>Types</guisubmenu>
1076        <guimenuitem>File types</guimenuitem>
1077      </menuchoice>
1078    </para>
1079    <variablelist>
1080      <title>File types</title>
1081      <varlistentry>
1082        <term>Image</term>
1083        <listitem>
1084          <para>Indicates that the file is an image file.</para>
1085        </listitem>
1086      </varlistentry>
1087      <varlistentry>
1088        <term>Plate</term>
1089        <listitem>
1090          <para>The associated file is a file with information about plate/plates.</para>
1091        </listitem>
1092      </varlistentry>
1093      <varlistentry>
1094        <term>Plate mapping</term>
1095        <listitem>
1096          <para>Files with information about plate mapping.</para>
1097        </listitem>
1098      </varlistentry>
1099      <varlistentry>
1100        <term>Print map</term>
1101        <listitem>
1102          <para>Print map files</para>
1103        </listitem>
1104      </varlistentry>
1105      <varlistentry>
1106        <term>Protocol</term>
1107        <listitem>
1108          <para>Files with protocol information</para>
1109        </listitem>
1110      </varlistentry>
1111      <varlistentry>
1112        <term>Raw data</term>
1113        <listitem>
1114          <para>Raw data files</para>
1115        </listitem>
1116      </varlistentry>
1117      <varlistentry>
1118        <term>Reporter</term>
1119        <listitem>
1120          <para>Files with information about reporters</para>
1121        </listitem>
1122      </varlistentry>
1123      <varlistentry>
1124        <term>Reporter map</term>
1125        <listitem>
1126          <para>
1127            Files of this type contain information about how the reporters are mapped.
1128          </para>
1129        </listitem>
1130      </varlistentry>
1131      <varlistentry>
1132        <term>Spot images</term>
1133        <listitem>
1134          <para>A zip-file containing generated spot images in JPEG format.</para>
1135        </listitem>
1136      </varlistentry>
1137    </variablelist>
1138  </sect1>
1139</chapter>
Note: See TracBrowser for help on using the repository browser.