This commit adds a new field to the asset.copy_tag database table, adds
it to the IDL, and includes it as a link in the OPAC when present.
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
<field reporter:label="Staff Note" name="staff_note" reporter:datatype="text"/>
<field reporter:label="Is OPAC Visible?" name="pub" reporter:datatype="bool"/>
<field reporter:label="Owner" name="owner" reporter:datatype="org_unit" oils_obj:required="true"/>
+ <field reporter:label="URL" name="url" reporter:datatype="text"/>
</fields>
<links>
<link field="tag_type" reltype="has_a" key="code" map="" class="cctt"/>
index_vector tsvector NOT NULL,
staff_note TEXT,
pub BOOLEAN DEFAULT TRUE,
- owner INTEGER NOT NULL REFERENCES actor.org_unit (id)
+ owner INTEGER NOT NULL REFERENCES actor.org_unit (id),
+ url TEXT
);
CREATE INDEX asset_copy_tag_label_idx
--- /dev/null
+BEGIN;
+
+--INSERT INTO config.upgrade_log (version, applied_to) VALUES ('XXXX', :eg_version);
+
+ALTER TABLE asset.copy_tag
+ ADD COLUMN url TEXT;
+
+COMMIT;
<tr class="copy_tag_row">
<td> </td>
<td class="copy_tag" colspan="4">
- <span class="copy_tag_value">[% tag.value | html %]</span>
+ <span class="copy_tag_value">
+ [% IF tag.url %]
+ <a href="[% tag.url | html %]">
+ [% END %]
+ [% tag.value | html %]
+ [% IF tag.url %]
+ </a>
+ [% END %]
+ </span>
</td>
<tr>
[% END %]