From 691cee8c0f0ef0e49219299cc85e2a1310a76900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?May=20Dou=C5=A1ak?= Date: Tue, 24 Jan 2023 19:02:00 +0100 Subject: [PATCH] Moving to GIT --- .htaccess | 10 + index.php | 124 ++++++++ look/css.css | 319 +++++++++++++++++++ look/ess-logo-top.png | Bin 0 -> 2019 bytes nbproject/private/private.properties | 2 + nbproject/project.properties | 7 + nbproject/project.xml | 9 + package.json | 8 + parts/browse.php | 360 +++++++++++++++++++++ parts/default.php | 21 ++ parts/displayItem.php | 145 +++++++++ parts/do_insert.php | 5 + parts/insert.php | 458 +++++++++++++++++++++++++++ parts/search.php | 9 + parts/searchResults.php | 50 +++ parts/search_bar.php | 40 +++ parts/spreadsheet.php | 26 ++ parts/topic-item-module.php | 154 +++++++++ script/common.js | 77 +++++ script/jquery-3.6.0.min.js | 2 + script/jquery.min.js | 2 + settings.php | 4 + 22 files changed, 1832 insertions(+) create mode 100644 .htaccess create mode 100644 index.php create mode 100644 look/css.css create mode 100644 look/ess-logo-top.png create mode 100644 nbproject/private/private.properties create mode 100644 nbproject/project.properties create mode 100644 nbproject/project.xml create mode 100644 package.json create mode 100644 parts/browse.php create mode 100644 parts/default.php create mode 100644 parts/displayItem.php create mode 100644 parts/do_insert.php create mode 100644 parts/insert.php create mode 100644 parts/search.php create mode 100644 parts/searchResults.php create mode 100644 parts/search_bar.php create mode 100644 parts/spreadsheet.php create mode 100644 parts/topic-item-module.php create mode 100644 script/common.js create mode 100644 script/jquery-3.6.0.min.js create mode 100644 script/jquery.min.js create mode 100644 settings.php diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..0738f4b --- /dev/null +++ b/.htaccess @@ -0,0 +1,10 @@ +RewriteEngine on + +RewriteRule ^$ index.php +RewriteRule ^browse$ index.php?w=browse +RewriteRule ^search$ index.php?w=search +RewriteRule ^searchResults$ index.php?w=searchResults +RewriteRule ^insert$ index.php?w=insert +RewriteRule ^displayItem index.php?w=displayItem&%{QUERY_STRING} + +Header add Access-Control-Allow-Origin "http://biblio_backend/api/api.php" \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..f78e93e --- /dev/null +++ b/index.php @@ -0,0 +1,124 @@ + + + + + ESS Bibliography Tool + + + + + + + + +
+

Bibliography tool beta release 0.223

