{"id":19,"date":"2026-01-26T14:38:01","date_gmt":"2026-01-26T14:38:01","guid":{"rendered":"https:\/\/prosongcatalog.com\/index.php\/licensing-info\/"},"modified":"2026-01-26T14:38:01","modified_gmt":"2026-01-26T14:38:01","slug":"licensing-info","status":"publish","type":"page","link":"https:\/\/prosongcatalog.com\/index.php\/licensing-info\/","title":{"rendered":"Licensing Info"},"content":{"rendered":"\n    <div style=\"margin-bottom:20px; display:flex; gap:15px; flex-wrap:wrap; align-items:center;\">\n        <input type=\"text\" id=\"licensingSearch\" placeholder=\"Search Licensing Info...\"\n               style=\"flex:1; min-width:250px; max-width:400px; padding:10px; border:1px solid #ccc; border-radius:4px; font-size:14px;\">\n        \n        <div id=\"selectedSongInfo\" style=\"flex:1; min-width:200px; font-weight:bold; color:#2c5530;\">\n            No song selected - Click a row to select\n        <\/div>\n        \n        <button id=\"downloadBtn\" onclick=\"downloadSelectedSong();\" disabled style=\"background:#e74c3c; color:white; padding:10px 20px; border:none; border-radius:5px; cursor:pointer; font-size:14px; font-weight:bold; opacity:0.5;\">\n            Download DOCX\n        <\/button>\n    <\/div>\n\n    <div style=\"overflow-x:auto;\">\n        <table id=\"kj-licensing-clean\" border=\"1\" cellpadding=\"8\" cellspacing=\"0\" style=\"border-collapse:collapse;width:100%;font-family:Arial,sans-serif;font-size:14px;\">\n            <thead>\n                <tr style=\"background:#2c5530;color:white;\">\n                    <th>Song Title<\/th>\n                    <th>Genre<\/th>\n                    <th>Writer(s)<\/th>\n                    <th>Key<\/th>\n                    <th>BPM<\/th>\n                    <th>Vocal Type<\/th>\n                    <th>Length (mm:ss)<\/th>\n                    <th>ISRC Code<\/th>\n                    <th>Work ID #<\/th>\n                    <th>ISWC #<\/th>\n                    <th>Publisher<\/th>\n                    <th>CAE\/IPI #<\/th>\n                    <th>PRO<\/th>\n                <\/tr>\n            <\/thead>\n            <tbody>\n                        <tr id=\"noResultsRow\" style=\"display:none;\">\n                <td colspan=\"13\" style=\"text-align:center;padding:12px;color:#a00;font-weight:bold;\">\n                    No results found.\n                <\/td>\n            <\/tr>\n            <\/tbody>\n        <\/table>\n    <\/div>\n\n    \n    <script>\n    let selectedSongId = null;\n    let selectedSongTitle = '';\n\n    document.addEventListener('DOMContentLoaded', function(){\n        const searchInput = document.getElementById('licensingSearch');\n        const rows = document.querySelectorAll('#kj-licensing-clean .licensing-row');\n        const noResults = document.getElementById('noResultsRow');\n        const selectedInfo = document.getElementById('selectedSongInfo');\n        const downloadBtn = document.getElementById('downloadBtn');\n\n        \/\/ Row click to select (but not when clicking writer button)\n        rows.forEach(function(row){\n            row.addEventListener('click', function(e){\n                \/\/ Don't select if clicking the writer button\n                if(e.target.classList.contains('kj-writers-btn')) return;\n                \n                \/\/ Remove previous selection\n                rows.forEach(r => r.style.backgroundColor = '');\n                \n                \/\/ Highlight selected\n                this.style.backgroundColor = '#d4edda';\n                \n                selectedSongId = this.getAttribute('data-song-id');\n                selectedSongTitle = this.getAttribute('data-song-title');\n                \n                selectedInfo.textContent = 'Selected: ' + selectedSongTitle;\n                downloadBtn.disabled = false;\n                downloadBtn.style.opacity = '1';\n                downloadBtn.style.cursor = 'pointer';\n            });\n        });\n\n        \/\/ Search filter\n        if(searchInput){\n            searchInput.addEventListener('keyup', function(){\n                const value = this.value.toLowerCase();\n                let visibleCount = 0;\n\n                rows.forEach(function(row){\n                    const text = row.textContent.toLowerCase();\n                    if(text.includes(value)){\n                        row.style.display = '';\n                        visibleCount++;\n                    } else {\n                        row.style.display = 'none';\n                    }\n                });\n\n                if(noResults){\n                    noResults.style.display = (visibleCount === 0) ? '' : 'none';\n                }\n            });\n        }\n    });\n\n    function downloadSelectedSong() {\n        if (!selectedSongId) {\n            alert('Please select a song first by clicking on a row.');\n            return;\n        }\n        window.location.href = '?action=download_licensing_docx&song_id=' + selectedSongId;\n    }\n    <\/script>\n\n    <style>\n    .licensing-row { transition: background-color 0.2s ease; }\n    .licensing-row:hover { background-color:#e8f4f8 !important; }\n    #kj-licensing-clean th {\n        position:sticky; top:0; z-index:10;\n    }\n    @media(max-width:768px){\n        #kj-licensing-clean { font-size:12px; }\n        #kj-licensing-clean th, #kj-licensing-clean td { padding:6px !important; }\n        #licensingSearch { width:100% !important; max-width:100% !important; }\n    }\n    <\/style>\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_crdt_document":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-19","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/prosongcatalog.com\/index.php\/wp-json\/wp\/v2\/pages\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prosongcatalog.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/prosongcatalog.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/prosongcatalog.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prosongcatalog.com\/index.php\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":0,"href":"https:\/\/prosongcatalog.com\/index.php\/wp-json\/wp\/v2\/pages\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/prosongcatalog.com\/index.php\/wp-json\/wp\/v2\/media?parent=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}