Skip to content

Commit b40bcd2

Browse files
authored
Merge pull request #168 from UA-Libraries-Research-Data-Services/add-page-metadata
fix: Remove attempts at page-specific metadata extraction
2 parents 2bf0414 + 05a76c9 commit b40bcd2

4 files changed

Lines changed: 18 additions & 26 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# University of Alabama Libraries Scholarly API Cookbook
22

3+
[![DOI](https://img.shields.io/badge/Cite-Scholarly_API_Cookbook-crimson)](https://ua-libraries-research-data-services.github.io/UALIB_ScholarlyAPI_Cookbook/about/license-reuse.html)
4+
35
> [!IMPORTANT]
46
> Please check the individual scholarly API documentation for current information on API usage and policies.
57
>
@@ -13,7 +15,7 @@ The University of Alabama Libraries Scholarly API Cookbook is an open online boo
1315

1416
Most of the code in this repository is licensed under the [MIT License](https://github.com/UA-Libraries-Research-Data-Services/UALIB_ScholarlyAPI_Cookbook/blob/main/LICENSE).
1517

16-
The Python scripts in this repository are licensed under the MIT License. However, these scripts may rely on external libraries such as matplotlib, pandas, and others. These libraries are licensed under their own respective terms, and will need to be installed separately. Refer to the documentation of each library for installation instructions and licensing details.
18+
The Python scripts in this repository are licensed under the MIT License. However, these scripts may rely on external libraries such as matplotlib, pandas, and others. These libraries are licensed under their own respective terms and need to be installed separately. Refer to the documentation of each library for installation instructions and licensing details.
1719

1820
The Bash tutorials are licensed under the MIT License (Bash itself is licensed under the GNU General Public License). Some of the included scripts may rely on external tools such as curl, jq, YAZ, and gnuplot, each of which is licensed under its own terms. Users must obtain and install these tools separately. Refer to the documentation of each tool for installation instructions and licensing details.
1921

@@ -52,7 +54,7 @@ We have decided to no longer maintain the Matlab, Mathematica, Bash (except the
5254

5355
The code in the UA Libraries Scholarly API Cookbook Archive is licensed under the [MIT License](https://github.com/UA-Libraries-Research-Data-Services/Scholarly_API_Cookbook_Archive/blob/main/LICENSE). This includes code written to be used with Wolfram Mathematica and MathWorks MATLAB. However, these proprietary software packages themselves are not covered under the MIT License, and users must have valid licenses for Mathematica and MATLAB to run the associated code.
5456

55-
The Python scripts in this repository are licensed under the MIT License. However, these scripts may rely on external libraries such as matplotlib, pandas, and others. These libraries are licensed under their own respective terms, and will need to be installed separately. Refer to the documentation of each library for installation instructions and licensing details.
57+
The Python scripts in this repository are licensed under the MIT License. However, these scripts may rely on external libraries such as matplotlib, pandas, and others. These libraries are licensed under their own respective terms and need to be installed separately. Refer to the documentation of each library for installation instructions and licensing details.
5658

5759
The Bash tutorials are licensed under the MIT License (Bash itself is licensed under the GNU General Public License). Some of the included scripts may rely on external tools such as curl, jq, and gnuplot, each of which is licensed under its own terms. Users must obtain and install these tools separately. Refer to the documentation of each tool for installation instructions and licensing details.
5860

src/_templates/layout.html

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,26 @@
11
{% extends "!layout.html" %}
2-
32
{%- block extrahead %}
43
{{ super() }}
5-
6-
{% set metadata = meta if meta is defined and meta is not none else {} %}
74
{% set site_name = "University of Alabama Libraries Scholarly API Cookbook" %}
85
{% set base = (html_baseurl or "https://ua-libraries-research-data-services.github.io/UALIB_ScholarlyAPI_Cookbook/") %}
96
{% set page_url = base ~ pagename ~ ('' if pagename.endswith('.html') else '.html') %}
10-
11-
{# Prefer page description; fallback to a global site description #}
12-
{% set site_desc = "Example tutorials for working with scholarly APIs for academic scholarly research and teaching using Python and R." %}
13-
{% set page_desc = metadata.get("description") %}
14-
{% set desc = page_desc or site_desc %}
15-
16-
{% set og_title = metadata.get("og:title") or (title|striptags) %}
17-
{% set og_type = metadata.get("og:type") or "website" %}
18-
19-
<!-- Canonical Link -->
7+
<!-- Canonical Link and Sitemap -->
208
<link rel="canonical" href="{{ page_url }}" />
21-
9+
<link rel="sitemap" type="application/xml" title="Sitemap" href="{{ base }}sitemap.xml">
10+
{% set og_title = title|striptags %}
11+
{% set site_desc = "Example tutorials for working with scholarly APIs for academic research and teaching using Python and R." %}
2212
<!-- Open Graph -->
2313
<meta property="og:site_name" content="{{ site_name }}" />
2414
<meta property="og:title" content="{{ og_title }}" />
25-
<meta property="og:description" content="{{ desc }}" />
26-
<meta property="og:type" content="{{ og_type }}" />
15+
<meta property="og:description" content="{{ site_desc }}" />
16+
<meta property="og:type" content="website" />
2717
<meta property="og:url" content="{{ page_url }}" />
28-
18+
<!-- Twitter Card -->
19+
<meta name="twitter:card" content="summary_large_image" />
20+
<meta name="twitter:title" content="{{ og_title }}" />
21+
<meta name="twitter:description" content="{{ site_desc }}" />
22+
<meta name="twitter:image" content="{{ base }}images/UALIB_logo.png">
23+
<meta name="twitter:image:alt" content="{{ title }}">
2924
<!-- LD+JSON -->
3025
<script type="application/ld+json">
3126
{
@@ -102,5 +97,4 @@
10297
]
10398
}
10499
</script>
105-
106100
{%- endblock %}

src/about/introduction.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.. meta::
2-
:title: Scholarly API Cookbook Introduction
3-
:og:type: article
4-
51
Introduction
62
%%%%%%%%%%%%%%
73

src/about/license-reuse.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ License and Reuse
66

77
Most of the code in this Scholarly API Cookbook is licensed under the `MIT License <https://github.com/UA-Libraries-Research-Data-Services/UALIB_ScholarlyAPI_Cookbook/blob/main/LICENSE>`_.
88

9-
The Python scripts in this Scholarly API Cookbook are licensed under the MIT License. However, these scripts may rely on external libraries such as matplotlib, pandas, and others. These libraries are licensed under their own respective terms, and will need to be installed separately. Refer to the documentation of each library for installation instructions and licensing details.
9+
The Python scripts in this Scholarly API Cookbook are licensed under the MIT License. However, these scripts may rely on external libraries such as matplotlib, pandas, and others. These libraries are licensed under their own respective terms and need to be installed separately. Refer to the documentation of each library for installation instructions and licensing details.
1010

1111
The Bash scripts are licensed under the MIT License (Bash itself is licensed under the GNU General Public License). Some of the included scripts may rely on external tools such as curl, jq, YAZ, and gnuplot, each of which is licensed under its own terms. Users must obtain and install these tools separately. Refer to the documentation of each tool for installation instructions and licensing details.
1212

@@ -46,7 +46,7 @@ We have decided to no longer maintain the Matlab, Mathematica, Bash (except the
4646

4747
The code in the UA Libraries Scholarly API Cookbook Archive is licensed under the `MIT License <https://github.com/UA-Libraries-Research-Data-Services/Scholarly_API_Cookbook_Archive/blob/main/LICENSE>`_. This includes code written to be used with Wolfram Mathematica and MathWorks MATLAB. However, these proprietary software packages themselves are not covered under the MIT License, and users must have valid licenses for Mathematica and MATLAB to run the associated code.
4848

49-
The Python scripts in this Scholarly API Cookbook are licensed under the MIT License. However, these scripts may rely on external libraries such as matplotlib, pandas, and others. These libraries are licensed under their own respective terms, and will need to be installed separately. Refer to the documentation of each library for installation instructions and licensing details.
49+
The Python scripts in this Scholarly API Cookbook are licensed under the MIT License. However, these scripts may rely on external libraries such as matplotlib, pandas, and others. These libraries are licensed under their own respective terms and need to be installed separately. Refer to the documentation of each library for installation instructions and licensing details.
5050

5151
The Bash scripts are licensed under the MIT License (Bash itself is licensed under the GNU General Public License). Some of the included scripts may rely on external tools such as curl, jq, YAZ, and gnuplot, each of which is licensed under its own terms. Users must obtain and install these tools separately. Refer to the documentation of each tool for installation instructions and licensing details.
5252

0 commit comments

Comments
 (0)