+ +
+ +
+ +
+ + + + + + 0) { + $pre = base64_decode ($pre); + } + + if ($part != "") { + if ($pre !='') { + $pre = base64_decode (urldecode($pre)); + + echo '' .cn($pre) .' :: '; + } + + echo cn($part); + } +} +*/ +function menu () { + $part = $_GET['w']??"default"; +?> + + \ No newline at end of file diff --git a/look/css.css b/look/css.css new file mode 100644 index 0000000..845f322 --- /dev/null +++ b/look/css.css @@ -0,0 +1,319 @@ +body, html { + margin: 0; + border: 0; + font: normal 1em verdana, sans-serif; +} + +a { + color: inherit; + text-decoration: inherit; +} + +body { + min-height: 100vh; +} + +header { + min-height: 50px; + background-color: #c00000; + color: white; +} + +header h1 { + font-size: 2em; + font-weight: bold; +} + +header img { + display: inline-block; + margin-left: 25px; + margin-top:5px; +} + +footer { + min-height: 50px; +} + +body { + display: flex; + flex-direction: column; +} + +footer { + margin-top: auto; + text-align: center; +} + +nav ul { + margin: 0 auto 0 auto; +} + +nav ul li { + display: inline; + list-style-type: none; + float: left; + width: 250px; + text-align: center; +} + +nav ul li a { + color: white; + text-decoration: none; +} + +nav ul li a:hover { + text-decoration: underline; +} + +nav ul li a.active { + font-weight: bold; +} + +nav ul li a.active::before { + content: '>> ' +} + +nav ul li a.active::after { + content: ' <<' +} + + + +h2 { + max-width: 1000px; + min-width: 500px; + width: 80%; + display: block; + margin: 1em auto 1em 0; + + text-align: left; + color: #c00000; +} + + +/* */ +/* search */ +/* */ + +main.search { + position: fixed; + left: 50%; + top: 50%; + margin-left: -252px; + margin-top: -2.05em; +} + +main.search input#q { + margin: 0; + padding: 0; + height: 2.1em; + font-size: 1.4em; + width: 450px; + border: none; + background-color: white; +} + +main.search input:focus, +#searchBar input:focus { + outline: none; +} + +main.search input#ok, +#searchBar input#ok { + margin: 0; + padding: 0; + height: 2.1em; + font-size: 1.4em; + font-weight: bold; + width: 50px; + border: none; + color: white; + background-color: #cccccc; + cursor: pointer; + +} +main.search input:focus, +#searchBar input:focus { + outline: none; +} + +main.search input#ok:hover, +#searchBar input#ok:hover { + background-color: #c00000; + border-radius: 0 5px 5px 0; +} + +main.search form#search, +#searchBar form#search { + padding: 0 0 0 8px; + border: 1px solid #cccccc; + border-radius: 5px; + box-shadow: 2px 2px #f3f3f3; +} + +main.search #Suggestions, +#searchBar #Suggestions { + padding: 5px; + width: 503px; + border-left: 1px solid #cccccc; + border-right: 1px solid #cccccc; + border-bottom: 1px solid #cccccc; + + border-radius: 0px 0px 5px 5px; + box-shadow: 2px 2px #f3f3f3; +} + +main.search #Suggestions div, +#searchBar #Suggestions div { + width: 100%; + clear: both; + margin: 0 0 5px 0; + padding-left: 5px; + cursor: pointer; +} + +main.search #Suggestions div:hover, +#searchBar #Suggestions div:hover { + background-color: #c00000; +} + + +/* search results page */ + +main { + padding-left: 1em; +} + +main.search { + padding-left: 0em; +} + +#searchBar input#q { + margin: 0; + padding: 0; + height: 2.1em; + font-size: 1.4em; + width: 450px; + border: none; + background-color: white; +} +#searchBar form#search { + display: inline-block; +} + + + +/* */ +/* DISPLAY RESULTS */ +/* */ + +div#itemData { + max-width: 1000px; + min-width: 500px; + width: 80%; + display: block; + margin: 0 auto 0 25px; +} + +div#itemData div.line, +div.browseFields div.line { + display: flex; + flex-direction: row; + flex-wrap: wrap; + clear: both; + margin: 0 0 10px 0; + +} + +div#itemData label:first-of-type, +div.browseFields label:first-of-type { + font-weight: bold; + width: 200px; + display: block; + +} + +/* display item */ +div.line span { + width: 600px; +} + +#search_results ul li { + list-style-type: none; + margin-bottom: 1.5em; +} + +#search_results a { + color: blue; +} + +#search_results a:hover { + text-decoration: underline; +} + + +/* +Browse biblio +*/ + + +div.browseFields { + width: 500px; + display: block; + margin: 0 0 50px 0; +} + +div.browseFields select, +div.browseFields input[type="text"] { + width: 300px; + box-sizing: border-box; +} + +div.left { + float: left; +} +div.right { + float: right; +} + + +div.browseFields.full { + width: 1000px; +} + +div.browseFields label:nth-of-type(2), +div.columns2 label, +div.nolabel label, +label.nolabel { + font-weight: normal !important; + font-style: italic; + display: inline !important; +} + +div.container.w1000 { + display: block; + width: 1025px; + margin: 30px auto 0 auto; + clear: both; + float: none; +} + +div.columns2 { + columns: 2; +} + +div.w800 { + width: 800px; +} +div.ml200 { + margin-left: 200px; +} + +div.mb50 { + margin-bottom: 50px; +} + +div.nomargin { + margin: 0 !important; + line-height: 2.2em; +} diff --git a/look/ess-logo-top.png b/look/ess-logo-top.png new file mode 100644 index 0000000000000000000000000000000000000000..7cdd2a7e3dbf005aedba8bf5a3f4dde51020cfa4 GIT binary patch literal 2019 zcmV<92ORi`P)<0Qe;F$ z6L^S#GS>3i7`gosEMcxJAq)-D0cjb zA_i>*K^YmC!W4#f3RBOe-wlWBYp3n>{SWbH^x^N}_H5FEczK zy@Sw0xP@>Vu!wLgVIkp0!d${ELN}pHyZ#~}Pbd&B5VC|3!Z6`D;V;55!r%BU*QVKB z(j{qk5<-Lr2=_38Z*chCWT7~PLhw7`C&G7x9|`}oNpEf~mgKG`JVIDOFbOk!^v-7p zhX@A<`;eY!lU{#qUPahIcoamtWis>Qz1Ywsg$A*?6d<#0YFp+^b7qM1&ki9U%weGJWc5rp%SJQFQY2Z)~!zd`yB zO9-PCp1G8exhAW+tm$=P17Q!LP;$<4guR6Ag!P2QgpLOC+6YYK!K`pRMo8N1tLxH8 zEkc;>j}judCW8GGyC%e*pJLy_V$ZU0ow69qLrS|}rTo`L`Z~fs2Z_Ew_yiwhiAw}K zL3&iXkHv^Cf!v4Mz1xZFdc z?MSz?T1XFTwUXaEg?Ck?2eoI0G-B2L<5lt*u97F)cbuwEe}%Bkq2ZP6hj$TP$9URr z){H(qYqKB3c7`2S&j}%oYu72~F-+*gJ^C8WRHdPmyy?4yR~;h!Q^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LkV1mSg B&6xlI literal 0 HcmV?d00001 diff --git a/nbproject/private/private.properties b/nbproject/private/private.properties new file mode 100644 index 0000000..e7a6cbe --- /dev/null +++ b/nbproject/private/private.properties @@ -0,0 +1,2 @@ +index.file=index.php +url=http://localhost/frontend/ diff --git a/nbproject/project.properties b/nbproject/project.properties new file mode 100644 index 0000000..4fd3b90 --- /dev/null +++ b/nbproject/project.properties @@ -0,0 +1,7 @@ +include.path=${php.global.include.path} +php.version=PHP_80 +source.encoding=UTF-8 +src.dir=. +tags.asp=false +tags.short=false +web.root=. diff --git a/nbproject/project.xml b/nbproject/project.xml new file mode 100644 index 0000000..e07946e --- /dev/null +++ b/nbproject/project.xml @@ -0,0 +1,9 @@ + + + org.netbeans.modules.php.project + + + biblio_frontend + + + diff --git a/package.json b/package.json new file mode 100644 index 0000000..5d721c4 --- /dev/null +++ b/package.json @@ -0,0 +1,8 @@ +{ + "name": "ess_biblio", + "version": "1.0.0", + "keywords": ["util", "functional", "server", "client", "browser"], + "author": "may", + "contributors": [], + "dependencies": {} +} diff --git a/parts/browse.php b/parts/browse.php new file mode 100644 index 0000000..dc60395 --- /dev/null +++ b/parts/browse.php @@ -0,0 +1,360 @@ + +

Browse bibliography

+

To filter bibliography based on certain criteria, please set one or more options below as needed. To display filtered results based on selected criteria, press the "Filter results" buttons.

+ +
+ +
+ +
+
+ +
+
+
+ +
+ + +
+
+ + +
+
+ +
+
+ + +
+
+ + +
+ +
+ +
+ +
+ + +
+
+ +
+
+ + +
+
+ +
+ +
+ + + +
+
+ +
+
+ + + +
+
+ +
+ +
+ + +
+
+ + + + + + + +
+ +
+ +
+
+ + +
+

Number of records in the database: loading...

+

Please use the form above to browse them. If you want to display all (published) records, just hit the "SHOW RESULTS" button.

+
+ + + + + diff --git a/parts/default.php b/parts/default.php new file mode 100644 index 0000000..c167886 --- /dev/null +++ b/parts/default.php @@ -0,0 +1,21 @@ +
+ +
+

Welcome

+ +

This tool provides browsing, as well as inserting into, the ESS bibliography database.

+ +

Search bibliography

+

Should you wish to check usage of certain topics, modules, rounds, or even items, you can do so in the "Browse" section. You can also filter by journal name, journal field, author's affiliation, or even their names.

+

Items

+

Is just a sample of what could also be done with this tool - one could search by any parameter, get detailed data about it - and see all the bibliographic entries that are related to the given parameter.

+

Exporting database into spreadsheet

+

Data can be exported into a spreadsheet format (i.e. "Excel") in both browse and "item search" sections by pressing button above the list of items.

+

Inserting data

+

To make data quality as good as possible while also making entries easier, one should provide DOI - most of the fields will be populated automatically upon entering a correct one.
Please note that all entries will be revirewed by the team before appearing online.

+

Bugs and feature requests

+

This application is work in progress and will evolve according to user feedback. Please report bugs and feature requests to May Doušak.

+
+ +
+ diff --git a/parts/displayItem.php b/parts/displayItem.php new file mode 100644 index 0000000..306abaf --- /dev/null +++ b/parts/displayItem.php @@ -0,0 +1,145 @@ + + +

Item information

+ +
+ +
+ + (loading data, please wait...) +
+ +
+ + (loading data, please wait...) +
+ +
+ + (loading data, please wait...) +
+ +
+ + (loading data, please wait...) +
+
+ +

Citation information (n=loading...)

+
+ + +
+ +
    + +
+ + + + \ No newline at end of file diff --git a/parts/do_insert.php b/parts/do_insert.php new file mode 100644 index 0000000..ba2e1f6 --- /dev/null +++ b/parts/do_insert.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/parts/insert.php b/parts/insert.php new file mode 100644 index 0000000..e4a468e --- /dev/null +++ b/parts/insert.php @@ -0,0 +1,458 @@ + +

Insert bibliographic record

+

+ +
+ +
+ +
+
+ + +
+
+
+