commit 691cee8c0f0ef0e49219299cc85e2a1310a76900 Author: May DouĊĦak Date: Tue Jan 24 19:02:00 2023 +0100 Moving to GIT 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 0000000..7cdd2a7 Binary files /dev/null and b/look/ess-logo-top.png differ 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

+

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