-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.qmd
More file actions
220 lines (149 loc) · 9.78 KB
/
index.qmd
File metadata and controls
220 lines (149 loc) · 9.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
---
title: "Workshop: Building a Digital Exhibit"
subtitle: "From Archives to the Web in 60 Minutes"
lightbox: true
---
This tutorial will guide you through the process of publishing a digital exhibit using [CollectionBuilder](https://collectionbuilder.github.io/), a popular tool designed and maintained by librarians at the [University of Idaho](https://www.lib.uidaho.edu/).
To achieve this, we will be using three main tools:
::: {.grid}
::: {.g-col-12 .g-col-md-6 .g-col-lg-4}
::: {.card}
::: {.card-body .d-flex .flex-column}
<div class="text-center" style="font-size: 3rem; color: #003660;">
{{< fa table >}}
</div>
<p class="card-title-p text-center">Google Sheets</p>
<p class="mt-auto align-self-center"><a href="https://docs.google.com/spreadsheets/d/1XUaY0MpVYpBd0QMcF96Vtx-e3Lue_a2TVkHGX7f57i8/edit?usp=sharing" class="btn btn-primary" target="_blank">Start Learning</a></p>
:::
:::
:::
::: {.g-col-12 .g-col-md-6 .g-col-lg-4}
::: {.card}
::: {.card-body .d-flex .flex-column}
<div class="text-center" style="font-size: 3rem; color: #003660;">
{{< fa brands github >}}
</div>
<p class="card-title-p text-center">GitHub</p>
<p class="mt-auto align-self-center"><a href="https://github.com/" class="btn btn-primary" target="_blank">Explore</a></p>
:::
:::
:::
::: {.g-col-12 .g-col-md-6 .g-col-lg-4}
::: {.card}
::: {.card-body .d-flex .flex-column}
<div class="text-center" style="font-size: 3rem; color: #003660;">
<i class="bi bi-braces-asterisk"></i>
</div>
<p class="card-title-p text-center">CollectionBuilder</p>
<p class="mt-auto align-self-center"><a href="https://collectionbuilder.github.io/" class="btn btn-primary" target="_blank">Get Started</a></p>
:::
:::
:::
:::
---
## Prerequisites
To follow along with this tutorial, you will need:
- Access to your UCSB Google account to use Google Sheets.
- A GitHub account to manage your CollectionBuilder project.
::: {.callout-warning}
#
If you don't have a GitHub account, go to [GitHub's Sign-Up Page](https://github.com/signup) and create one using your UCSB or any Google account. It's free and only takes a few minutes!
:::
## Step 1: Collect your materials
You can start by gathering some materials for your digital exhibit. For this tutorial, we will be using a small collection of vintage postcards from a private collection. These postcards feature various landmarks and scenes from around the world, and they will serve as the primary content for our exhibit.
To get started, download the images for this tutorial from [postcards.zip](objects/postcards.zip). Unzip the file and save the images to a folder on your computer where you can easily access them later.
## Step 2: Copy the Google Sheets template
- You can use this template to start creating your metadata: [CollectionBuilder Metadata Template](https://docs.google.com/spreadsheets/d/1XUaY0MpVYpBd0QMcF96Vtx-e3Lue_a2TVkHGX7f57i8/edit?usp=sharing).
- Make a copy of the template by clicking on `File` > `Make a copy` in the Google Sheets menu. This will create a new spreadsheet in your Google Drive that you can edit and customize for your exhibit.
## Step 3: Fill in the metadata
- Create the metadata for your exhibit by filling in the Google Sheets template. Each row in the spreadsheet represents an item in your collection, and each column corresponds to a specific metadata field. Some of the key columns you will need to fill out include:
| Column Name | Description |
|-------------|-------------|
| `objectid` | A unique identifier for each item (e.g., `postcard1`, `postcard2`). |
| `format` | [MIME Type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types/Common_types) format of the object; e.g., 'image/jpg', 'image/png', 'application/pdf' |
| `filename` | The name of the file associated with the item (e.g., `postcard1.jpg`). |
| `title` | The title of the item (e.g., `Eiffel Tower Postcard`). |
| `description` | A brief description of the item (e.g., `A vintage postcard featuring the Eiffel Tower in Paris, France.`). |
| `date` | The date associated with the item (e.g., `1920s`). |
| `subject` | A list of keywords or subjects related to the item, separated by semicolons (e.g., `landmark; Paris; vintage`). |
| `location` | The location associated with the item (e.g., `Paris, France`). |
| `latitude` | The latitude coordinate of the item's location (e.g., `48.8584`). |
| `longitude` | The longitude coordinate of the item's location (e.g., `2.2945`). |
| `language` | The language of the item's description (e.g., `en`). |
Not all fields are mandatory, but we recommend filling out as many as possible to enhance the discoverability and richness of your exhibit. The `objectid`, `format`, and `filename` fields are essential for linking your metadata to the corresponding media files.
::: {.callout-warning}
# Save your metadata
CollectionBuilder requires that you save your Google Sheets metadata as a CSV file. To do this, go to `File` > `Download` > `Comma-separated values (.csv, current sheet)` in the Google Sheets menu. Save the CSV file to a location on your computer and name it as `metadata.csv`.
Don't open the CSV file in Excel or any other spreadsheet software, as this can alter the formatting and cause issues when uploading to CollectionBuilder.
:::
## Step 4: Use CollectionBuilder template to create a repository on GitHub
- Go to [CollectionBuilder website](https://collectionbuilder.github.io/) and choose the "GitHub Pages" template:

{width="400"}
- Create a new repository by clicking on the "Use this template" button. Then, select "Create a new repository":

- Fill in the repository name (e.g., `postcard-exhibit`) and add a short description for the repository (e.g., `A digital exhibit showcasing vintage postcards from around the world.`). Make sure to set the repository to "Public".
- Click on "Create repository" to start creating the repository.
{width="600"}
It's going to take a few seconds...
## Step 5: Upload your media files to GitHub
- Type `.` in the root of your repository to launch a web-based code editor.

{width="600"}

- Delete the existing media files in the `objects` folder (do not remove the `README.md` file):
{width="400"}
- Right-click on the `objects` folder and select "Upload":
{width="400"}
{width="400"}
{width="600"}
## Step 6: Upload your metadata CSV file to `_data` folder
- Upload your `metadata.csv` file to the `_data` folder:
{width="400"}
- Add and commit your changes to the repository:
{width="400"}
{width="400"}
{width="400"}
## Step 7: Configure CollectionBuilder
- Go to `_config.yml` file in the root of your repository and edit the following lines:
```yaml
##########
# SITE SETTINGS
#
# title of site appears in banner
title: Frankfurt Postcards
# tagline, a short phrase that will appear throughout the site in the top banner
tagline: a small exhibit of vintage postcards
# description appears in meta tags and other locations
# this description might appear in search result lists, keep around 160 characters max
description: "A digital exhibit showcasing vintage postcards from around the world."
# creator of the digital collection, to appear in meta tags; we typically use our GitHub usernames but feel free to just use your name
author: Jairo Melo
##########
# COLLECTION SETTINGS
#
# Change the file name from 'demo-metadata' to 'metadata' (without the .csv extension)
metadata: metadata
```
- Stage, commit, and push your changes to GitHub to update the repository.
## Step 8: Publish your exhibit
- Go to the "Settings" tab of your repository and scroll down to the "GitHub Pages" section. Under "Source", select the `main` branch and click "Save":
{width="600"}
- After a few moments, your exhibit will be published and you can access it at the URL provided in the "GitHub Pages" section.
{width="400"}
{width="400"}
{width="600"}
Congratulations! You have successfully published your digital exhibit using CollectionBuilder. Now, it's time for some customization.
## Step 9: Customize your exhibit
- Most of the customization options for CollectionBuilder are available in `_data/theme.yml` file. Let's change some of the default settings to make our exhibit more personalized.
```yaml
##########
# HOME PAGE
#
# featured image is used in home page banner and in meta markup to represent the collection
# use either an objectid (from an item in this collect), a relative location of an image in this repo (ex. /assets/img/feature.jpg), or a full url to an image elsewhere
featured-image: post_02 # WARNING: use the objectid, not the filename for this field
# Select a theme from https://bootswatch.com/ and add the name of the theme here. The default is "flatly".
bootswatch: spacelab
```
- More complex customizations, such as changing the layout of the item pages or adding new features, will require editing the HTML and CSS files in the repository. But for now, you can explore the various options available in the `_data/theme.yml` file to further customize the look and feel of your exhibit.