diff --git a/modules/websubmit/doc/admin/actionimplement.html.wml b/modules/websubmit/doc/admin/actionimplement.html.wml index 86b13e06f..2a0e4373f 100644 --- a/modules/websubmit/doc/admin/actionimplement.html.wml +++ b/modules/websubmit/doc/admin/actionimplement.html.wml @@ -1,94 +1,96 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Implement an action over a document type" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

What is it?

 Implement an action over a document type. Create the web forms and the treatment process.

How to get there?

 From the main page of the manager, click on the title of the relevant document type.
Then click on the "Add a New Submission" button.

How to do this?

 Just select the name of the action you want to implement. When you select an action, the list of document which already implement this action appears. Then you can select from this list the document from which you want to clone the implementation, or just choose "No Clone" if you want to build this implementation from scratch.

 After selecting the correct fields, click on the "Add Submission" button.

 You then go back to the document type manager page where you can see that in the bottom array your newly implemented action appears (check the acronym in the first column).




 If you chose to clone the implementation from an existing one, the web form as well as the functions list will already be defined. Else you will have to create them from scratch.

See also:

  • create and maintain the web form
  • create and maintain the data treatment
  • diff --git a/modules/websubmit/doc/admin/actionmodify.html.wml b/modules/websubmit/doc/admin/actionmodify.html.wml index 20e7023f6..d77c342b9 100644 --- a/modules/websubmit/doc/admin/actionmodify.html.wml +++ b/modules/websubmit/doc/admin/actionmodify.html.wml @@ -1,57 +1,59 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Modify an existing action" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    What is it?

     This page is about how to modify the general data about an action - for modifying the implementation of an action over a document type, see implement an action over a type of document

    How to get there?

     Click on the "View Actions" link in the right menu of the websubmit admin, then on the title of the action you want to modify...

    How to do this?

     You may modify 3 fields:

    See also:

  • remove an action
  • create an action
  • implement an action over a type of document
  • diff --git a/modules/websubmit/doc/admin/actionnew.html.wml b/modules/websubmit/doc/admin/actionnew.html.wml index 32e53b752..13ea6be66 100644 --- a/modules/websubmit/doc/admin/actionnew.html.wml +++ b/modules/websubmit/doc/admin/actionnew.html.wml @@ -1,56 +1,58 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Add a new action" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    How to get there?

     Click on the "Available Actions" link in the websubmit right menu, then on the "Add an Action" button.

    How to do this?

     A new action is defined by 6 fields:

    See also:

  • remove an action
  • modify an action
  • implement an action over a type of document
  • diff --git a/modules/websubmit/doc/admin/actionremove.html.wml b/modules/websubmit/doc/admin/actionremove.html.wml index 62c3ee9fc..0726632bd 100644 --- a/modules/websubmit/doc/admin/actionremove.html.wml +++ b/modules/websubmit/doc/admin/actionremove.html.wml @@ -1,43 +1,45 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Remove an Action" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    What is it?

     Removing the implementation of an action over a document type - Please note the removal of the action itself is not allowed with this tool.

    How to get there?

     From the websubmit admin main page, click on the title of the relevant document type. Then click on the red cross corresponding to the line of the action you want to remove.

    See also:

  • create an action
  • modify an action
  • implement an action over a type of document
  • diff --git a/modules/websubmit/doc/admin/actions.html.wml b/modules/websubmit/doc/admin/actions.html.wml index a61b6d931..c25e0dc3a 100644 --- a/modules/websubmit/doc/admin/actions.html.wml +++ b/modules/websubmit/doc/admin/actions.html.wml @@ -1,45 +1,47 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Actions" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"
     In webSubmit you can create several actions (for example "Submit New Record", "Submit a New File", "Send to a Distribution List", etc. in fact any action you can imagine to perform on a document stored in your database). The creation of an action is very simple and consists in filling in a name, description and associating a directory to this action. The directory parameter indicates where the collected data will be stored when the action is carried on.

     Once an action is created, you have to implement it over a document type. Implementing an action means defining the web form which will be displayed to a user, and defining the treatment (set of functions) applied to the data which have been gathered. The implementation of the same action over two document types can be very different. The fields in the web form can be different as well as the functions applied at the end of this action.

    See also:

  • create a new action
  • remove an action
  • modify an action
  • implement an action over a type of document
  • diff --git a/modules/websubmit/doc/admin/bibconvert.html.wml b/modules/websubmit/doc/admin/bibconvert.html.wml index c2d1a3a6c..b4dfa48be 100644 --- a/modules/websubmit/doc/admin/bibconvert.html.wml +++ b/modules/websubmit/doc/admin/bibconvert.html.wml @@ -1,40 +1,42 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="BibConvert" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    What is it?

     WebSubmit stores the data gathered during a submission in a directory. In this directory each file corresponds to a field saved during the submission.
     BibConvert is used to create a formatted file which will be easy to upload in the bibliographical database from this directory.
     This bibConvert program is called from the Make_Record and Make_Modify_Record functions from the end script system of webSubmit.
     The bibConvert configuration files used by webSubmit are in the /bibconvert/config directory.

     For more info about bibconvert, please see the dedicated guide.
    diff --git a/modules/websubmit/doc/admin/catalogues.html.wml b/modules/websubmit/doc/admin/catalogues.html.wml index c67e969b6..858f25273 100644 --- a/modules/websubmit/doc/admin/catalogues.html.wml +++ b/modules/websubmit/doc/admin/catalogues.html.wml @@ -1,65 +1,67 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Catalogues organisation" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    What is it?

     This feature allows you to organise the way webSubmit main page will look like. You will be able to group document types inside catalogues and order the catalogues the way you wish.

    How to get there?

     Click on the "Organisation" link in the websubmit admin right menu.

    How to do this?

     Once on the "Edit Catalogues page", you will find the currently defined organisation chart in the middle of the page. To the right, one form allows you to create a new catalogue ("Add a Catalogue") and one to add a document type to an existing catalogue ("Add a document type").
     

    See also:

  • Create a New Document Type
  • document types
  • diff --git a/modules/websubmit/doc/admin/description.html.wml b/modules/websubmit/doc/admin/description.html.wml index 6535080bb..ea08acf2d 100644 --- a/modules/websubmit/doc/admin/description.html.wml +++ b/modules/websubmit/doc/admin/description.html.wml @@ -1,66 +1,67 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Interface Description" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" - + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    Welcome to webSubmit Management tool:

    See also:

    interface description
    actions
    document types
    diff --git a/modules/websubmit/doc/admin/documentmodify.html.wml b/modules/websubmit/doc/admin/documentmodify.html.wml index 24bd26cc7..887d36042 100644 --- a/modules/websubmit/doc/admin/documentmodify.html.wml +++ b/modules/websubmit/doc/admin/documentmodify.html.wml @@ -1,54 +1,56 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Modify an existing type of document" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    What is it?

     Modifying a document type in webSubmit - this will modify its general data description, not the implementations of the actions on this document type. For the later, please see implement an action over a type of document.

    How to get there?

     From the main page of the manager, click on the title of the document type you want to modify, then click on the "Edit Document Type Details".

    How to do this?

     Once here, you can modify 2 fields:
  • Document Type Name: This is the full name of your new document. This is the text which will appear on the list of available documents and catalogues on webSubmit main page.
  • Document Type Description: This is the text which will appear on the right of the screen when the user moves the mouse over the document type title and on the document type submission page. This can be pure text or html.
  • See also:

  • remove a type of document
  • create a type of document
  • implement an action over a type of document
  • diff --git a/modules/websubmit/doc/admin/documentnew.html.wml b/modules/websubmit/doc/admin/documentnew.html.wml index cc7b8752b..f47b95b3d 100644 --- a/modules/websubmit/doc/admin/documentnew.html.wml +++ b/modules/websubmit/doc/admin/documentnew.html.wml @@ -1,54 +1,56 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Add a new type of document" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    How to get there?

     Click on the "New Doctype" link in the webSubmit right menu.

    How to do this?

     A new document type is defined by 6 fields:

    See also:

  • remove a type of document
  • modify a type of document
  • implement an action over a type of document
  • diff --git a/modules/websubmit/doc/admin/documentremove.html.wml b/modules/websubmit/doc/admin/documentremove.html.wml index 2fa8199ff..d9338a5f8 100644 --- a/modules/websubmit/doc/admin/documentremove.html.wml +++ b/modules/websubmit/doc/admin/documentremove.html.wml @@ -1,43 +1,45 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Remove a type of document" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    How to get there?

     Click on the "Remove Doctype" link in the webSubmit admin right menu

    How to do this?

     Select the document type to delete then click on the "Remove Doctype" button. Remember by doing this, you will delete this document type as well as all the implementation of actions for this document type!

    See also:

  • create a type of document
  • modify a type of document
  • implement an action over a type of document
  • diff --git a/modules/websubmit/doc/admin/documents.html.wml b/modules/websubmit/doc/admin/documents.html.wml index 7e1c0f582..b46772979 100644 --- a/modules/websubmit/doc/admin/documents.html.wml +++ b/modules/websubmit/doc/admin/documents.html.wml @@ -1,59 +1,60 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Document Types" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" - + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    See also:

    add a new type of document
    remove a type of document
    modify a type of document
    implement an action over a type of document
    diff --git a/modules/websubmit/doc/admin/example.html.wml b/modules/websubmit/doc/admin/example.html.wml index cfcc4459b..0d1f60748 100644 --- a/modules/websubmit/doc/admin/example.html.wml +++ b/modules/websubmit/doc/admin/example.html.wml @@ -1,96 +1,97 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Using the manager through an example" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" - + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    what is this?

    The user reaches WebSubmit main page.

    Main Page  To add a document type to WebSubmit, you should go to the main page and click on "New Doctype" in the left blue panel.

     Even once created, a document type will not appear automatically on this page. To configure the list of catalogues and document types displayed on this page, the administrator shall go to the edit catalogues page. (see the .html>guide section)

    The user can then click on the document type he is interested in.

    Document type Page  The text appearing under the header containing the name of the document can be configured by going to the main page, click on the title of the document type then on the "Edit Document Types Details" button.

     You can associate several categories to a document type which can be defined by going to the main page, click on the title of the document type then on the "View Categories" button. The selected category will be saved in a file named "comboXXX" (where XXX is the short name of the document type) in the submission directory.

     To add an action button to this page, first implement this action by going to the main page, click on the title of the document type then on the "Add a new submission" button. If the action is already implemented and the button still does not appear on the submision page, then you should edit the details of this implementation: go to the main page, click on the title of the document type then on the icon in the "Edit Submission" column and in the line of the desired action. There you should set the "Displayed" form field to "YES".

     You can also change the order of the buttons, by going to the main page, click on the title of the document type then on the icon in the "Edit Submission" column and in the line of the desired action. There you can set the "buttonorder" form field.

    The user now may choose a category, then click on the action button he wishes.
    The submission starts, the first page of the web form appears.

    Document type Page  This web form is composed of several pages, on each of these pages form fields can be found. To modify the number of pages, add or withdraw form fields and modify the texts before each form field, you shall go to the main page, click on the title of the document type then on the icon in the "Edit Submission Pages" column and in the line of the desired action. (see the .html>guide section)

    On the last page of the submission, there should be a button like in the following image which will trigger the end script

    Document type End Page  This button is defined like any other form field. Its definition should include a onclick="finish();" javascript attribute.

     After clicking this button, WebSubmit will apply the end script functions to the gathered data. To modify the end script, you shall go to the main page, click on the title of the document type then on the icon in the "Edit Functions" column and in the line of the desired action. (see the guide section)

    See also:

    interface description
    actions
    document types
    diff --git a/modules/websubmit/doc/admin/faq.html.wml b/modules/websubmit/doc/admin/faq.html.wml index 001f58a77..55b805b39 100644 --- a/modules/websubmit/doc/admin/faq.html.wml +++ b/modules/websubmit/doc/admin/faq.html.wml @@ -1,75 +1,77 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="WebSubmit Admin FAQ" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"  Q1. I'd like to be warned each time there is an error, or an important action is made through the manager. Is this possible?
     Q2. Where are all the files stored in this system?
     Q3. How is the documents archive organised?



     Q1. I'd like to be warned each time there is an error, or an important action is made through the manager. Is this possible?
    Yes, it is. Edit the config.wml file in CDSware distribution, find the "ADMINEMAIL" definition and set it to your email address. You will then receive all the warning emails issued by the manager.
     Q2. Where are all the files stored in this system?
  • the counter files are here: . There are used by the Report_Number_Generation function.
  • all running and completed submissions are stored here: .
  • all the document files attached to records are stored here: .
  • all python functions used by webSubmit are stored here: /python/cdsware/websubmit_functions
  •  Q3. How is the documents archive organised?
    First of all, the documents files attached to records are stored here: .

    The Upload_Files webSubmit function is used to link a document with a record.

    All documents get an id from the system and are stored in the "bibdoc" table in the database. The link between a document and a record is stored using the "bibdoc_bibrec" table.

    The document id is used to determine where the files are stored. For example the files of document #14 will be stored here: /g0/14

    The subdirectory g0 is used to split the documents accross the filesystem. The CFG_FILE_DIR_SIZE variable from config.wml determines how many documents will be stored under one subdirectory.

    Several files may be stored under the same document directory: they are the different formats and versions of the same document. Versions are indicated by a string of the form ";1.0" concatenated to the name of the file.

    See also:

    notes
    diff --git a/modules/websubmit/doc/admin/functiondelete.html.wml b/modules/websubmit/doc/admin/functiondelete.html.wml index 2e160312a..ff819be3b 100644 --- a/modules/websubmit/doc/admin/functiondelete.html.wml +++ b/modules/websubmit/doc/admin/functiondelete.html.wml @@ -1,36 +1,38 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Remove a function" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    Note

     There are currently no way of deleting a function through this interface. Use the direct MySQL command line interface for this.

    See also:

  • edit a function
  • create a function
  • diff --git a/modules/websubmit/doc/admin/functiondescription.html.wml b/modules/websubmit/doc/admin/functiondescription.html.wml index 8b6dfd850..72cf247bf 100644 --- a/modules/websubmit/doc/admin/functiondescription.html.wml +++ b/modules/websubmit/doc/admin/functiondescription.html.wml @@ -1,1040 +1,1042 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="All functions explained" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    Description:

     This page lists and explains all the functions used in the demo provided with CDSWare package. This list is not exhaustive since you can add any new function you need.
     Click on one function name to get its description.
     Please note in this page when we refer to [param] this means the value of the parameter 'param' for a given document type.

    CaseEDS
    Create_Modify_Interface
    Create_Recid
    Finish_Submission
    Get_Info
    Get_Report_Number
    Get_Sysno
    Get_TFU_Files
    Insert_Modify_Record
    Insert_Record
    Is_Original_Submitter
    Is_Referee
    Mail_Submitter
    Make_Modify_Record
    Make_Record
    Move_From_Pending
    Move_to_Done
    Move_to_Pending
    Print_Success
    Print_Success_APP
    Print_Success_MBI
    Print_Success_SRV
    Report_Number_Generation
    Send_Approval_Request
    Send_APP_Mail
    Send_Modify_Mail
    Send_SRV_Mail
    Test_Status
    Update_Approval_DB
    Upload_Files


    CaseEDS
    description
    This function may be used if the treatment to be done after a submission depends on a field entered by the user. Typically this is used in an approval interface. If the referee approves then we do this. If he rejects, then we do other thing.
    More specifically, the function gets the value from the file named [casevariable] and compares it with the values stored in [casevalues]. If a value matches, the function directly goes to the corresponding step stored in [casesteps]. If no value is matched, it goes to step [casedefault].
    parameters
    casevariable This parameters contains the name of the file in which the function will get the chosen value.
    Eg: "decision"
    casevalues Contains the list of recognized values to match with the chosen value. Should be a comma separated list of words.
    Eg: "approve,reject"
    casesteps Contains the list of steps corresponding to the values matched in [casevalue]. It should be a comma separated list of numbers
    Eg: "2,3"
    In this example, if the value stored in the file named "decision" is "approved", then the function launches step 2 of this action. If it is "reject", then step 3 is launched.
    casedefault Contains the step number to go by default if no match is found.
    Eg: "4"
    In this example, if the value stored in the file named "decision" is not "approved" nor "reject", then step 4 is launched.


    Create_Modify_Interface
    description
    To be used in the MBI-Modify Record action. It displays a web form allowing the user to modify the fields he chose. The fields are prefilled with the existing values extracted from the documents database. This functions takes the values stored in the [fieldnameMBI] file. This file contains a list of field name separated with "+" (it is usually generated from a multiple select form field). Then the function retrieves the corresponding tag name (marc-21) stored in the element definition. Finally it displays the web form and fills it with the existing values found in the documents database.
    parameters
    fieldnameMBI Contains the name of the file in which the function will find the list of fields the user wants to modify. Depends on the web form configuration.


    Create_Recid
    description
    This function retrieves a new record id from the records database. This record id will then be used to create the XML record afterwards, or to link with the fulltext files. The created id is stored in a file named "SN".
    parameters
    none


    Finish_Submission
    description
    This function stops the data treatment process even if further steps exist. This is used for example in the approval action. In the first step, the program determines whether the user approved or rejected the document (see CaseEDS function description). Then depending on the result, it executes step 2 or step 3. If it executes step 2, then it should continue with step 3 if nothing stopped it. The Finish_Submission function plays this role.
    parameters
    none


    Get_Info
    description
    This function tries to retrieve in the "pending" directory or directly in the documents database, some information about the document: title, original submitter's email and author(s).
    If found, this information is stored in 3 global variables: $emailvalue, $titlevalue, $authorvalue to be used in other functions.
    If not found, an error message is displayed.
    parameters
    authorFile Name of the file in which the author may be found if the document has not yet been integrated (in this case it is still in the "pending" directory).
    emailFile Name of the file in which the email of the original submitter may be found if the document has not yet been integrated (in this case it is still in the "pending" directory).
    titleFile Name of the file in which the title may be found if the document has not yet been integrated (in this case it is still in the "pending" directory).


    Get_Report_Number
    description
    This function gets the value contained in the [edsrn] file and stores it in the reference global variable.
    parameters
    edsrn Name of the file which stores the reference.
    This value depends on the web form configuration you did. It should contain the name of the form element used for storing the reference of the document.


    Get_Sysno
    description
    This functions searches for the document in the database and stores the system number of this document in the "SN" file and in a global variable.
    "Get_Report_Number" should be called before.
    parameters
    none


    Insert_Modify_Record
    description
    This function gets the output of bibconvert and uploads it into the MySQL bibliographical database.
    parameters
    none


    Insert_Record
    description
    This function gets the output of bibFormat and uploads it into the MySQL bibliographical database.
    parameters
    none


    Is_Original_Submitter
    description
    If the authentication module (login) is active in webSubmit, this function compares the current login with the email of the original submitter. If it is the same (or if the current user has superuser rights), we go on. If it differs, an error message is issued.
    parameters
    none


    Is_Referee
    description
    This function checks whether the currently logged user is a referee for this document.
    parameters
    none


    Mail_Submitter
    description
    This function send an email to the submitter to warn him the document he has just submitted has been correctly received.
    parameters
    authorfile Name of the file containing the authors of the document
    titleFile Name of the file containing the title of the document
    emailFile Name of the file containing the email of the submitter of the document
    status Depending on the value of this parameter, the function adds an additional text to the email.
    This parameter can be one of:
    ADDED: The file has been integrated in the database.
    APPROVAL: The file has been sent for approval to a referee.
    or can stay empty.
    edsrn Name of the file containing the reference of the document
    newrnin Name of the file containing the 2nd reference of the document (if any)


    Make_Modify_Record
    description
    This function creates the record file formatted for a direct insertion in the documents database. It uses the bibConvert tool.
    The main difference between all the Make_..._Record functions are the parameters.
    As its name says, this particular function should be used for the modification of a record. (MBI- Modify Record action).
    parameters
    modifyTemplate Name of bibconvert's configuration file used for creating the mysql record.
    sourceTemplate Name of bibconvert's source file.


    Make_Record
    description
    This function creates the record file formatted for a direct insertion in the documents database. It uses the bibConvert tool.
    The main difference between all the Make_..._Record functions are the parameters.
    As its name does not say :), this particular function should be used for the submission of a document.
    parameters
    createTemplate Name of bibconvert's configuration file used for creating the mysql record.
    sourceTemplate Name of bibconvert's source file.


    Move_From_Pending
    description
    This function retrieves the data of a submission which was temporarily stored in the "pending" directory (waiting for an approval for example), and moves it to the current action directory.
    parameters
    none


    Move_to_Done
    description
    This function moves the existing submission directory to the /done directory. If the Then it tars and gzips the directory.
    parameters
    none


    Move_to_Pending
    description
    This function moves the existing submission directory to the /pending directory. It is used to store temporarily this data until it is approved or...
    parameters
    none


    Print_Success
    description
    This function simply displays a text on the screen, telling the user the submission went fine. To be used in the "Submit New Record" action.
    parameters
    status Depending on the value of this parameter, the function adds an additional text to the email.
    This parameter can be one of:
    ADDED: The file has been integrated in the database.
    APPROVAL: The file has been sent for approval to a referee.
    or can stay empty.
    edsrn Name of the file containing the reference of the document
    newrnin Name of the file containing the 2nd reference of the document (if any)


    Print_Success_APP
    description
    This function simply displays a text on the screen, telling the referee his decision has been taken into account. To be used in the Approve (APP) action.
    parameters
    none


    Print_Success_MBI
    description
    This function simply displays a text on the screen, telling the user the modification went fine. To be used in the Modify Record (MBI) action.
    parameters
    none


    Print_Success_SRV
    description
    This function simply displays a text on the screen, telling the user the revision went fine. To be used in the Submit New File (SRV) action.
    parameters
    none


    Report_Number_Generation
    description
    This function is used to automatically generate a reference number.
    After generating the reference, the function saves it into the [newrnin] file and sets the global variable containing this reference.
    parameters
    autorngen If set to "Y": The reference number is generated.
    If set to "N": The reference number is read from a file ([newrnin])
    If set to "A": The reference number will be the access number of the submission.
    counterpath indicates the file in which the program will find the counter for this reference generation.
    The value of this parameter may contain one of:
    "<PA>categ</PA>": in this case this string is replaced with the content of the file [altrnin]
    "<PA>yy</PA>": in this case this string is replaced by the current year (4 digits) if [altyeargen] is set to "AUTO", or by the content of the [altyeargen] file in any other case. (this content should be formatted as a date (dd/mm/yyyy).
    rnformat This is the format used by the program to create the reference. The program computes the value of the parameter and appends a "-" followed by the current value of the counter increased by 1.
    The value of this parameter may contain one of:
    "<PA>categ</PA>": in this case this string is replaced with the content of the file [altrnin]
    "<PA>yy</PA>": in this case this string is replaced by the current year (4 digits) if [altyeargen] is set to "AUTO", or by the content of the [altyeargen] file in any other case. (this content should be formatted as a date (dd/mm/yyyy).
    rnin This parameter contains the name of the file in which the program will find the category if needed. The content of thif file will then replace the string <PA>categ</PA> in the reference format or in the counter path.
    yeargen This parameter can be one of:
    "AUTO": in this case the program takes the current 4 digit year.
    "<filename>": in this case the program extract the year from the file which name is <filename>. This file should contain a date (dd/mm/yyyy).
    edsrn Name of the file in which the created reference will be stored.


    Send_Approval_Request
    description
    This function sends an email to the referee in order to start the simple approval process.
    This function is very CERN-specific and should be changed in case of external use.
    Must be called after the Get_Report_Number function.
    parameters
    addressesDAM email addresses of the people who will receive this email (comma separated list). this parameter may contain the <CATEG> string. In which case the variable computed from the [categformatDAM] parameter replaces this string.
    eg.: "<CATEG>-email@cern.ch"
    categformatDAM contains a regular expression used to compute the category of the document given the reference of the document.
    eg.: if [categformatAFP]="TEST-<CATEG>-.*" and the reference of the document is "TEST-CATEGORY1-2001-001", then the computed category equals "CATEGORY1"
    authorfile name of the file in which the authors are stored
    titlefile name of the file in which the title is stored.
    directory parameter used to create the URL to access the files.


    Send_APP_Mail
    description
    Sends an email to warn people that a document has been approved.
    parameters
    addressesAPP email addresses of the people who will receive this email (comma separated list). this parameter may contain the <CATEG> string. In which case the variable computed from the [categformatAFP] parameter replaces this string.
    eg.: "<CATEG>-email@cern.ch"
    categformatAPP contains a regular expression used to compute the category of the document given the reference of the document.
    eg.: if [categformatAFP]="TEST-<CATEG>-.*" and the reference of the document is "TEST-CATEGORY1-2001-001", then the computed category equals "CATEGORY1"
    newrnin Name of the file containing the 2nd reference of the approved document (if any).
    edsrn Name of the file containing the reference of the approved document.


    Send_Modify_Mail
    description
    This function sends an email to warn people a document has been modified and the user his modifications have been taken into account..
    parameters
    addressesMBI email addresses of the people who will receive this email (comma separated list).
    fieldnameMBI name of the file containing the modified fields.
    sourceDoc Long name for the type of document. This name will be displayed in the mail.
    emailfile name of the file in which the email of the modifier will be found.


    Send_SRV_Mail
    description
    This function sends an email to warn people a revision has been carried out.
    parameters
    notefile name of the file in which the note can be found
    emailfile name of the file containing the submitter's email
    addressesSRV email addresses of the people who will receive this email (comma separated list). this parameter may contain the <CATEG> string. In which case the variable computed from the [categformatDAM] parameter replaces this string.
    eg.: "<CATEG>-email@cern.ch"
    categformatDAM contains a regular expression used to compute the category of the document given the reference of the document.
    eg.: if [categformatAFP]="TEST-<CATEG>-.*" and the reference of the document is "TEST-CATEGORY1-2001-001", then the computed category equals "CATEGORY1"


    Test_Status
    description
    This function checks whether the considered document has been requested for approval and is still waiting for approval. It also checks whether the password stored in file "password" of the submission directory corresponds to the password associated with the document..
    parameters
    none


    Update_Approval_DB
    description
    This function updates the approval database when a document has just been approved or rejected. It uses the [categformatDAM] parameter to compute the category of the document.
    Must be called after the Get_Report_Number function.
    parameters
    categformatDAM It contains the regular expression which allows the retrieval of the category from the reference number.
    Eg: if [categformatDAM]="TEST-<CATEG>-.*" and the reference is "TEST-CATEG1-2001-001" then the category will be recognized as "CATEG1".


    Upload_Files
    description
    This function displays the list of already transfered files (main and additional ones), and also outputs an html form for uploading other files (pictures or fulltexts).
    parameters
    maxsize Maximum allowed size for the transfered files (size in bits)
    minsize Minimum allowed size for the transfered files (size in bits)
    iconsize In case the transfered files are pictures (jpg, gif or pdf), the function will automatically try to create icons from them. This parameter indicates the size in pixel of the created icon.
    type This can be one of "fulltext" or "picture". If the type is set to "picture" then the function will try to create icons (uses the ImageMagick's "convert" tool)

    See also:

  • create a new function
  • delete a function
  • edit a function
  • diff --git a/modules/websubmit/doc/admin/functionedit.html.wml b/modules/websubmit/doc/admin/functionedit.html.wml index fc56911a7..c017f8eb6 100644 --- a/modules/websubmit/doc/admin/functionedit.html.wml +++ b/modules/websubmit/doc/admin/functionedit.html.wml @@ -1,55 +1,57 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Edit a function" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    What is it?

     Edit a function, add parameters to it...

    How to get there?

     Click on the "Available Functions" link in the websubmit admin right menu.

    How to do this?

     On this page appears a list of all functions defined into the system. Two columns give you access to some features:

    See also:

  • create a new function
  • delete a function
  • diff --git a/modules/websubmit/doc/admin/functionnew.html.wml b/modules/websubmit/doc/admin/functionnew.html.wml index 416777cae..73432959e 100644 --- a/modules/websubmit/doc/admin/functionnew.html.wml +++ b/modules/websubmit/doc/admin/functionnew.html.wml @@ -1,68 +1,70 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Create a new function" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    How to get there?

     Click on the "Available Functions" link in the websubmit admin right menu. Then click on the "Add New Function" button.

    How to do this?

     Enter the name of the new function as well as a text description if you wish.
     You will then reach a page where you can add parameters to your new function.

     Don't forget to add the function file inside the /python/cdsware/websubmit_functions directory and to name the file after the function. Functions must be written in Python. Here is an example implementation of a function:

    /python/cdsware/websubmit_functions/Get_Report_Number.py:

    def Get_Report_Number (parameters,curdir,form): global rn #Path of file containing report number if os.path.exists("%s/%s" % (curdir,parameters['edsrn'])): fp = open("%s/%s" % (curdir,parameters['edsrn']),"r") rn = fp.read() rn = rn.replace("/","_") rn = re.sub("[\n\r ]+","",rn) else: rn = "" return ""

    The function parameters are passed to the function through the parameters dictionary.
    The curdir parameter contains the current submission directory path.
    The form parameter contains the form passed to the current web page for possible reference from inside the function.

    See also:

  • edit a function
  • delete a function
  • diff --git a/modules/websubmit/doc/admin/functions.html.wml b/modules/websubmit/doc/admin/functions.html.wml index 09aa055c7..41cd01382 100644 --- a/modules/websubmit/doc/admin/functions.html.wml +++ b/modules/websubmit/doc/admin/functions.html.wml @@ -1,49 +1,51 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Functions" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    Description:

     In webSubmit, each action process is divided into two phases: the gathering of data (through a web form) and the treatment of the data.

     The treatment is organised in a succession of functions, each of which has its own input and output.

     The functions themselves are stored in separate files (one per function) in the /python/cdsware/websubmit_functions directory. A file containing a function MUST be named after the function name itself. For example, a function called "Move_to_Done" MUST be stored in a file called Move_to_Done.py. The case is important here.

     For a description of what should be inside the file, have a look to the "create a new function" page of this guide.

     To each function you can associate one or several parameters, which may have different values according to the document type the function is used for. One parameter may be used for different functions. For example one standard parameter used in several functions is called "edsrn". It contains the name of the file in which the reference of the document is stored.

    See also:

  • create a new function
  • delete a function
  • edit a function
  • diff --git a/modules/websubmit/doc/admin/implementfunctions.html.wml b/modules/websubmit/doc/admin/implementfunctions.html.wml index 5e1d89b31..0d6b2967c 100644 --- a/modules/websubmit/doc/admin/implementfunctions.html.wml +++ b/modules/websubmit/doc/admin/implementfunctions.html.wml @@ -1,74 +1,76 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Setup the Data Treatment" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    What is it?

     At the end of a submission, we have to tell webSubmit what to do with the data it has gathered. This is expressed through one or several lists of functions (we call this the "end script").

    How to get there?

     From the main page of the manager, click on the title of the relevant document type.
    Then click on the icon in the "Edit Functions" column of the relevant line.

    List of functions

     Here is what you may see then (this is the end script list of functions for a document type named "TEST" and action "FTT" - Fulltext Transfer):



     You can see the ordered list of all the functions in the end script. This end script is composed of 2 steps (see the "step" column). The functions composing the first step are called, then there should be action from the user which would trigger step 2 - in the present case the Upload_Files function (last of step 1) allows the user to upload additional files by creating a web form, then when the user finishes, he presses another button created by the function, which ends the process. Functions of step 2 are then called.

     Why implement multiple steps? The reason can vary with the task you want to accomplish. For example with the example above (Fulltext Transfer), we use the first step to allow the upload of multiple additional files (dynamic action) which could not be done in the static web form. In the case of the "Modify Bibliographic Information" action, the first step is used to display the fields the user wants to modify, prefilled with the existing values. The reason is once again that the task we want to realise is dynamic.

     The "score" column is used to order the functions. The function which has the smallest score will be called first, and the largest score will be called last.

     You can then:  Please note: To pass one function from one step to another, you have to delete it then add it again in the proper step.

    See also:

  • all about functions
  • diff --git a/modules/websubmit/doc/admin/implementwebform.html.wml b/modules/websubmit/doc/admin/implementwebform.html.wml index fe8424e70..78e317365 100644 --- a/modules/websubmit/doc/admin/implementwebform.html.wml +++ b/modules/websubmit/doc/admin/implementwebform.html.wml @@ -1,160 +1,162 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Create and maintain the web form" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    What is it?

     Create and define the web form used during an action.

    How to get there?

     From the main page of the manager, click on the title of the relevant document type. Then click on the icon in the "Edit Submission Pages" column of the relevant line.

    List of the form pages

     A web form can be split over several pages. This is a matter of easiness for the user: he will have an overview of all form fields present on the page without having to scroll it. Moreover, each time the user goes from one page to the other, all entered data are saved. If he wants to stop then come back later (or if the browser crashes!) he will be able to get back to the submission at the exact moment he left it.

     Once here:



    you can see the ordered list of already existing pages in the web form. In this example there are 4 pages. You can then:

    Edit one form page

     Click on a page number, you then arrive to a place where you can edit this form page.

     A form page is composed of a list of form elements. Each of these form elements is roughly made of an html template and a text displayed before the form field.

     In the first part of the page, you have a preview of what the form will look like to the user:


     Then the second table shows you the list of the form elements present on the page:


     You can then:

    Edit the html template of one form element

     In the html template edition page, you can modify the following values: Important warning! Please remember this is a template! This means it can be used in many different web forms/implementations. When you modify this template the modification will take place in each of the implementations this template has been used.

    Edit one form element

     In the form element edition page, you may modify the following values:

    Add one form element

     Click on the "ADD ELEMENT TO PAGE" button. There you will have to decide which html template field to use ("Element Description code"), and also the field mentioned above.

    Create a new html template

     You have access to the list of all existing html templates by clicking on the "View element descriptions" link in the websubmit admin right menu.
    By clicking on one of them, you will have access to its description.
    If no template corresponds to the one you seek, click on the "ADD NEW ELEMENT DESCRIPTION" button to create one.
     The fields you have to enter in the creation form are the one described in the Edit the html template of one form element section.
    You also have to choose a name for this new element.
    IMPORTANT! The name you choose for your html element is also the name of the file in which webSubmit will save the value entered in this field. This is also the one you will use in your ".html>bibConvert" configuration. Bibconvert is the program which will convert the data gathered in webSubmit in a formatted XML file for insertion in the documents database.

    Create and edit a checking function.

     Click on the "View Checks" link in the websubmit admin right menu. You then have access to a list of all the defined javascript functions.
    You can then click on the name of the function you want to modify, or click on the "ADD NEW CHECK" button to create a new javascript function.
    These functions are inserted in the web page when the user is doing his submission. When he clicks on "next page", this function will be called with the value entered by the user as a parameter. If the function returns false, the page does not change and an error message should be output. If the function returns true, everything is correct, so page can be changed.

    See also:

  • create and maintain the data treatment
  • diff --git a/modules/websubmit/doc/admin/index.html.wml b/modules/websubmit/doc/admin/index.html.wml index 52d59808a..4f6a84372 100644 --- a/modules/websubmit/doc/admin/index.html.wml +++ b/modules/websubmit/doc/admin/index.html.wml @@ -1,81 +1,82 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="" \ - navtrail_previous_links="/admin/> > /admin/websubmit/>" - + navtrail_previous_links="/admin/> > /admin/websubmit/>" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    Table of Contents

    diff --git a/modules/websubmit/doc/admin/introduction.html.wml b/modules/websubmit/doc/admin/introduction.html.wml index e086ac5a8..e81b52a47 100644 --- a/modules/websubmit/doc/admin/introduction.html.wml +++ b/modules/websubmit/doc/admin/introduction.html.wml @@ -1,64 +1,66 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="General overview of the manager tool" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    Things to know before using the Manager:

    See also:

  • using the manager through an example
  • interface description
  • actions
  • document types
    -
  • \ No newline at end of file + diff --git a/modules/websubmit/doc/admin/protection.html.wml b/modules/websubmit/doc/admin/protection.html.wml index 7eaaf5fc7..1c7dc24d0 100644 --- a/modules/websubmit/doc/admin/protection.html.wml +++ b/modules/websubmit/doc/admin/protection.html.wml @@ -1,41 +1,43 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include "configbis.wml" #include "cdspage.wml" \ title="Protection" \ - navtrail_previous_links="/admin/> > /admin/websubmit/> > >" + navtrail_previous_links="/admin/> > /admin/websubmit/> > >" \ + navbar_name="admin" \ + navbar_select="websubmit-admin-guide"

    Description:

     In webSubmit, you can restrict the use of some actions on a given document type to a list of users. You can use the webAccess manager for this.

     Let's say you want to restrict the submission of new TEXT documents to a given user. You should then create a role in webAccess which will authorize the action "submit" over doctype "TEXT" and act "SBI" (Submit new record). You can call this role "submitter_TEXT_SBI" for example. Then link the role to the proper users.
     Another example: if you wish to authorize a user to Modify the bibliographic data of PICT documents, you have to create a role which authorize the action "submit" over doctype "PICT" and act "MBI". This role can be called "submitter_PICT_MBI" or whatever you want.

     If no role is defined for a given action and a given document type, then all users will be allowed to use it.