Skip to content

Commit 3b2bc39

Browse files
authored
Babel2 (#16)
* init * init commit * temp folder added * temp file * context init * xlsx init * vendata * basic vendata and xlsx tests * data normalization init * normalize_isbn added * normalize_price * data normalized when parsed * minor changes to test sheet * work_notes * init * basic logging added * version added * gui init * creds init * datastore init * database localhost installation tips * updated req * data_sources renamed to ingest * errors init * profile added * profile name repositioned * db link check * hanging comma removed * TableView init * small cancel icon added * fonts & tables init * get_values method added * tables added * window resizes to less than screensize * update & delete added * get_record & save_record added * details view * datastore methods update * error handling added to inser_or_ignore * Audns, Branches added * fund tables * generic user data added * retrieve_records added * get_records added * init * tables gui ready * FundView layout * branch conditions added * ACTIVE to NORMAL to enable widget * populates all tables * enabling/disabling children of children * FundLibraryJoiner added * saving init * fixed uniqueconstrains and added indexes * insert method added * typo fix * save_new_fund method added * defFrm changed to LabelFrame * indexes fix * get_fund_data method added * TEntry & TCheckbutton for enabling/disabling * edit & deletion added * DistrGrid changes * grids init * bugs & warning msg on add without system * Location table added * name & code indexes * profile handling changes * get_id_from_index * structure complete * temp test datastore data * Spinbox added to input_widgets * global profile handling * GridLocation * populating complete * trailing whitespace removed * save_grid_data added * saving and updating of grids * copy feature temp msg added * pub_place & misc added to xlsx parser * Resource, Cart, Order, OrderLocation, Status tables added * typo fixes * updated GridView doc * ImportView init * ImportView layout complete * price as float * basic status values prepopulated * template mask added * SheetReader (basic) * resource_id & cart_id attr added to Order * value2string validation update * import complete * export option removed * cart_view added * cart init * carts init * img loaded in main * bug fix for empty rows in ResourceDataReader * active_id variable added to app_data * pub_place added to Resource * cart mid * cart mid * buggy * add_title added to Sheet and Resource * order data retrieval * reflects changes to grid data * library_id added to Cart * glob values 1 * apply globals without price * add_lcoationBtn init * grid init * grids complete * CartView other tab init * CartView global application change: keep current * OrderLocation columns can be null * orders relationship added to Cart table * grids saving & populating * CartView fund application * copy template initi * copying grid to template completed * handling prices complete * nav init * bug fix: errors on saving cart * profile bug fix * cart_fund view added * view name change * CatalogMatch and MatchLocation tables added * CartsView cart details init * reports init * cart details init * summarize_cart report init * wlos and blanketPo * to MARC init * marc 960 ready * copies pass as str and order_date * 961 added * saving to marc complete * more info * listboxes height fixed
1 parent 3db2f32 commit 3b2bc39

File tree

108 files changed

+8549
-10540
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+8549
-10540
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ ENV/
9797

9898
# mypy
9999
.mypy_cache/
100+
101+
# custom files and folders
100102
user_data
101103
*.out
102104
PyZ3950_parsetab.py
105+
old_source_code/
106+
temp/
107+
babel/temp.py
108+
work_notes.txt

README.md

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
1-
# babel
2-
enhanced BookOps crosswalk from Excel sheet to MARC21
3-
4-
launch interface by running babel.py
5-
6-
# dependencies:
7-
* cachetools==2.1.0
8-
* et-xmlfile==1.0.1
9-
* httplib2==0.11.3
10-
* jdcal==1.3
11-
* numpy==1.15.4
12-
* openpyxl==2.4.8
13-
* pandas==0.23.4
14-
* pyasn1==0.4.3
15-
* pyasn1-modules==0.2.2
16-
* pymarc==3.1.7
17-
* PyMySQL==0.7.11
18-
* python-dateutil==2.7.5
19-
* pytz==2018.7
20-
* rsa==3.4.2
21-
* six==1.11.0
22-
* SQLAlchemy==1.1.14
23-
* uritemplate==3.0.0
1+
# Babel 2
2+
Enhanced BookOps crosswalk from a spreadsheet to MARC21 format for Sierra ILS order records.
3+
Babel 2 is a complete rewrite of the previous Babel app. It's written in Python 3, and is being actively developed.
4+
Some of the features are missing even though the interface suggest their presence. In coming weeks we are planning to tackle them one by one.
5+
In particular we will be focusing on developing following functionality:
6+
* packaging and distribution of Babel (including a detail instruction how to, since these elements will not be part of Babel proper)
7+
* extensive help hosted on Github wikis and accessible via Babel interface
8+
* integration with ILS which includes holding reports and linking data between Sierra and Babel
9+
* reporting tools (analysis, charts, etc. of carts data)
10+
* creation of order sheets (which can be send to a vendor with order request, detailing the purchase)
11+
12+
Please note, Babel is a custom tool for BookOps which supposed to work with particular systems we use (Sierra ILS, etc.).
13+
At the moment we do not plan to create a universal application that coulb be used by other libraries. It would not be too difficult to adapt our source code for your needs though, especially if you are Sierra or Millennium library.
14+
15+
16+
## Database Localhost Installation
17+
Babel is configured to work with MySQL database.
18+
Follow [MySQL Installer instruction](https://dev.mysql.com/doc/refman/8.0/en/windows-installation.html) to install server on a localhost. Then use create_datastore method to setup database with all required tables.
19+
20+
localhost example:
21+
>>>from babel.data.datastore import create_datastore
22+
>>>create_datastore(
23+
db_name='datastoredev'
24+
user='john',
25+
password='johns_password',
26+
host='127.0.0.1',
27+
port='3306')
28+
29+
30+
## Icon Credits
31+
Icons by [Everaldo / Yellowicon](http://www.everaldo.com) used under [GNU Lesser General Public License](https://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License).
32+
33+

Z3950_communicator.py

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)