[Koha-cvs] CVS: koha/updater updatedatabase,1.100.2.1,1.100.2.2

Paul POULAIN tipaul at users.sourceforge.net
Tue Mar 29 17:41:46 CEST 2005


Update of /cvsroot/koha/koha/updater
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21746/updater

Modified Files:
      Tag: rel_2_2
	updatedatabase 
Log Message:
* new permissions : management & tools. You now have 2 new permissions :
	- management : means the user can manage library parameters, but NOT system parameters.
	- parameters : means the user can manage all parameters (including system parameters : marc structure, authorised values, system preferences. Was the only flag previously existing)
	- tools : means the user can import/export datas & edit barcodes.
note that for compatibility reasons, a user having "parameters" can access everything.
* new permission scheme. In every template new variables are available. They are written CAN_user_permission, with permission being one of the permission flag. templates can now show or hidde menu entries depending on user permissions. For example, a user with just circ permissions should have only the "circulation" button on home page. Templates are NOT updated in this version (except for system parameters, as proof of concept), they will be in the next ones. But the scheme is ready.


Index: updatedatabase
===================================================================
RCS file: /cvsroot/koha/koha/updater/updatedatabase,v
retrieving revision 1.100.2.1
retrieving revision 1.100.2.2
diff -C2 -r1.100.2.1 -r1.100.2.2
*** updatedatabase	17 Mar 2005 17:15:18 -0000	1.100.2.1
--- updatedatabase	29 Mar 2005 15:41:43 -0000	1.100.2.2
***************
*** 543,546 ****
--- 543,560 ----
              defaulton           => 0
          },
+         {
+             uniquefieldrequired => 'bit',
+             bit                 => 12,
+             flag                => 'management',
+             flagdesc            => 'Set library management parameters',
+             defaulton           => 0
+         },
+         {
+             uniquefieldrequired => 'bit',
+             bit                 => 13,
+             flag                => 'tools',
+             flagdesc            => 'Use tools (export, import, barcodes)',
+             defaulton           => 0
+         },        
      ],
      systempreferences => [
***************
*** 812,815 ****
--- 826,851 ----
  	    type		=> 'free',
          },
+         {
+             uniquefieldrequired => 'variable',
+             variable            => 'MIME',
+             value               => 'OPENOFFICE.ORG',
+             forceupdate		=> { 'explanation' => 1,
+ 	    			     'type' => 1,
+ 				     'options' => 1},
+             explanation         => 'Define the default application for report exportations into files',
+ 	        type		=> 'Choice',
+ 	        options		=> 'EXCEL|OPENOFFICE.ORG'
+         },
+         {
+             uniquefieldrequired => 'variable',
+             variable            => 'Delimiter',
+             value               => ';',
+ 	        forceupdate		=> { 'explanation' => 1,
+ 	    			     'type' => 1,
+ 				     'options' => 1},
+             explanation         => 'Define the default separator character for report exportations into files',
+ 	        type		=> 'Choice',
+ 	        options		=> ';|tabulation|,|/|\|#'
+         },
      ],
  
***************
*** 1397,1400 ****
--- 1433,1444 ----
  
  # $Log$
+ # Revision 1.100.2.2  2005/03/29 15:41:43  tipaul
+ # * new permissions : management & tools. You now have 2 new permissions :
+ # 	- management : means the user can manage library parameters, but NOT system parameters.
+ # 	- parameters : means the user can manage all parameters (including system parameters : marc structure, authorised values, system preferences. Was the only flag previously existing)
+ # 	- tools : means the user can import/export datas & edit barcodes.
+ # note that for compatibility reasons, a user having "parameters" can access everything.
+ # * new permission scheme. In every template new variables are available. They are written CAN_user_permission, with permission being one of the permission flag. templates can now show or hidde menu entries depending on user permissions. For example, a user with just circ permissions should have only the "circulation" button on home page. Templates are NOT updated in this version (except for system parameters, as proof of concept), they will be in the next ones. But the scheme is ready.
+ #
  # Revision 1.100.2.1  2005/03/17 17:15:18  tipaul
  # defaulting opacstylesheet to '' instead of 'normal' (that is stupid)





More information about the Koha-cvs mailing list