Refbase update_2021-01-28_15_58
This commit is contained in:
93
note/GNU_general_public_license.txt
Normal file
93
note/GNU_general_public_license.txt
Normal file
@@ -0,0 +1,93 @@
|
||||
The GNU General Public License (GPL)
|
||||
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow.
|
||||
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
51
note/auth_table_info.txt
Normal file
51
note/auth_table_info.txt
Normal file
@@ -0,0 +1,51 @@
|
||||
MySQL database "literature", table "auth"
|
||||
=========================================
|
||||
|
||||
field names
|
||||
-----------
|
||||
|
||||
fields available in table "auth" description
|
||||
-------------------------------- -----------
|
||||
|
||||
user_id the user's unique ID number (which corresponds to the user_id number of the user's record entry within the "users" table)
|
||||
email the user's email address at work (required!) -> needed for logging into the database (must be unique among all users!)
|
||||
password the user's password (required!) -> needed for logging into the database
|
||||
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
user_id MEDIUMINT UNSIGNED NOT NULL PRIMARY KEY
|
||||
email VARCHAR(50) NOT NULL
|
||||
password VARCHAR(15) NOT NULL
|
||||
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE auth (user_id MEDIUMINT UNSIGNED NOT NULL PRIMARY KEY, email VARCHAR(50) NOT NULL, password VARCHAR(15) NOT NULL);
|
||||
|
||||
|
||||
rules for data import
|
||||
---------------------
|
||||
- fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
|
||||
- order of fields must resemble the above field order!
|
||||
- DATE format must be YYYY-MM-DD
|
||||
- TIME format must be HH:MM:SS
|
||||
- carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
|
||||
- empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
|
||||
- character encoding: higher ASCII chars must be encoded as ISO-8859-1
|
||||
- file encoding must be UNIX
|
||||
|
||||
|
||||
load data code
|
||||
--------------
|
||||
|
||||
LOAD DATA LOCAL INFILE "/PATH/TO/FILE/auth.txt" INTO TABLE auth;
|
||||
|
||||
or, alternatively, use something like the following from your shell:
|
||||
|
||||
mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/auth.txt"
|
||||
|
4
note/copyright_notice.txt
Normal file
4
note/copyright_notice.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Project: Web Reference Database (refbase) <http://www.refbase.net>
|
||||
Copyright: Matthias Steffens <mailto:refbase@extracts.de>
|
||||
This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
|
||||
Please see the GNU General Public License for more details.
|
157
note/db_field_info.txt
Normal file
157
note/db_field_info.txt
Normal file
@@ -0,0 +1,157 @@
|
||||
MySQL database "literature", table "refs"
|
||||
=========================================
|
||||
|
||||
field names
|
||||
-----------
|
||||
|
||||
fields available in table "refs" matching field in "refs.fp5"
|
||||
-------------------------------- ----------------------------
|
||||
|
||||
author Author Generic [A_13]
|
||||
address Author Affiliation [03]
|
||||
corporate_author Corporate Author [A_40]
|
||||
first_author FirstAuthorGeneric [A_23]
|
||||
author_count NumberOfAuthorsGeneric
|
||||
title Title Generic [A_14]
|
||||
orig_title Translated Title [11]
|
||||
publication Journal Book Title Generic [A_15]
|
||||
abbrev_journal Abbrev. Journal Title [46]
|
||||
year Date of Publication [20]
|
||||
date (none)
|
||||
volume Volume ID [22]
|
||||
volume_numeric Volume Numeric
|
||||
issue Issue ID [24]
|
||||
pages Pages Generic [A_19]
|
||||
first_page FirstPage [A_34]
|
||||
keywords Keywords [45]
|
||||
abstract Abstract [43]
|
||||
edition Edition [15]
|
||||
editor Author, Monographic [07]
|
||||
publisher Publisher [19]
|
||||
place Place of Publication [18]
|
||||
medium Packaging Method [27]
|
||||
series_editor Series Editor [30]
|
||||
series_title Series Title [32]
|
||||
abbrev_series_title Abbrev. Series Title [A_17]
|
||||
series_volume Series Volume ID [33]
|
||||
series_volume_numeric (none!)
|
||||
series_issue Series Issue ID [34]
|
||||
issn ISSN [40]
|
||||
isbn ISBN [41]
|
||||
language Language [35]
|
||||
summary_language Summary Language [A_10]
|
||||
area Research Area [A_05]
|
||||
type Record Type [A_06]
|
||||
publication_status (none!)
|
||||
thesis (none!)
|
||||
expedition Expedition [A_11]
|
||||
doi DOI [A_26]
|
||||
conference Conference [A_33]
|
||||
url Location|URL [38]
|
||||
call_number Call Number [44] (in "Refs Mat.fp5": IPOE Literature DB Call Number [A_41])
|
||||
location Copy Location [A_35]
|
||||
contribution_id Contribution ID
|
||||
online_publication (none!)
|
||||
online_citation (none!)
|
||||
file File Name [A_27]
|
||||
notes Notes [42]
|
||||
serial Serial Number
|
||||
orig_record Original Record
|
||||
approved Approved Boolean
|
||||
created_date Created Date [A_36]
|
||||
created_time Created Time [A_38]
|
||||
created_by Erstellt von
|
||||
modified_date Modified Date [A_37]
|
||||
modified_time Modified Time [A_39]
|
||||
modified_by Ge<47>ndert von
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
author TEXT
|
||||
address TEXT
|
||||
corporate_author VARCHAR(255)
|
||||
first_author VARCHAR(100)
|
||||
author_count TINYINT UNSIGNED
|
||||
title TEXT
|
||||
orig_title TEXT
|
||||
publication VARCHAR(255)
|
||||
abbrev_journal VARCHAR(100)
|
||||
year SMALLINT
|
||||
date VARCHAR(50)
|
||||
volume VARCHAR(50)
|
||||
volume_numeric SMALLINT UNSIGNED
|
||||
issue VARCHAR(50)
|
||||
pages VARCHAR(50)
|
||||
first_page MEDIUMINT UNSIGNED
|
||||
keywords TEXT
|
||||
abstract TEXT
|
||||
edition TINYINT UNSIGNED
|
||||
editor TEXT
|
||||
publisher VARCHAR(255)
|
||||
place VARCHAR(100)
|
||||
medium VARCHAR(50)
|
||||
series_editor TEXT
|
||||
series_title TEXT
|
||||
abbrev_series_title VARCHAR(100)
|
||||
series_volume VARCHAR(50)
|
||||
series_volume_numeric SMALLINT UNSIGNED
|
||||
series_issue VARCHAR(50)
|
||||
issn VARCHAR(100)
|
||||
isbn VARCHAR(100)
|
||||
language VARCHAR(100)
|
||||
summary_language VARCHAR(100)
|
||||
area VARCHAR(255)
|
||||
type VARCHAR(100)
|
||||
publication_status ENUM("published","in print","submitted","unpublished")
|
||||
thesis ENUM("Bachelor's thesis","Master's thesis","Ph.D. thesis","Diploma thesis","Doctoral thesis","Habilitation thesis")
|
||||
expedition VARCHAR(255)
|
||||
doi VARCHAR(100)
|
||||
conference VARCHAR(255)
|
||||
url VARCHAR(255)
|
||||
call_number TEXT
|
||||
location TEXT
|
||||
contribution_id VARCHAR(100)
|
||||
online_publication ENUM("no","yes") NOT NULL
|
||||
online_citation VARCHAR(255)
|
||||
file VARCHAR(255)
|
||||
notes TEXT
|
||||
serial MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
orig_record MEDIUMINT
|
||||
approved ENUM("no","yes") NOT NULL
|
||||
created_date DATE
|
||||
created_time TIME
|
||||
created_by VARCHAR(100)
|
||||
modified_date DATE
|
||||
modified_time TIME
|
||||
modified_by VARCHAR(100)
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE refs (author TEXT, address TEXT, corporate_author VARCHAR(255), first_author VARCHAR(100), author_count TINYINT UNSIGNED, title TEXT, orig_title TEXT, publication VARCHAR(255), abbrev_journal VARCHAR(100), year SMALLINT, date VARCHAR(50), volume VARCHAR(50), volume_numeric SMALLINT UNSIGNED, issue VARCHAR(50), pages VARCHAR(50), first_page MEDIUMINT UNSIGNED, keywords TEXT, abstract TEXT, edition TINYINT UNSIGNED, editor TEXT, publisher VARCHAR(255), place VARCHAR(100), medium VARCHAR(50), series_editor TEXT, series_title TEXT, abbrev_series_title VARCHAR(100), series_volume VARCHAR(50), series_volume_numeric SMALLINT UNSIGNED, series_issue VARCHAR(50), issn VARCHAR(100), isbn VARCHAR(100), language VARCHAR(100), summary_language VARCHAR(100), area VARCHAR(255), type VARCHAR(100), publication_status ENUM("published","in print","submitted","unpublished"), thesis ENUM("Bachelor's thesis","Master's thesis","Ph.D. thesis","Diploma thesis","Doctoral thesis","Habilitation thesis"), expedition VARCHAR(255), doi VARCHAR(100), conference VARCHAR(255), url VARCHAR(255), call_number TEXT, location TEXT, contribution_id VARCHAR(100), online_publication ENUM("no","yes") NOT NULL, online_citation VARCHAR(255), file VARCHAR(255), notes TEXT, serial MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, orig_record MEDIUMINT, approved ENUM("no","yes") NOT NULL, created_date DATE, created_time TIME, created_by VARCHAR(100), modified_date DATE, modified_time TIME, modified_by VARCHAR(100));
|
||||
|
||||
|
||||
rules for data import
|
||||
---------------------
|
||||
- fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
|
||||
- order of fields must resemble the above field order!
|
||||
- DATE format must be YYYY-MM-DD -> Available via Filemaker Calculation Fields 'Created Date [A_36]' & 'Modified Date [A_37]'
|
||||
- TIME format must be HH:MM:SS -> Available via Filemaker Calculation Fields 'Created Time [A_38]' & 'Modified Time [A_39]'
|
||||
- carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
|
||||
- empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
|
||||
- character encoding: higher ASCII chars must be encoded as ISO-8859-1 aka 'Western (ISO Latin 1)'
|
||||
- file encoding must be UNIX
|
||||
|
||||
|
||||
load data code
|
||||
--------------
|
||||
|
||||
LOAD DATA LOCAL INFILE "/PATH/TO/FILE/refs.txt" INTO TABLE refs;
|
||||
|
||||
or, alternatively, use something like the following from your shell:
|
||||
|
||||
mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/refs.txt"
|
||||
|
82
note/deleted_field_info.txt
Normal file
82
note/deleted_field_info.txt
Normal file
@@ -0,0 +1,82 @@
|
||||
MySQL database "literature", table "deleted"
|
||||
============================================
|
||||
|
||||
-> This table holds records that have been deleted from the main table "refs". Deleted
|
||||
data will be stored in the "deleted" table until they are removed manually. This is
|
||||
to provide the admin with a simple recovery method in case a user deleted data by
|
||||
accident...
|
||||
|
||||
-> Order and type specifications of columns must match *exactly* those of table "refs"!
|
||||
The only difference compared to table "refs" is that there are three additional columns
|
||||
('deleted_date', 'deleted_time' and 'deleted_by') at the very end of the column list:
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
author TEXT
|
||||
address TEXT
|
||||
corporate_author VARCHAR(255)
|
||||
first_author VARCHAR(100)
|
||||
author_count TINYINT UNSIGNED
|
||||
title TEXT
|
||||
orig_title TEXT
|
||||
publication VARCHAR(255)
|
||||
abbrev_journal VARCHAR(100)
|
||||
year SMALLINT
|
||||
date VARCHAR(50)
|
||||
volume VARCHAR(50)
|
||||
volume_numeric SMALLINT UNSIGNED
|
||||
issue VARCHAR(50)
|
||||
pages VARCHAR(50)
|
||||
first_page MEDIUMINT UNSIGNED
|
||||
keywords TEXT
|
||||
abstract TEXT
|
||||
edition TINYINT UNSIGNED
|
||||
editor TEXT
|
||||
publisher VARCHAR(255)
|
||||
place VARCHAR(100)
|
||||
medium VARCHAR(50)
|
||||
series_editor TEXT
|
||||
series_title TEXT
|
||||
abbrev_series_title VARCHAR(100)
|
||||
series_volume VARCHAR(50)
|
||||
series_volume_numeric SMALLINT UNSIGNED
|
||||
series_issue VARCHAR(50)
|
||||
issn VARCHAR(100)
|
||||
isbn VARCHAR(100)
|
||||
language VARCHAR(100)
|
||||
summary_language VARCHAR(100)
|
||||
area VARCHAR(255)
|
||||
type VARCHAR(100)
|
||||
publication_status ENUM("published","in print","submitted","unpublished")
|
||||
thesis ENUM("Bachelor's thesis","Master's thesis","Ph.D. thesis","Diploma thesis","Doctoral thesis","Habilitation thesis")
|
||||
expedition VARCHAR(255)
|
||||
doi VARCHAR(100)
|
||||
conference VARCHAR(255)
|
||||
url VARCHAR(255)
|
||||
call_number TEXT
|
||||
location TEXT
|
||||
contribution_id VARCHAR(100)
|
||||
online_publication ENUM("no","yes") NOT NULL
|
||||
online_citation VARCHAR(255)
|
||||
file VARCHAR(255)
|
||||
notes TEXT
|
||||
serial MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
orig_record MEDIUMINT
|
||||
approved ENUM("no","yes") NOT NULL
|
||||
created_date DATE
|
||||
created_time TIME
|
||||
created_by VARCHAR(100)
|
||||
modified_date DATE
|
||||
modified_time TIME
|
||||
modified_by VARCHAR(100)
|
||||
deleted_date DATE
|
||||
deleted_time TIME
|
||||
deleted_by VARCHAR(100)
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE deleted (author TEXT, address TEXT, corporate_author VARCHAR(255), first_author VARCHAR(100), author_count TINYINT UNSIGNED, title TEXT, orig_title TEXT, publication VARCHAR(255), abbrev_journal VARCHAR(100), year SMALLINT, date VARCHAR(50), volume VARCHAR(50), volume_numeric SMALLINT UNSIGNED, issue VARCHAR(50), pages VARCHAR(50), first_page MEDIUMINT UNSIGNED, keywords TEXT, abstract TEXT, edition TINYINT UNSIGNED, editor TEXT, publisher VARCHAR(255), place VARCHAR(100), medium VARCHAR(50), series_editor TEXT, series_title TEXT, abbrev_series_title VARCHAR(100), series_volume VARCHAR(50), series_volume_numeric SMALLINT UNSIGNED, series_issue VARCHAR(50), issn VARCHAR(100), isbn VARCHAR(100), language VARCHAR(100), summary_language VARCHAR(100), area VARCHAR(255), type VARCHAR(100), publication_status ENUM("published","in print","submitted","unpublished"), thesis ENUM("Bachelor's thesis","Master's thesis","Ph.D. thesis","Diploma thesis","Doctoral thesis","Habilitation thesis"), expedition VARCHAR(255), doi VARCHAR(100), conference VARCHAR(255), url VARCHAR(255), call_number TEXT, location TEXT, contribution_id VARCHAR(100), online_publication ENUM("no","yes") NOT NULL, online_citation VARCHAR(255), file VARCHAR(255), notes TEXT, serial MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, orig_record MEDIUMINT, approved ENUM("no","yes") NOT NULL, created_date DATE, created_time TIME, created_by VARCHAR(100), modified_date DATE, modified_time TIME, modified_by VARCHAR(100), deleted_date DATE, deleted_time TIME, deleted_by VARCHAR(100));
|
53
note/depends_table_info.txt
Normal file
53
note/depends_table_info.txt
Normal file
@@ -0,0 +1,53 @@
|
||||
MySQL database "literature", table "depends"
|
||||
============================================
|
||||
|
||||
field names
|
||||
-----------
|
||||
|
||||
fields available in table "depends" description
|
||||
----------------------------------- -----------
|
||||
|
||||
depends_id the unique ID number of this depends entry
|
||||
depends_external the unique name of the external utility that is required for a particular import or export format (specified in table 'formats')
|
||||
depends_enabled specifies globally whether the external utility is available and can be used ('true') or not ('false')
|
||||
depends_path the absolute path to the external utility
|
||||
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
depends_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
depends_external VARCHAR(100)
|
||||
depends_enabled ENUM("true","false") NOT NULL
|
||||
depends_path VARCHAR(255)
|
||||
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE depends (depends_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, depends_external VARCHAR(100), depends_enabled ENUM("true","false") NOT NULL, depends_path VARCHAR(255));
|
||||
|
||||
|
||||
rules for data import
|
||||
---------------------
|
||||
- fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
|
||||
- order of fields must resemble the above field order!
|
||||
- DATE format must be YYYY-MM-DD
|
||||
- TIME format must be HH:MM:SS
|
||||
- carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
|
||||
- empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
|
||||
- character encoding: higher ASCII chars must be encoded as ISO-8859-1
|
||||
- file encoding must be UNIX
|
||||
|
||||
|
||||
load data code
|
||||
--------------
|
||||
|
||||
LOAD DATA LOCAL INFILE "/PATH/TO/FILE/depends.txt" INTO TABLE depends;
|
||||
|
||||
or, alternatively, use something like the following from your shell:
|
||||
|
||||
mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/depends.txt"
|
||||
|
61
note/formats_table_info.txt
Normal file
61
note/formats_table_info.txt
Normal file
@@ -0,0 +1,61 @@
|
||||
MySQL database "literature", table "formats"
|
||||
============================================
|
||||
|
||||
field names
|
||||
-----------
|
||||
|
||||
fields available in table "formats" description
|
||||
----------------------------------- -----------
|
||||
|
||||
format_id the unique ID number of this format entry
|
||||
format_name the display name of this format as it occurs within the formats popup
|
||||
format_type the type of this format, either 'import' or 'export'
|
||||
format_enabled specifies globally whether the referenced format can be displayed within the formats popup ('true') [if a user chooses so] or not ('false')
|
||||
format_spec the unique name of the file holding the function that will output this format (format files must be located either within the 'export' or the 'import' directory)
|
||||
order_by a string that specifies the primary sort order for this entry (secondary sort order is by format name)
|
||||
depends_id the unique ID number of the referenced external utility that's required for this format (the ID corresponds to the depends_id number of the utility's entry within the "depends" table)
|
||||
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
format_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
format_name VARCHAR(100)
|
||||
format_type ENUM("export","import") NOT NULL
|
||||
format_enabled ENUM("true","false") NOT NULL
|
||||
format_spec VARCHAR(255)
|
||||
order_by VARCHAR(25)
|
||||
depends_id MEDIUMINT UNSIGNED NOT NULL
|
||||
|
||||
INDEX (format_name)
|
||||
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE formats (format_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, format_name VARCHAR(100), format_type ENUM("export","import") NOT NULL, format_enabled ENUM("true","false") NOT NULL, format_spec VARCHAR(255), order_by VARCHAR(25), depends_id MEDIUMINT UNSIGNED NOT NULL, INDEX (format_name));
|
||||
|
||||
|
||||
rules for data import
|
||||
---------------------
|
||||
- fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
|
||||
- order of fields must resemble the above field order!
|
||||
- DATE format must be YYYY-MM-DD
|
||||
- TIME format must be HH:MM:SS
|
||||
- carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
|
||||
- empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
|
||||
- character encoding: higher ASCII chars must be encoded as ISO-8859-1
|
||||
- file encoding must be UNIX
|
||||
|
||||
|
||||
load data code
|
||||
--------------
|
||||
|
||||
LOAD DATA LOCAL INFILE "/PATH/TO/FILE/formats.txt" INTO TABLE formats;
|
||||
|
||||
or, alternatively, use something like the following from your shell:
|
||||
|
||||
mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/formats.txt"
|
||||
|
82
note/grep_patterns.txt
Normal file
82
note/grep_patterns.txt
Normal file
@@ -0,0 +1,82 @@
|
||||
IPOE Lit DB Grep Patterns
|
||||
=========================
|
||||
|
||||
Finde Initialen mit Leerzeichen dazwischen
|
||||
------------------------------------------
|
||||
Script: Find in Chosen Records
|
||||
Field(s): Author Generic [A_13]
|
||||
Search: [[:upper:]] +-? *[[:upper:]]([^[:lower:]]|$)
|
||||
Comments: search case sensitive!
|
||||
|
||||
|
||||
Leerzeichen zwischen Initialen entfernen
|
||||
----------------------------------------
|
||||
Script: Find/Replace in Chosen Records
|
||||
Field(s): Author, Analytic [01] & Author, Monographic [07]
|
||||
Search: ([[:upper:]]) *(-?) *(?=[[:upper:]]([^[:lower:]]|$))
|
||||
Replace: \1\2
|
||||
Comments:
|
||||
|
||||
|
||||
Finde fehlendes Komma zwischen Nachname & Initialen
|
||||
---------------------------------------------------
|
||||
Script: Find in Chosen Records
|
||||
Field(s): Author Generic [A_13]
|
||||
Search: [[:lower:]][^-,[:lower:][:upper:]]+[[:upper:]]
|
||||
Comments: search case sensitive!; will find 'false positives' (e.g.: "Subba Rao, DV")!
|
||||
|
||||
|
||||
"/"-Delimiter -> "; "-Delimiter umwandeln
|
||||
-----------------------------------------
|
||||
Script: Find/Replace in Chosen Records
|
||||
Field(s): Keywords [45]
|
||||
Search: (?<=\w) *\/+ *(?=\w)
|
||||
Replace: ;
|
||||
Comments: Semikolon<space>; lookbehind/lookahead vermeidet Konvertierung von "</sub>" etc.
|
||||
|
||||
|
||||
Finde ausgeschriebene Vornamen
|
||||
------------------------------
|
||||
Script: Find in Chosen Records
|
||||
Field(s): Author Generic [A_13]
|
||||
Search: , *[^;[:lower:]]+[[:lower:]]
|
||||
Comments: search case sensitive!; will find 'false positives' (e.g.: "Piepenburg, D (ed)")!
|
||||
|
||||
|
||||
ausgeschriebene Vornamen auf Initial verk<72>rzen
|
||||
----------------------------------------------
|
||||
Script: Find/Replace in Chosen Records
|
||||
Field(s): Author, Analytic [01] & Author, Monographic [07]
|
||||
Search: (?<=,)([^[:lower:];]+)([[:upper:]])[[:lower:]]+
|
||||
Replace: \1\2
|
||||
Comments: - mehrmals ausf<73>hren!
|
||||
- ACHTUNG: "Jr" darf nicht hinter Initialen stehen (sonst wird es zu "J" verk<72>rzt!) -> sollte stattdessen nach Nachname stehen.
|
||||
Also "Smith Jr, WO" und nicht "Smith, WO Jr" o.<2E>.!!
|
||||
- ACHTUNG: Higher ASCII Chars werden durch [:lower:] NICHT erkannt!!
|
||||
|
||||
|
||||
Initial und Nachname in richtige Reihenfolge bringen
|
||||
----------------------------------------------------
|
||||
Script: Find/Replace in Chosen Records
|
||||
Field(s)??: Author, Analytic [01] & Author, Monographic [07]
|
||||
Search: (^[[:upper:]]) ([[:upper:][:lower:]+])
|
||||
Replace: \2\1
|
||||
Comments: geht noch nicht
|
||||
|
||||
|
||||
Benutzer eigene Signatur standardisieren
|
||||
----------------------------------------
|
||||
Script: Find/Replace in Chosen Records
|
||||
Field(s)??: Call No. [44]
|
||||
Search: (\w+)
|
||||
Replace: IP<49> @ ort(z.B mschmid) @ \1
|
||||
Comments: vorher alle IP<49> @ ausschliessen, f<>r Ort den benutzer einsetzen
|
||||
|
||||
|
||||
Zwei Datenfelder vereinen (hier die beiden Letzen)
|
||||
--------------------------------------------------
|
||||
Script: in bbedit
|
||||
Field(s)??: --
|
||||
Search: ([^\t]+)\t(.+)$
|
||||
Replace: \1\2\t
|
||||
Comments: nur f<>r Prof Spindler relevant, da Signatur auf zwei Felder aufgeteilt
|
87
note/group_permissions_table_info.txt
Normal file
87
note/group_permissions_table_info.txt
Normal file
@@ -0,0 +1,87 @@
|
||||
MySQL database "literature", table "group_permissions"
|
||||
======================================================
|
||||
|
||||
field names
|
||||
-----------
|
||||
|
||||
fields available in table "group_permissions" description
|
||||
--------------------------------------------- -----------
|
||||
|
||||
group_permission_id the unique ID number of this group permission entry
|
||||
group_id the group's unique ID number (which corresponds to the group_id number of the group's record entry within the "groups" table)
|
||||
allow_add specifies whether this group is allowed to add records to the database
|
||||
allow_edit specifies whether this group is allowed to edit records in the database
|
||||
allow_delete specifies whether this group is allowed to delete records from the database
|
||||
allow_download specifies whether this group is allowed to download files which are associated with particular records
|
||||
allow_upload specifies whether this group is allowed to upload files to the database
|
||||
allow_details_view specifies whether this group is allowed to view any record details
|
||||
allow_print_view specifies whether this group is allowed to view records in print view
|
||||
allow_cite specifies whether this group is allowed to build a reference list from selected records
|
||||
allow_import specifies whether this group is allowed to import records into the database
|
||||
allow_batch_import specifies whether this group is allowed to batch import records into the database
|
||||
allow_export specifies whether this group is allowed to export records from the database
|
||||
allow_batch_export specifies whether this group is allowed to batch export records from the database
|
||||
allow_user_groups specifies whether this group is allowed to use the 'user groups' feature
|
||||
allow_user_queries specifies whether this group is allowed to use the 'user queries' feature
|
||||
allow_rss_feeds specifies whether this group is allowed to generate dynamic RSS feeds from any query
|
||||
allow_sql_search specifies whether this group is allowed to execute custom SQL queries via 'sql_search.php'
|
||||
allow_modify_options specifies whether this group is allowed to change his personal data (like name, address or password)
|
||||
allow_edit_call_number specifies whether this group is allowed to fully edit the contents of the 'call_number' field (like the database admin)
|
||||
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
group_permission_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
group_id MEDIUMINT UNSIGNED NOT NULL
|
||||
allow_add ENUM('yes','no') NOT NULL
|
||||
allow_edit ENUM('yes','no') NOT NULL
|
||||
allow_delete ENUM('yes','no') NOT NULL
|
||||
allow_download ENUM('yes','no') NOT NULL
|
||||
allow_upload ENUM('yes','no') NOT NULL
|
||||
allow_details_view ENUM('yes','no') NOT NULL
|
||||
allow_print_view ENUM('yes','no') NOT NULL
|
||||
allow_cite ENUM('yes','no') NOT NULL
|
||||
allow_import ENUM('yes','no') NOT NULL
|
||||
allow_batch_import ENUM('yes','no') NOT NULL
|
||||
allow_export ENUM('yes','no') NOT NULL
|
||||
allow_batch_export ENUM('yes','no') NOT NULL
|
||||
allow_user_groups ENUM('yes','no') NOT NULL
|
||||
allow_user_queries ENUM('yes','no') NOT NULL
|
||||
allow_rss_feeds ENUM('yes','no') NOT NULL
|
||||
allow_sql_search ENUM('yes','no') NOT NULL
|
||||
allow_modify_options ENUM('yes','no') NOT NULL
|
||||
allow_edit_call_number ENUM('no','yes') NOT NULL
|
||||
|
||||
INDEX (group_id)
|
||||
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE group_permissions (group_permission_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, group_id MEDIUMINT UNSIGNED NOT NULL, allow_add ENUM('yes','no') NOT NULL, allow_edit ENUM('yes','no') NOT NULL, allow_delete ENUM('yes','no') NOT NULL, allow_download ENUM('yes','no') NOT NULL, allow_upload ENUM('yes','no') NOT NULL, allow_details_view ENUM('yes','no') NOT NULL, allow_print_view ENUM('yes','no') NOT NULL, allow_cite ENUM('yes','no') NOT NULL, allow_import ENUM('yes','no') NOT NULL, allow_batch_import ENUM('yes','no') NOT NULL, allow_export ENUM('yes','no') NOT NULL, allow_batch_export ENUM('yes','no') NOT NULL, allow_user_groups ENUM('yes','no') NOT NULL, allow_user_queries ENUM('yes','no') NOT NULL, allow_rss_feeds ENUM('yes','no') NOT NULL, allow_sql_search ENUM('yes','no') NOT NULL, allow_modify_options ENUM('yes','no') NOT NULL, allow_edit_call_number ENUM('no','yes') NOT NULL, INDEX (group_id));
|
||||
|
||||
|
||||
rules for data import
|
||||
---------------------
|
||||
- fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
|
||||
- order of fields must resemble the above field order!
|
||||
- DATE format must be YYYY-MM-DD
|
||||
- TIME format must be HH:MM:SS
|
||||
- carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
|
||||
- empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
|
||||
- character encoding: higher ASCII chars must be encoded as ISO-8859-1
|
||||
- file encoding must be UNIX
|
||||
|
||||
|
||||
load data code
|
||||
--------------
|
||||
|
||||
LOAD DATA LOCAL INFILE "/PATH/TO/FILE/group_permissions.txt" INTO TABLE group_permissions;
|
||||
|
||||
or, alternatively, use something like the following from your shell:
|
||||
|
||||
mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/group_permissions.txt"
|
||||
|
52
note/groups_table_info.txt
Normal file
52
note/groups_table_info.txt
Normal file
@@ -0,0 +1,52 @@
|
||||
MySQL database "literature", table "groups"
|
||||
===========================================
|
||||
|
||||
field names
|
||||
-----------
|
||||
|
||||
fields available in table "groups" description
|
||||
---------------------------------- -----------
|
||||
|
||||
group_id the unique ID number of this group entry
|
||||
group_name the display name of this group as it occurs within the groups popup in the user management interface
|
||||
order_by a string that specifies the primary sort order for this entry (secondary sort order is by group name)
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
group_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
group_name VARCHAR(100)
|
||||
order_by VARCHAR(25)
|
||||
|
||||
INDEX (group_name)
|
||||
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE groups (group_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, group_name VARCHAR(100), order_by VARCHAR(25), INDEX (group_name));
|
||||
|
||||
|
||||
rules for data import
|
||||
---------------------
|
||||
- fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
|
||||
- order of fields must resemble the above field order!
|
||||
- DATE format must be YYYY-MM-DD
|
||||
- TIME format must be HH:MM:SS
|
||||
- carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
|
||||
- empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
|
||||
- character encoding: higher ASCII chars must be encoded as ISO-8859-1
|
||||
- file encoding must be UNIX
|
||||
|
||||
|
||||
load data code
|
||||
--------------
|
||||
|
||||
LOAD DATA LOCAL INFILE "/PATH/TO/FILE/groups.txt" INTO TABLE groups;
|
||||
|
||||
or, alternatively, use something like the following from your shell:
|
||||
|
||||
mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/groups.txt"
|
||||
|
55
note/languages_table_info.txt
Normal file
55
note/languages_table_info.txt
Normal file
@@ -0,0 +1,55 @@
|
||||
MySQL database "literature", table "languages"
|
||||
==============================================
|
||||
|
||||
field names
|
||||
-----------
|
||||
|
||||
fields available in table "languages" description
|
||||
------------------------------------- -----------
|
||||
|
||||
language_id the unique ID number of this language entry
|
||||
language_name the display name of this language as it occurs within the languages popup
|
||||
language_enabled specifies globally whether the referenced language can be displayed within the languages popup ('true') [if a user chooses so] or not ('false')
|
||||
order_by a string that specifies the primary sort order for this entry (secondary sort order is by language name)
|
||||
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
language_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
language_name VARCHAR(50)
|
||||
language_enabled ENUM("true","false") NOT NULL
|
||||
order_by VARCHAR(25)
|
||||
|
||||
INDEX (language_name)
|
||||
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE languages (language_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, language_name VARCHAR(50), language_enabled ENUM("true","false") NOT NULL, order_by VARCHAR(25), INDEX (language_name));
|
||||
|
||||
|
||||
rules for data import
|
||||
---------------------
|
||||
- fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
|
||||
- order of fields must resemble the above field order!
|
||||
- DATE format must be YYYY-MM-DD
|
||||
- TIME format must be HH:MM:SS
|
||||
- carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
|
||||
- empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
|
||||
- character encoding: higher ASCII chars must be encoded as ISO-8859-1
|
||||
- file encoding must be UNIX
|
||||
|
||||
|
||||
load data code
|
||||
--------------
|
||||
|
||||
LOAD DATA LOCAL INFILE "/PATH/TO/FILE/languages.txt" INTO TABLE languages;
|
||||
|
||||
or, alternatively, use something like the following from your shell:
|
||||
|
||||
mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/languages.txt"
|
||||
|
71
note/queries_table_info.txt
Normal file
71
note/queries_table_info.txt
Normal file
@@ -0,0 +1,71 @@
|
||||
MySQL database "literature", table "queries"
|
||||
============================================
|
||||
|
||||
field names
|
||||
-----------
|
||||
|
||||
fields available in table "queries" description
|
||||
----------------------------------- -----------
|
||||
|
||||
query_id the unique ID number of this query entry
|
||||
user_id the user's unique ID number (which corresponds to the user_id number of the user's record entry within the "users" table)
|
||||
query_name the name that was assigned by the user to this query
|
||||
display_type the type of display requested by the user: either 'Display', 'Cite' or '' ('' will produce the default columnar output style)
|
||||
view_type the view type requested by the user: either 'Print', 'Web' or '' ('' will produce the default 'Web' output style)
|
||||
query the SQL query
|
||||
show_query specifies whether the SQL query will be displayed with the output ('1') or not ('0')
|
||||
show_links specifies whether links will be displayed with the output ('1') or not ('0')
|
||||
show_rows specifies how many rows will be displayed per results page (must be a positive integer)
|
||||
cite_style_selector the citation style chosen by the user
|
||||
cite_order specifies how the data will get sorted on citation (if this param is set to 'year', records will be listed in blocks sorted by year)
|
||||
last_execution the date & time this query was executed last
|
||||
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
query_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
user_id MEDIUMINT UNSIGNED NOT NULL
|
||||
query_name VARCHAR(255)
|
||||
display_type VARCHAR(25)
|
||||
view_type VARCHAR(25)
|
||||
query TEXT
|
||||
show_query TINYINT UNSIGNED
|
||||
show_links TINYINT UNSIGNED
|
||||
show_rows MEDIUMINT UNSIGNED
|
||||
cite_style_selector VARCHAR(50)
|
||||
cite_order VARCHAR(25)
|
||||
last_execution DATETIME
|
||||
|
||||
INDEX (user_id,query_name)
|
||||
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE queries (query_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, user_id MEDIUMINT UNSIGNED NOT NULL, query_name VARCHAR(255), display_type VARCHAR(25), view_type VARCHAR(25), query TEXT, show_query TINYINT UNSIGNED, show_links TINYINT UNSIGNED, show_rows MEDIUMINT UNSIGNED, cite_style_selector VARCHAR(50), cite_order VARCHAR(25), last_execution DATETIME, INDEX (user_id,query_name));
|
||||
|
||||
|
||||
rules for data import
|
||||
---------------------
|
||||
- fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
|
||||
- order of fields must resemble the above field order!
|
||||
- DATE format must be YYYY-MM-DD
|
||||
- TIME format must be HH:MM:SS
|
||||
- carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
|
||||
- empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
|
||||
- character encoding: higher ASCII chars must be encoded as ISO-8859-1
|
||||
- file encoding must be UNIX
|
||||
|
||||
|
||||
load data code
|
||||
--------------
|
||||
|
||||
LOAD DATA LOCAL INFILE "/PATH/TO/FILE/queries.txt" INTO TABLE queries;
|
||||
|
||||
or, alternatively, use something like the following from your shell:
|
||||
|
||||
mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/queries.txt"
|
||||
|
59
note/styles_table_info.txt
Normal file
59
note/styles_table_info.txt
Normal file
@@ -0,0 +1,59 @@
|
||||
MySQL database "literature", table "styles"
|
||||
===========================================
|
||||
|
||||
field names
|
||||
-----------
|
||||
|
||||
fields available in table "styles" description
|
||||
---------------------------------- -----------
|
||||
|
||||
style_id the unique ID number of this citation style entry
|
||||
style_name the display name of this citation style as it occurs within the styles popup
|
||||
style_enabled specifies globally whether the referenced citation style can be displayed within the styles popup ('true') [if a user chooses so] or not ('false')
|
||||
style_spec the unique name of the file holding the citation function that will output this citation style (style files must be located within the 'cite' directory)
|
||||
order_by a string that specifies the primary sort order for this entry (secondary sort order is by style name)
|
||||
depends_id the unique ID number of the referenced external utility that's required for this style (the ID corresponds to the depends_id number of the utility's entry within the "depends" table)
|
||||
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
style_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
style_name VARCHAR(100)
|
||||
style_enabled ENUM("true","false") NOT NULL
|
||||
style_spec VARCHAR(255)
|
||||
order_by VARCHAR(25)
|
||||
depends_id MEDIUMINT UNSIGNED NOT NULL
|
||||
|
||||
INDEX (style_name)
|
||||
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE styles (style_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, style_name VARCHAR(100), style_enabled ENUM("true","false") NOT NULL, style_spec VARCHAR(255), order_by VARCHAR(25), depends_id MEDIUMINT UNSIGNED NOT NULL, INDEX (style_name));
|
||||
|
||||
|
||||
rules for data import
|
||||
---------------------
|
||||
- fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
|
||||
- order of fields must resemble the above field order!
|
||||
- DATE format must be YYYY-MM-DD
|
||||
- TIME format must be HH:MM:SS
|
||||
- carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
|
||||
- empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
|
||||
- character encoding: higher ASCII chars must be encoded as ISO-8859-1
|
||||
- file encoding must be UNIX
|
||||
|
||||
|
||||
load data code
|
||||
--------------
|
||||
|
||||
LOAD DATA LOCAL INFILE "/PATH/TO/FILE/styles.txt" INTO TABLE styles;
|
||||
|
||||
or, alternatively, use something like the following from your shell:
|
||||
|
||||
mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/styles.txt"
|
||||
|
57
note/types_table_info.txt
Normal file
57
note/types_table_info.txt
Normal file
@@ -0,0 +1,57 @@
|
||||
MySQL database "literature", table "types"
|
||||
==========================================
|
||||
|
||||
field names
|
||||
-----------
|
||||
|
||||
fields available in table "types" description
|
||||
--------------------------------- -----------
|
||||
|
||||
type_id the unique ID number of this document type entry
|
||||
type_name the display name of this document type as it occurs within the 'type' popup
|
||||
type_enabled specifies globally whether the referenced document type can be displayed within the 'type' popup ('true') [if a user chooses so] or not ('false')
|
||||
base_type_id the unique ID number of the document type that this type is based on (i.e., the fall-back type which will be used for export/citation in case this type wasn't specified within a particular export format or citation style)
|
||||
order_by a string that specifies the primary sort order for this entry (secondary sort order is by type name)
|
||||
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
type_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
type_name VARCHAR(100)
|
||||
type_enabled ENUM("true","false") NOT NULL
|
||||
base_type_id MEDIUMINT UNSIGNED
|
||||
order_by VARCHAR(25)
|
||||
|
||||
INDEX (type_name)
|
||||
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE types (type_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, type_name VARCHAR(100), type_enabled ENUM("true","false") NOT NULL, base_type_id MEDIUMINT UNSIGNED, order_by VARCHAR(25), INDEX (type_name));
|
||||
|
||||
|
||||
rules for data import
|
||||
---------------------
|
||||
- fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
|
||||
- order of fields must resemble the above field order!
|
||||
- DATE format must be YYYY-MM-DD
|
||||
- TIME format must be HH:MM:SS
|
||||
- carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
|
||||
- empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
|
||||
- character encoding: higher ASCII chars must be encoded as ISO-8859-1
|
||||
- file encoding must be UNIX
|
||||
|
||||
|
||||
load data code
|
||||
--------------
|
||||
|
||||
LOAD DATA LOCAL INFILE "/PATH/TO/FILE/types.txt" INTO TABLE types;
|
||||
|
||||
or, alternatively, use something like the following from your shell:
|
||||
|
||||
mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/types.txt"
|
||||
|
71
note/user_data_table_info.txt
Normal file
71
note/user_data_table_info.txt
Normal file
@@ -0,0 +1,71 @@
|
||||
MySQL database "literature", table "user_data"
|
||||
==============================================
|
||||
|
||||
field names
|
||||
-----------
|
||||
|
||||
fields available in table "user_data" description
|
||||
------------------------------------- -----------
|
||||
|
||||
data_id the unique ID number of this user data entry
|
||||
user_id the user's unique ID number (which corresponds to the user_id number of the user's record entry within the "users" table)
|
||||
record_id the unique ID number of the record this data entry is referring to (which corresponds to the 'serial' number of the record's entry within the "refs" table)
|
||||
marked has the user marked this record?
|
||||
copy has the user a printed copy of this record?
|
||||
selected has the user selected this publication? (by that he can label publications that are important to him/her OR, if he/she's among the authors, indicate that this is one of the "better" publications)
|
||||
user_keys the user's personal keywords for this record
|
||||
user_notes the user's personal notes for this record
|
||||
user_file if the user owns a digital copy of this record, he can specify its file name/path here
|
||||
user_groups the user's personal groups to which this record belongs (note that this field contains names of *reference* groups for this user, which must not be confused with the *user* groups from table 'users')
|
||||
cite_key the unique citation key for this record which uniquely identifies this record when citing
|
||||
related contains pointers to related records. Pointers can be serial numbers or partial queries, e.g.: '1234; 2678; 1988; author=steffens' -> items separated by ";" will be connected by OR. Pure-digit items: assumed to be record serials. Dynamic items: 'field=content' syntax will be resolved to 'field RLIKE "content"'
|
||||
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
data_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
user_id MEDIUMINT UNSIGNED NOT NULL
|
||||
record_id MEDIUMINT UNSIGNED NOT NULL
|
||||
marked ENUM("no","yes") NOT NULL
|
||||
copy ENUM("false","true","ordered","fetch") NOT NULL
|
||||
selected ENUM("no","yes") NOT NULL
|
||||
user_keys TEXT
|
||||
user_notes TEXT
|
||||
user_file VARCHAR(255)
|
||||
user_groups TEXT
|
||||
cite_key VARCHAR(255)
|
||||
related TEXT
|
||||
|
||||
INDEX (user_id,record_id)
|
||||
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE user_data (data_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, user_id MEDIUMINT UNSIGNED NOT NULL, record_id MEDIUMINT UNSIGNED NOT NULL, marked ENUM("no","yes") NOT NULL, copy ENUM("false","true","ordered","fetch") NOT NULL, selected ENUM("no","yes") NOT NULL, user_keys TEXT, user_notes TEXT, user_file VARCHAR(255), user_groups TEXT, cite_key VARCHAR(255), related TEXT, INDEX (user_id,record_id));
|
||||
|
||||
|
||||
rules for data import
|
||||
---------------------
|
||||
- fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
|
||||
- order of fields must resemble the above field order!
|
||||
- DATE format must be YYYY-MM-DD
|
||||
- TIME format must be HH:MM:SS
|
||||
- carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
|
||||
- empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
|
||||
- character encoding: higher ASCII chars must be encoded as ISO-8859-1
|
||||
- file encoding must be UNIX
|
||||
|
||||
|
||||
load data code
|
||||
--------------
|
||||
|
||||
LOAD DATA LOCAL INFILE "/PATH/TO/FILE/user_data.txt" INTO TABLE user_data;
|
||||
|
||||
or, alternatively, use something like the following from your shell:
|
||||
|
||||
mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/user_data.txt"
|
||||
|
55
note/user_formats_table_info.txt
Normal file
55
note/user_formats_table_info.txt
Normal file
@@ -0,0 +1,55 @@
|
||||
MySQL database "literature", table "user_formats"
|
||||
=================================================
|
||||
|
||||
field names
|
||||
-----------
|
||||
|
||||
fields available in table "user_formats" description
|
||||
---------------------------------------- -----------
|
||||
|
||||
user_format_id the unique ID number of this user format entry
|
||||
format_id the unique ID number of the referenced export format (which corresponds to the format_id number of the format's entry within the "export_formats" table)
|
||||
user_id the user's unique ID number (which corresponds to the user_id number of the user's record entry within the "users" table)
|
||||
show_format specifies whether the referenced export format will be displayed within the formats popup ('true') or not ('false')
|
||||
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
user_format_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
format_id MEDIUMINT UNSIGNED NOT NULL
|
||||
user_id MEDIUMINT UNSIGNED NOT NULL
|
||||
show_format ENUM("true","false") NOT NULL
|
||||
|
||||
INDEX (format_id,user_id)
|
||||
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE user_formats (user_format_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, format_id MEDIUMINT UNSIGNED NOT NULL, user_id MEDIUMINT UNSIGNED NOT NULL, show_format ENUM("true","false") NOT NULL, INDEX (format_id,user_id));
|
||||
|
||||
|
||||
rules for data import
|
||||
---------------------
|
||||
- fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
|
||||
- order of fields must resemble the above field order!
|
||||
- DATE format must be YYYY-MM-DD
|
||||
- TIME format must be HH:MM:SS
|
||||
- carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
|
||||
- empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
|
||||
- character encoding: higher ASCII chars must be encoded as ISO-8859-1
|
||||
- file encoding must be UNIX
|
||||
|
||||
|
||||
load data code
|
||||
--------------
|
||||
|
||||
LOAD DATA LOCAL INFILE "/PATH/TO/FILE/user_formats.txt" INTO TABLE user_formats;
|
||||
|
||||
or, alternatively, use something like the following from your shell:
|
||||
|
||||
mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/user_formats.txt"
|
||||
|
69
note/user_options_table_info.txt
Normal file
69
note/user_options_table_info.txt
Normal file
@@ -0,0 +1,69 @@
|
||||
MySQL database "literature", table "user_options"
|
||||
=================================================
|
||||
|
||||
field names
|
||||
-----------
|
||||
|
||||
fields available in table "user_options" description
|
||||
---------------------------------------- -----------
|
||||
|
||||
option_id the unique ID number of this user option entry
|
||||
user_id the user's unique ID number (which corresponds to the user_id number of the user's record entry within the 'users' table)
|
||||
export_cite_keys controls whether to include cite keys on export or not
|
||||
autogenerate_cite_keys controls whether cite keys will be auto-generated on export
|
||||
prefer_autogenerated_cite_keys controls whether auto-generated cite keys will overwrite record-specific contents from the user-specific 'cite_key' field on export
|
||||
use_custom_cite_key_format controls whether the user's custom cite key format shall be used (instead of the default cite key format provided by the admin)
|
||||
cite_key_format the user's custom cite key format
|
||||
uniquify_duplicate_cite_keys controls whether to add incrementing numbers to any duplicate cite keys
|
||||
nonascii_chars_in_cite_keys controls how non-ASCII characters will be treated in cite keys (keep empty in order to use site default)
|
||||
use_custom_text_citation_format controls whether the user's custom text citation format shall be used (instead of the default text citation format provided by the admin)
|
||||
text_citation_format the user's custom text citation format
|
||||
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
option_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
user_id MEDIUMINT UNSIGNED NOT NULL
|
||||
export_cite_keys ENUM('yes','no') NOT NULL
|
||||
autogenerate_cite_keys ENUM('yes','no') NOT NULL
|
||||
prefer_autogenerated_cite_keys ENUM('no','yes') NOT NULL
|
||||
use_custom_cite_key_format ENUM('no','yes') NOT NULL
|
||||
cite_key_format VARCHAR(255)
|
||||
uniquify_duplicate_cite_keys ENUM('yes','no') NOT NULL
|
||||
nonascii_chars_in_cite_keys ENUM('transliterate','strip','keep')
|
||||
use_custom_text_citation_format ENUM('no','yes') NOT NULL
|
||||
text_citation_format VARCHAR(255)
|
||||
|
||||
INDEX (user_id)
|
||||
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE user_options (option_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, user_id MEDIUMINT UNSIGNED NOT NULL, export_cite_keys ENUM('yes','no') NOT NULL, autogenerate_cite_keys ENUM('yes','no') NOT NULL, prefer_autogenerated_cite_keys ENUM('no','yes') NOT NULL, use_custom_cite_key_format ENUM('no','yes') NOT NULL, cite_key_format VARCHAR(255), uniquify_duplicate_cite_keys ENUM('yes','no') NOT NULL, nonascii_chars_in_cite_keys ENUM('transliterate','strip','keep'), use_custom_text_citation_format ENUM('no','yes') NOT NULL, text_citation_format VARCHAR(255), INDEX (user_id));
|
||||
|
||||
|
||||
rules for data import
|
||||
---------------------
|
||||
- fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
|
||||
- order of fields must resemble the above field order!
|
||||
- DATE format must be YYYY-MM-DD
|
||||
- TIME format must be HH:MM:SS
|
||||
- carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
|
||||
- empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
|
||||
- character encoding: higher ASCII chars must be encoded as ISO-8859-1
|
||||
- file encoding must be UNIX
|
||||
|
||||
|
||||
load data code
|
||||
--------------
|
||||
|
||||
LOAD DATA LOCAL INFILE "/PATH/TO/FILE/user_options.txt" INTO TABLE user_options;
|
||||
|
||||
or, alternatively, use something like the following from your shell:
|
||||
|
||||
mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/user_options.txt"
|
||||
|
89
note/user_permissions_table_info.txt
Normal file
89
note/user_permissions_table_info.txt
Normal file
@@ -0,0 +1,89 @@
|
||||
MySQL database "literature", table "user_permissions"
|
||||
=====================================================
|
||||
|
||||
field names
|
||||
-----------
|
||||
|
||||
fields available in table "user_permissions" description
|
||||
-------------------------------------------- -----------
|
||||
|
||||
user_permission_id the unique ID number of this user permission entry
|
||||
user_id the user's unique ID number (which corresponds to the user_id number of the user's record entry within the "users" table)
|
||||
allow_add specifies whether this user is allowed to add records to the database
|
||||
allow_edit specifies whether this user is allowed to edit records in the database
|
||||
allow_delete specifies whether this user is allowed to delete records from the database
|
||||
allow_download specifies whether this user is allowed to download files which are associated with particular records
|
||||
allow_upload specifies whether this user is allowed to upload files to the database
|
||||
allow_details_view specifies whether this user is allowed to view any record details
|
||||
allow_print_view specifies whether this user is allowed to view records in print view
|
||||
allow_browse_view specifies whether this user is allowed to view records in browse view
|
||||
allow_cite specifies whether this user is allowed to build a reference list from selected records
|
||||
allow_import specifies whether this user is allowed to import records into the database
|
||||
allow_batch_import specifies whether this user is allowed to batch import records into the database
|
||||
allow_export specifies whether this user is allowed to export records from the database
|
||||
allow_batch_export specifies whether this user is allowed to batch export records from the database
|
||||
allow_user_groups specifies whether this user is allowed to use the 'user groups' feature
|
||||
allow_user_queries specifies whether this user is allowed to use the 'user queries' feature
|
||||
allow_rss_feeds specifies whether this user is allowed to generate dynamic RSS feeds from any query
|
||||
allow_sql_search specifies whether this user is allowed to execute custom SQL queries via 'sql_search.php'
|
||||
allow_modify_options specifies whether this user is allowed to change his personal data (like name, address or password)
|
||||
allow_edit_call_number specifies whether this user is allowed to fully edit the contents of the 'call_number' field (like the database admin)
|
||||
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
user_permission_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
user_id MEDIUMINT UNSIGNED NOT NULL
|
||||
allow_add ENUM('yes','no') NOT NULL
|
||||
allow_edit ENUM('yes','no') NOT NULL
|
||||
allow_delete ENUM('yes','no') NOT NULL
|
||||
allow_download ENUM('yes','no') NOT NULL
|
||||
allow_upload ENUM('yes','no') NOT NULL
|
||||
allow_details_view ENUM('yes','no') NOT NULL
|
||||
allow_print_view ENUM('yes','no') NOT NULL
|
||||
allow_browse_view ENUM('yes','no') NOT NULL
|
||||
allow_cite ENUM('yes','no') NOT NULL
|
||||
allow_import ENUM('yes','no') NOT NULL
|
||||
allow_batch_import ENUM('yes','no') NOT NULL
|
||||
allow_export ENUM('yes','no') NOT NULL
|
||||
allow_batch_export ENUM('yes','no') NOT NULL
|
||||
allow_user_groups ENUM('yes','no') NOT NULL
|
||||
allow_user_queries ENUM('yes','no') NOT NULL
|
||||
allow_rss_feeds ENUM('yes','no') NOT NULL
|
||||
allow_sql_search ENUM('yes','no') NOT NULL
|
||||
allow_modify_options ENUM('yes','no') NOT NULL
|
||||
allow_edit_call_number ENUM('no','yes') NOT NULL
|
||||
|
||||
INDEX (user_id)
|
||||
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE user_permissions (user_permission_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, user_id MEDIUMINT UNSIGNED NOT NULL, allow_add ENUM('yes','no') NOT NULL, allow_edit ENUM('yes','no') NOT NULL, allow_delete ENUM('yes','no') NOT NULL, allow_download ENUM('yes','no') NOT NULL, allow_upload ENUM('yes','no') NOT NULL, allow_details_view ENUM('yes','no') NOT NULL, allow_print_view ENUM('yes','no') NOT NULL, allow_browse_view ENUM('yes','no') NOT NULL, allow_cite ENUM('yes','no') NOT NULL, allow_import ENUM('yes','no') NOT NULL, allow_batch_import ENUM('yes','no') NOT NULL, allow_export ENUM('yes','no') NOT NULL, allow_batch_export ENUM('yes','no') NOT NULL, allow_user_groups ENUM('yes','no') NOT NULL, allow_user_queries ENUM('yes','no') NOT NULL, allow_rss_feeds ENUM('yes','no') NOT NULL, allow_sql_search ENUM('yes','no') NOT NULL, allow_modify_options ENUM('yes','no') NOT NULL, allow_edit_call_number ENUM('no','yes') NOT NULL, INDEX (user_id));
|
||||
|
||||
|
||||
rules for data import
|
||||
---------------------
|
||||
- fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
|
||||
- order of fields must resemble the above field order!
|
||||
- DATE format must be YYYY-MM-DD
|
||||
- TIME format must be HH:MM:SS
|
||||
- carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
|
||||
- empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
|
||||
- character encoding: higher ASCII chars must be encoded as ISO-8859-1
|
||||
- file encoding must be UNIX
|
||||
|
||||
|
||||
load data code
|
||||
--------------
|
||||
|
||||
LOAD DATA LOCAL INFILE "/PATH/TO/FILE/user_permissions.txt" INTO TABLE user_permissions;
|
||||
|
||||
or, alternatively, use something like the following from your shell:
|
||||
|
||||
mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/user_permissions.txt"
|
||||
|
55
note/user_styles_table_info.txt
Normal file
55
note/user_styles_table_info.txt
Normal file
@@ -0,0 +1,55 @@
|
||||
MySQL database "literature", table "user_styles"
|
||||
================================================
|
||||
|
||||
field names
|
||||
-----------
|
||||
|
||||
fields available in table "user_styles" description
|
||||
--------------------------------------- -----------
|
||||
|
||||
user_style_id the unique ID number of this user style entry
|
||||
style_id the unique ID number of the referenced citation style (which corresponds to the style_id number of the style's entry within the "citation_styles" table)
|
||||
user_id the user's unique ID number (which corresponds to the user_id number of the user's record entry within the "users" table)
|
||||
show_style specifies whether the referenced citation style will be displayed within the styles popup ('true') or not ('false')
|
||||
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
user_style_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
style_id MEDIUMINT UNSIGNED NOT NULL
|
||||
user_id MEDIUMINT UNSIGNED NOT NULL
|
||||
show_style ENUM("true","false") NOT NULL
|
||||
|
||||
INDEX (style_id,user_id)
|
||||
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE user_styles (user_style_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, style_id MEDIUMINT UNSIGNED NOT NULL, user_id MEDIUMINT UNSIGNED NOT NULL, show_style ENUM("true","false") NOT NULL, INDEX (style_id,user_id));
|
||||
|
||||
|
||||
rules for data import
|
||||
---------------------
|
||||
- fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
|
||||
- order of fields must resemble the above field order!
|
||||
- DATE format must be YYYY-MM-DD
|
||||
- TIME format must be HH:MM:SS
|
||||
- carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
|
||||
- empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
|
||||
- character encoding: higher ASCII chars must be encoded as ISO-8859-1
|
||||
- file encoding must be UNIX
|
||||
|
||||
|
||||
load data code
|
||||
--------------
|
||||
|
||||
LOAD DATA LOCAL INFILE "/PATH/TO/FILE/user_styles.txt" INTO TABLE user_styles;
|
||||
|
||||
or, alternatively, use something like the following from your shell:
|
||||
|
||||
mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/user_styles.txt"
|
||||
|
55
note/user_types_table_info.txt
Normal file
55
note/user_types_table_info.txt
Normal file
@@ -0,0 +1,55 @@
|
||||
MySQL database "literature", table "user_types"
|
||||
===============================================
|
||||
|
||||
field names
|
||||
-----------
|
||||
|
||||
fields available in table "user_types" description
|
||||
-------------------------------------- -----------
|
||||
|
||||
user_type_id the unique ID number of this user type entry
|
||||
type_id the unique ID number of the referenced document type (which corresponds to the type_id number of the type's entry within the "document_types" table)
|
||||
user_id the user's unique ID number (which corresponds to the user_id number of the user's record entry within the "users" table)
|
||||
show_type specifies whether the referenced document type will be displayed within the 'type' popup ('true') or not ('false')
|
||||
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
user_type_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
type_id MEDIUMINT UNSIGNED NOT NULL
|
||||
user_id MEDIUMINT UNSIGNED NOT NULL
|
||||
show_type ENUM("true","false") NOT NULL
|
||||
|
||||
INDEX (type_id,user_id)
|
||||
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE user_types (user_type_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, type_id MEDIUMINT UNSIGNED NOT NULL, user_id MEDIUMINT UNSIGNED NOT NULL, show_type ENUM("true","false") NOT NULL, INDEX (type_id,user_id));
|
||||
|
||||
|
||||
rules for data import
|
||||
---------------------
|
||||
- fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
|
||||
- order of fields must resemble the above field order!
|
||||
- DATE format must be YYYY-MM-DD
|
||||
- TIME format must be HH:MM:SS
|
||||
- carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
|
||||
- empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
|
||||
- character encoding: higher ASCII chars must be encoded as ISO-8859-1
|
||||
- file encoding must be UNIX
|
||||
|
||||
|
||||
load data code
|
||||
--------------
|
||||
|
||||
LOAD DATA LOCAL INFILE "/PATH/TO/FILE/user_types.txt" INTO TABLE user_types;
|
||||
|
||||
or, alternatively, use something like the following from your shell:
|
||||
|
||||
mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/user_types.txt"
|
||||
|
105
note/users_table_info.txt
Normal file
105
note/users_table_info.txt
Normal file
@@ -0,0 +1,105 @@
|
||||
MySQL database "literature", table "users"
|
||||
==========================================
|
||||
|
||||
field names
|
||||
-----------
|
||||
|
||||
fields available in table "users" description
|
||||
--------------------------------- -----------
|
||||
|
||||
first_name the users first name (required!) --> needed for building the user's full name
|
||||
last_name the user's surname (required!) --> needed for building the user's full name
|
||||
title the user's job title
|
||||
institution the name of the employing institution
|
||||
abbrev_institution the abbreviated name of the employing institution (required!) --> needed for building a correct call_number for any record
|
||||
corporate_institution the name of the corporate institution
|
||||
address_line_1 any additional address information required for the institution's postal address (such as building, p.o. box, street, etc.)
|
||||
address_line_2 any additional address information required for the institution's postal address (such as building, p.o. box, street, etc.)
|
||||
address_line_3 any additional address information required for the institution's postal address (such as building, p.o. box, street, etc.)
|
||||
zip_code the zip code of the institution's postal address
|
||||
city the city of the institution
|
||||
state the state of the institution
|
||||
country the country of the institution
|
||||
phone the user's phone number at work
|
||||
email the user's email address at work (required!) -> needed for logging into the database (must be unique among all users!)
|
||||
url the user's (professional) web page
|
||||
keywords any keys for this user
|
||||
notes any notes for this user
|
||||
last_login date & time of the user's last successful login to the database -> future versions may use this info to ask the user for a new password
|
||||
logins total number of successful logins for this user -> future versions may offer simple usage statistics
|
||||
language the user's preferred language -> future versions might offer language customization
|
||||
user_id the user's unique ID number (which is simply the unique serial number of this record)
|
||||
user_groups the user groups to which this user belongs (note that this field contains names of *user* groups, which must not be confused with the user's personal groups that list groups of particular *references*)
|
||||
marked gives the possibility to set a flag for this record
|
||||
created_date the creation date of this record
|
||||
created_time the creation time of this record
|
||||
created_by who created this record
|
||||
modified_date the modification date of this record
|
||||
modified_time the modification time of this record
|
||||
modified_by who modified this record
|
||||
|
||||
|
||||
|
||||
column types
|
||||
------------
|
||||
|
||||
first_name VARCHAR(50)
|
||||
last_name VARCHAR(50)
|
||||
title VARCHAR(25)
|
||||
institution VARCHAR(255)
|
||||
abbrev_institution VARCHAR(25)
|
||||
corporate_institution VARCHAR(255)
|
||||
address_line_1 VARCHAR(50)
|
||||
address_line_2 VARCHAR(50)
|
||||
address_line_3 VARCHAR(50)
|
||||
zip_code VARCHAR(25)
|
||||
city VARCHAR(40)
|
||||
state VARCHAR(50)
|
||||
country VARCHAR(40)
|
||||
phone VARCHAR(50)
|
||||
email VARCHAR(50)
|
||||
url VARCHAR(255)
|
||||
keywords TEXT
|
||||
notes TEXT
|
||||
last_login DATETIME
|
||||
logins MEDIUMINT UNSIGNED NOT NULL
|
||||
language VARCHAR(50)
|
||||
user_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||
user_groups TEXT
|
||||
marked ENUM('no','yes') NOT NULL
|
||||
created_date DATE
|
||||
created_time TIME
|
||||
created_by VARCHAR(100)
|
||||
modified_date DATE
|
||||
modified_time TIME
|
||||
modified_by VARCHAR(100)
|
||||
|
||||
|
||||
|
||||
table creation code
|
||||
-------------------
|
||||
|
||||
CREATE TABLE users (first_name VARCHAR(50), last_name VARCHAR(50), title VARCHAR(25), institution VARCHAR(255), abbrev_institution VARCHAR(25), corporate_institution VARCHAR(255), address_line_1 VARCHAR(50), address_line_2 VARCHAR(50), address_line_3 VARCHAR(50), zip_code VARCHAR(25), city VARCHAR(40), state VARCHAR(50), country VARCHAR(40), phone VARCHAR(50), email VARCHAR(50), url VARCHAR(255), keywords TEXT, notes TEXT, last_login DATETIME, logins MEDIUMINT UNSIGNED NOT NULL, language VARCHAR(50), user_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, user_groups TEXT, marked ENUM('no','yes') NOT NULL, created_date DATE, created_time TIME, created_by VARCHAR(100), modified_date DATE, modified_time TIME, modified_by VARCHAR(100));
|
||||
|
||||
|
||||
rules for data import
|
||||
---------------------
|
||||
- fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
|
||||
- order of fields must resemble the above field order!
|
||||
- DATE format must be YYYY-MM-DD
|
||||
- TIME format must be HH:MM:SS
|
||||
- carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
|
||||
- empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
|
||||
- character encoding: higher ASCII chars must be encoded as ISO-8859-1
|
||||
- file encoding must be UNIX
|
||||
|
||||
|
||||
load data code
|
||||
--------------
|
||||
|
||||
LOAD DATA LOCAL INFILE "/PATH/TO/FILE/users.txt" INTO TABLE users;
|
||||
|
||||
or, alternatively, use something like the following from your shell:
|
||||
|
||||
mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/users.txt"
|
||||
|
Reference in New Issue
Block a user